cve.bz

CVE-2026-31802 isaacs tar: Path traversal

8.2 highExploit referenceEPSS 0.3%Fix available

High (8.2) in isaacs tar. EPSS 0.3% estimated probability of exploitation activity in the next 30 days. Fixed in tar 7.5.11.

On this page
node-tar is a full-featured Tar for Node.js. Prior to version 7.5.11, tar (npm) can be tricked into creating a symlink that points outside the extraction directory by using a drive-relative symlink target such as C:../../../target.txt, which enables file overwrite outside cwd during normal tar.x() extraction. This vulnerability is fixed in 7.5.11.

Severity

CVSS 4.0

8.2 high
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

CVSS 3.1

5.5 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
EPSS
0.3% (unchanged from 0.3% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 22nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2026-03-10. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-31802 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-31802?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-31802?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-31802 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
isaacs:tarbefore 7.5.11

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-9ppj-qmqm-q256npmtar<7.5.117.5.11

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11node-tar6.0.5+ds1+~cs11.3.9-1+deb11u3DLA-4552-1
Debian14node-tar6.2.1+ds1+~cs6.1.13-10DEBIAN-CVE-2026-31802
Ubuntu18.04:LTS, 22.04:LTS, 24.04:LTS and 6 morenode-tarno fix listedUBUNTU-CVE-2026-31802
Azure Linux3python-tensorboardno fix listedAZL-101781

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This is a MODERATE impact vulnerability. The tar utility is susceptible to unauthorized file overwrites when processing specially crafted archives containing drive-relative symlinks. As such, it primarily affects integrity (since it can overwrite files and file contents), with no clear indication that availability or confidentiality may be affected.

ProductPackageStateAdvisory
Red Hat OpenShift Dev Spaces 3.28devspaces/code-rhel9:1779814592Fixed 2026-05-28RHSA-2026:21772
Red Hat OpenShift Dev Spaces 3.28devspaces/dashboard-rhel9:1779341289Fixed 2026-05-28RHSA-2026:21772
Cryostat 4io.cryostat-cryostatNot affected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/elasticsearch6-rhel9Out of support scope
Logging Subsystem for Red Hat OpenShiftopenshift-logging/elasticsearch-operator-bundleOut of support scope
Logging Subsystem for Red Hat OpenShiftopenshift-logging/elasticsearch-proxy-rhel9Out of support scope
Logging Subsystem for Red Hat OpenShiftopenshift-logging/elasticsearch-rhel9-operatorOut of support scope
Logging Subsystem for Red Hat OpenShiftopenshift-logging/kibana6-rhel8Out of support scope
Logging Subsystem for Red Hat OpenShiftopenshift-logging/logging-curator5-rhel9Out of support scope
Network Observability Operatornetwork-observability/network-observability-console-plugin-compat-rhel9Not affected
Network Observability Operatornetwork-observability/network-observability-console-plugin-rhel9Not affected
Red Hat 3scale API Management Platform 23scale-amp20/systemOut of support scope
Red Hat 3scale API Management Platform 23scale-amp21/systemOut of support scope
Red Hat 3scale API Management Platform 23scale-amp22/systemOut of support scope
Red Hat 3scale API Management Platform 23scale-amp24/systemOut of support scope
Red Hat 3scale API Management Platform 23scale-amp25/systemOut of support scope
Red Hat 3scale API Management Platform 23scale-amp26/systemOut of support scope
Red Hat 3scale API Management Platform 23scale-amp2/system-rhel7Out of support scope
Red Hat 3scale API Management Platform 23scale-amp2/system-rhel8Out of support scope
Red Hat 3scale API Management Platform 23scale-amp2/system-rhel9Out of support scope
68 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-31802.

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.

  • Recorded-texteditor120/CVE-2026-31802 Harbor Check: matches CVE 1 star, JavaScript, created
    Demonstrate and analyze the CVE-2026-31802 path traversal vulnerability in npm tar, enabling arbitrary file overwrite via symlink extractio…
  • Jvr2022/CVE-2026-31802 Harbor Check: matches CVE 1 star, JavaScript, created
    PoC and write-up for CVE-2026-31802, a symlink path traversal vulnerability in npm tar enabling arbitrary file overwrite outside the extrac…

Attack patterns (CAPEC)

  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON