Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-2026-31802

CVE-2026-31802: node-tar Path Traversal Vulnerability

CVE-2026-31802 is a path traversal flaw in node-tar that allows attackers to create symlinks outside extraction directories, enabling file overwrites. This article covers technical details, affected versions, and patches.

Published: March 13, 2026

CVE-2026-31802 Overview

CVE-2026-31802 is a path traversal vulnerability affecting node-tar, a full-featured Tar library for Node.js. Prior to version 7.5.11, the library can be exploited to create symlinks that point outside the intended extraction directory. This is achieved by crafting malicious tar archives containing drive-relative symlink targets such as C:../../../target.txt, which enables arbitrary file overwrite outside the current working directory during standard tar.x() extraction operations.

This vulnerability is classified as CWE-22 (Improper Limitation of a Pathname to a Restricted Directory, also known as Path Traversal) and poses a significant risk to applications that process untrusted tar archives.

Critical Impact

Attackers can overwrite arbitrary files outside the extraction directory by exploiting improper symlink path validation, potentially leading to code execution, configuration tampering, or denial of service through file corruption.

Affected Products

  • node-tar versions prior to 7.5.11
  • npm packages depending on vulnerable node-tar versions
  • Node.js applications using tar extraction functionality with untrusted archives

Discovery Timeline

  • 2026-03-10 - CVE CVE-2026-31802 published to NVD
  • 2026-03-11 - Last updated in NVD database

Technical Details for CVE-2026-31802

Vulnerability Analysis

The vulnerability exists in the symlink path validation logic within node-tar. When extracting tar archives, the library failed to properly sanitize drive-relative paths on Windows systems. The path format C:../../../target.txt represents a relative path from the current directory on the C: drive, rather than an absolute path starting from the drive root.

This subtle distinction bypasses the existing path traversal protections that check for traditional ../ sequences at the beginning of paths. The library's validation logic did not account for the Windows-specific drive-relative path notation, allowing symlinks to escape the intended extraction boundary.

When a malicious tar archive is processed using the standard tar.x() extraction method, the symlink is created pointing to a location outside the current working directory. Subsequent operations that follow this symlink can then read, write, or overwrite files in unintended locations on the filesystem.

Root Cause

The root cause is inadequate input validation of symlink targets within tar archives. Specifically, the path normalization routine failed to recognize Windows drive-relative path syntax as a potential path traversal vector. While absolute paths and Unix-style relative paths with leading ../ sequences were properly blocked, the C:../ pattern was not identified as malicious.

This is a classic example of insufficient platform-specific security handling, where security controls implemented for one operating system paradigm do not adequately address edge cases in another.

Attack Vector

The attack requires local access and involves the following exploitation scenario:

An attacker crafts a malicious tar archive containing a symlink entry with a carefully constructed drive-relative target path. When a vulnerable application extracts this archive using node-tar's tar.x() function, the symlink is created pointing outside the designated extraction directory. The attacker can then leverage this symlink to overwrite critical files, potentially achieving code execution if application configuration files, scripts, or binaries are targeted.

The attack is particularly dangerous in automated build pipelines, package managers, and any application that processes tar archives from untrusted sources without additional path validation.

Detection Methods for CVE-2026-31802

Indicators of Compromise

  • Unexpected symlinks in extraction directories pointing to paths outside the intended scope
  • File modifications in system directories or application configuration folders following tar extraction operations
  • Audit logs showing file access patterns consistent with symlink-based path traversal
  • Presence of symlinks containing drive-relative notation (e.g., C:../) in extracted content

Detection Strategies

  • Implement file integrity monitoring on critical system and application files
  • Monitor process activity for unexpected file operations following tar extraction events
  • Audit npm dependency trees to identify node-tar versions prior to 7.5.11
  • Deploy application-level logging to track tar extraction operations and resulting filesystem changes

Monitoring Recommendations

  • Enable filesystem auditing for symlink creation events on sensitive directories
  • Implement automated scanning of npm projects to detect vulnerable node-tar dependencies
  • Configure SentinelOne endpoint protection to monitor for symlink-based escape attempts during archive extraction
  • Establish baseline behavior for applications that perform tar extraction and alert on anomalies

How to Mitigate CVE-2026-31802

Immediate Actions Required

  • Upgrade node-tar to version 7.5.11 or later immediately
  • Audit all projects and containers for vulnerable node-tar versions using npm audit or equivalent tools
  • Review and restrict permissions for applications that process untrusted tar archives
  • Implement additional path validation before processing extracted symlinks

Patch Information

The vulnerability has been fixed in node-tar version 7.5.11. The fix addresses the improper validation of drive-relative symlink targets by enhancing the path sanitization logic to detect and block Windows-specific path traversal patterns.

For technical details on the patch, refer to the GitHub Commit Change and the GitHub Security Advisory GHSA-9ppj-qmqm-q256.

Workarounds

  • Avoid extracting tar archives from untrusted sources until patching is complete
  • Implement additional symlink validation in application code before following extracted symlinks
  • Use containerization or sandboxing to isolate tar extraction operations from sensitive filesystem areas
  • Configure file system permissions to prevent symlink creation in critical directories by extraction processes
bash
# Update node-tar to patched version
npm update tar@7.5.11

# Audit project for vulnerable dependencies
npm audit

# Force update all tar dependencies in lock file
npm update tar --depth=9999

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechNode Tar

  • SeverityHIGH

  • CVSS Score8.2

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:H/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-22
  • Technical References
  • GitHub Commit Change

  • GitHub Security Advisory GHSA-9ppj-qmqm-q256
  • Related CVEs
  • CVE-2026-24842: node-tar Path Traversal Vulnerability

  • CVE-2026-23745: node-tar Path Traversal Vulnerability

  • CVE-2026-23950: node-tar Race Condition Vulnerability

  • CVE-2024-28863: Isaacs Tar DOS Vulnerability
Default Legacy - Prefooter | 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