The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2023-39332

CVE-2023-39332: Node.js Path Traversal Vulnerability

CVE-2023-39332 is a path traversal vulnerability in Node.js affecting node:fs functions that accept Uint8Array objects, bypassing existing protections. This article covers technical details, affected versions, and mitigations.

Published: February 4, 2026

CVE-2023-39332 Overview

CVE-2023-39332 is a path traversal vulnerability affecting Node.js's experimental permission model. Various node:fs functions allow specifying paths as either strings or Uint8Array objects. While Node.js implemented protections against path traversal through strings (addressed in CVE-2023-30584) and Buffer objects (addressed in CVE-2023-32004), the platform failed to apply the same safeguards to non-BufferUint8Array objects.

This vulnerability is distinct from CVE-2023-32004, which specifically addressed Buffer objects. However, the underlying exploitation pattern is identical—attackers can bypass the permission model's path restrictions by encoding malicious paths as Uint8Array objects instead of strings or Buffer instances.

Critical Impact

Attackers can bypass Node.js permission model restrictions to access files outside permitted directories, potentially leading to unauthorized data access, credential theft, or system compromise in applications relying on the experimental permission model for security boundaries.

Affected Products

  • Node.js (experimental permission model feature)
  • Fedora Project Fedora 39

Discovery Timeline

  • 2023-10-18 - CVE-2023-39332 published to NVD
  • 2025-11-03 - Last updated in NVD database

Technical Details for CVE-2023-39332

Vulnerability Analysis

This path traversal vulnerability exists in Node.js's experimental permission model implementation. The permission model was designed to restrict file system access to explicitly permitted directories, providing an additional security layer for Node.js applications. The core issue lies in incomplete input validation across the node:fs module functions.

Node.js's Buffer class extends JavaScript's Uint8Array class, and the platform correctly validates path arguments when they're provided as strings or Buffer objects. However, when a path is supplied as a plain Uint8Array object (not a Buffer subclass), the path traversal protections are bypassed entirely.

This allows an attacker who can control file path arguments to craft a Uint8Array containing path traversal sequences (such as ../ encoded as bytes) to escape the permitted directory boundaries. The vulnerability affects all node:fs functions that accept path parameters, including fs.readFile(), fs.writeFile(), fs.access(), and their synchronous counterparts.

It's important to note that at the time this CVE was issued, the permission model was an experimental feature of Node.js, which may have limited the scope of real-world impact. However, applications that adopted this experimental feature for security-critical path restrictions would be vulnerable.

Root Cause

The root cause is incomplete type checking in Node.js's path validation logic. When the permission model validates file paths, it correctly sanitizes strings and Buffer objects to prevent directory traversal. However, the validation code did not account for the fact that Uint8Array objects (which are the parent class of Buffer) can also be used to specify paths in node:fs functions.

This oversight created a bypass where the same path traversal payload that would be blocked when supplied as a string or Buffer would be allowed when supplied as a raw Uint8Array. The fix requires extending the path sanitization logic to handle all Uint8Array instances, not just Buffer objects.

Attack Vector

The attack vector is network-based, requiring no privileges or user interaction to exploit. An attacker targeting a vulnerable Node.js application that uses the experimental permission model can exploit this vulnerability through the following approach:

Instead of providing paths as strings (which would be validated and blocked), an attacker encodes path traversal sequences directly into Uint8Array byte arrays. When these byte arrays are passed to node:fs functions like fs.readFile(), the permission model fails to recognize and block the traversal attempt.

For example, an attacker could construct a Uint8Array containing the UTF-8 byte sequence for ../../../etc/passwd to escape permitted directories and access sensitive system files. The technical details of this exploitation pattern are documented in the HackerOne Report #2199818.

Detection Methods for CVE-2023-39332

Indicators of Compromise

  • Unusual file access patterns targeting sensitive system files outside application directories
  • Node.js applications receiving Uint8Array path arguments in file system operations
  • Log entries showing access to files containing path traversal patterns (../) that bypassed permission restrictions
  • Unexpected reads of configuration files, credentials, or system files by Node.js processes

Detection Strategies

  • Monitor node:fs function calls for Uint8Array type path arguments in application logs
  • Implement runtime application self-protection (RASP) to detect path traversal attempts regardless of encoding
  • Deploy file integrity monitoring on sensitive directories to detect unauthorized access
  • Use SentinelOne Singularity to detect anomalous file access patterns from Node.js processes

Monitoring Recommendations

  • Enable verbose logging for Node.js applications using the experimental permission model
  • Monitor process file descriptors for access to files outside permitted directories
  • Implement network-level monitoring for potential exploitation attempts in web-facing Node.js applications
  • Review application logs for unusual path encoding patterns or unexpected file access errors

How to Mitigate CVE-2023-39332

Immediate Actions Required

  • Update Node.js to the latest patched version that addresses this vulnerability
  • Audit application code for uses of the experimental permission model with untrusted input
  • Implement additional input validation to reject Uint8Array path arguments from untrusted sources
  • Consider alternative security mechanisms rather than relying solely on the experimental permission model

Patch Information

Node.js has released security updates to address this vulnerability. Users should upgrade to the latest stable version of Node.js that includes the fix. The patch extends path traversal protections to cover all Uint8Array instances, not just Buffer objects.

For detailed patch information, refer to the Fedora Package Announcement and NetApp Security Advisory NTAP-20231116-0009.

Workarounds

  • Do not rely on the experimental permission model as a primary security boundary until patched
  • Implement application-level path validation that converts all path inputs to strings before processing
  • Use chroot or containerization to provide additional filesystem isolation
  • Validate and sanitize all file path inputs at the application layer before passing to node:fs functions
bash
# Check current Node.js version
node --version

# Update Node.js to latest stable version (example using nvm)
nvm install --lts
nvm use --lts

# Verify the updated version
node --version

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechNodejs

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability0.35%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-22
  • Technical References
  • HackerOne Report #2199818

  • Fedora Package Announcement

  • NetApp Security Advisory NTAP-20231116-0009

  • NetApp Security Advisory NTAP-20241108-0002
  • Related CVEs
  • CVE-2025-23084: Node.js Path Traversal Vulnerability

  • CVE-2023-32004: Node.js Path Traversal Vulnerability

  • CVE-2024-21896: Node.js Path Traversal Vulnerability

  • CVE-2024-21891: Node.js Path Traversal Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English