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-23745

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

CVE-2026-23745 is a path traversal flaw in node-tar library allowing attackers to bypass extraction root restrictions through malicious archives. This article covers technical details, affected versions, and mitigations.

Published: January 23, 2026

CVE-2026-23745 Overview

CVE-2026-23745 is a Path Traversal vulnerability in node-tar, a widely-used Tar library for Node.js. The library versions <= 7.5.2 fail to sanitize the linkpath of Link (hardlink) and SymbolicLink entries when preservePaths is set to false (the default secure behavior). This oversight allows malicious archives to bypass extraction root restrictions, enabling Arbitrary File Overwrite via hardlinks and Symlink Poisoning via absolute symlink targets.

Critical Impact

Attackers can craft malicious tar archives that, when extracted, overwrite arbitrary files on the target system or create poisoned symlinks pointing to sensitive locations outside the intended extraction directory.

Affected Products

  • node-tar versions <= 7.5.2
  • Applications using node-tar for tar archive extraction
  • npm packages and build systems dependent on node-tar

Discovery Timeline

  • January 16, 2026 - CVE-2026-23745 published to NVD
  • January 16, 2026 - Last updated in NVD database

Technical Details for CVE-2026-23745

Vulnerability Analysis

This vulnerability (CWE-22: Path Traversal) exists in the node-tar library's handling of hardlink and symbolic link entries during archive extraction. When extracting tar archives, node-tar is expected to sanitize paths to prevent files from being written outside the designated extraction directory. However, the library failed to properly sanitize the linkpath property of Link and SymbolicLink entries, even when the preservePaths option was explicitly set to false.

The preservePaths: false setting is intended to strip absolute paths and prevent directory traversal sequences like ../ from escaping the extraction root. While this protection was correctly applied to regular file entries, the same sanitization was not properly enforced for the target paths of hardlinks and symlinks.

Root Cause

The root cause is insufficient input validation on the linkpath attribute of Link and SymbolicLink tar entries. The extraction logic correctly sanitizes the entry name (where the link is created) but fails to apply the same sanitization to the link target path. This allows an attacker to:

  1. Create a hardlink pointing to an absolute path outside the extraction directory
  2. Create a symbolic link with an absolute target pointing to sensitive system files
  3. Use these links as intermediaries for subsequent file operations

Attack Vector

An attacker can exploit this vulnerability by crafting a malicious tar archive containing entries with specially crafted linkpath values. The attack requires local access and user interaction—a victim must extract the malicious archive using an application that relies on vulnerable versions of node-tar.

Attack scenarios include:

  • Arbitrary File Overwrite: A hardlink entry with linkpath pointing to /etc/passwd or application configuration files, followed by a regular file entry that overwrites the link target
  • Symlink Poisoning: A symbolic link with an absolute target path that can be used to read or write sensitive files during subsequent operations
  • Privilege Escalation Chain: Overwriting system configuration files, cron jobs, or SSH authorized keys

The security patch introduces proper sanitization of absolute linkpaths:

typescript
 const HARDLINK = Symbol('hardlink')
 const UNSUPPORTED = Symbol('unsupported')
 const CHECKPATH = Symbol('checkPath')
+const STRIPABSOLUTEPATH = Symbol('stripAbsolutePath')
 const MKDIR = Symbol('mkdir')
 const ONERROR = Symbol('onError')
 const PENDING = Symbol('pending')

Source: GitHub Commit Changes

Detection Methods for CVE-2026-23745

Indicators of Compromise

  • Unexpected hardlinks or symlinks appearing outside intended extraction directories
  • Modified system configuration files following tar extraction operations
  • Anomalous file permission changes on sensitive files after running npm scripts or build processes
  • Log entries showing file access to paths outside the expected extraction root during archive operations

Detection Strategies

  • Monitor for file system operations that create links pointing outside application directories
  • Implement file integrity monitoring on critical system files and configuration directories
  • Audit npm package dependencies for node-tar versions <= 7.5.2 using npm audit or similar tools
  • Deploy SentinelOne agents to detect unusual file system traversal patterns during archive extraction

Monitoring Recommendations

  • Enable detailed logging for applications performing tar extraction operations
  • Monitor for suspicious tar archives with entries containing absolute paths or ../ sequences in linkpath fields
  • Track file modifications to sensitive directories following any archive extraction activity
  • Implement automated dependency scanning in CI/CD pipelines to identify vulnerable node-tar versions

How to Mitigate CVE-2026-23745

Immediate Actions Required

  • Upgrade node-tar to version 7.5.3 or later immediately
  • Run npm audit across all projects to identify vulnerable dependencies
  • Review and update any lockfiles (package-lock.json, yarn.lock) to ensure patched versions are resolved
  • Consider implementing additional input validation for tar archives from untrusted sources

Patch Information

The vulnerability is fixed in node-tar version 7.5.3. The patch adds a new STRIPABSOLUTEPATH symbol and applies proper sanitization to linkpath values in both hardlink and symlink entries. Review the security advisory for complete details on the fix.

Update using npm:

Workarounds

  • Avoid extracting tar archives from untrusted sources until patching is complete
  • Implement manual validation of archive contents before extraction using tar -tvf to inspect entries
  • Use containerization or sandboxing to isolate archive extraction operations from sensitive file systems
  • Configure restricted write permissions on critical system directories to limit impact
bash
# Update node-tar to patched version
npm update tar@7.5.3

# Verify installed version
npm list tar

# Run security audit
npm audit

# Force update for nested dependencies
npm update tar --depth=10

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:A/VC:H/VI:L/VA:N/SC:H/SI:L/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
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-22
  • Technical References
  • GitHub Commit Changes

  • GitHub Security Advisory GHSA-8qq5-rm4j-mr97
  • Related CVEs
  • CVE-2026-31802: node-tar Path Traversal Vulnerability

  • CVE-2026-24842: 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