CVEfocus › CVE database › CVE-2026-31802

CVE-2026-31802node-tar Symlink Path Traversal via Drive-Relative Linkpath

CVSS 8.2 HighEPSS 0.2% (higher than 7% of CVEs)Published 2026-03-09Updated 2026-03-10Assigner: GitHub_M

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.

CWE-22

What to do

Fixed builds are available from Debian, npm: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

2Fixed
5Fix pending
3Under investigation
2Will not fix
69Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10node-tarFix pendingUBUNTU-CVE-2026-31802
Ubuntu 26.04node-tarUnder investigationUBUNTU-CVE-2026-31802
Ubuntu 25.10node-tarWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-31802
Ubuntu 24.04node-tarUnder investigationUBUNTU-CVE-2026-31802
Ubuntu 22.04node-tarUnder investigationUBUNTU-CVE-2026-31802
Ubuntu 20.04node-tarFix pendingUBUNTU-CVE-2026-31802
Ubuntu 18.04node-tarFix pendingUBUNTU-CVE-2026-31802
Ubuntu 16.04node-tarFix pendingUBUNTU-CVE-2026-31802
Ubuntu 14.04node-tarFix pendingUBUNTU-CVE-2026-31802
Debian 14node-tarFixed6.2.1+ds1+~cs6.1.13-10DEBIAN-CVE-2026-31802
Red Hat Enterprise Linux 10linux-sgxNot affected
Red Hat Enterprise Linux 10nodejsNot affected
Red Hat Enterprise Linux 10nodejs-develNot affected
Red Hat Enterprise Linux 10nodejs-docsNot affected
Red Hat Enterprise Linux 10nodejs-full-i18nNot affected
Red Hat Enterprise Linux 10nodejs-libsNot affected
Red Hat Enterprise Linux 10nodejs-npmNot affected
Red Hat Enterprise Linux 10nodejs22Not affected
Red Hat Enterprise Linux 10nodejs24Not affected
Red Hat Enterprise Linux 10nodejs24-develNot affected
Red Hat Enterprise Linux 10nodejs24-docsNot affected
Red Hat Enterprise Linux 10nodejs24-full-i18nNot affected
Red Hat Enterprise Linux 10nodejs24-libsNot affected
Red Hat Enterprise Linux 10nodejs24-npmNot affected
Red Hat Enterprise Linux 10sgx-commonNot affected
Red Hat Enterprise Linux 10sgx-libsNot affected
Red Hat Enterprise Linux 10sgx-mpaNot affected
Red Hat Enterprise Linux 10sgx-pccsNot affected
Red Hat Enterprise Linux 10sgx-pccs-adminNot affected
Red Hat Enterprise Linux 10sgx-pckid-toolNot affected
Red Hat Enterprise Linux 10tarNot affected
Red Hat Enterprise Linux 10tdx-qgsNot affected
Red Hat Enterprise Linux 9gjsNot affected
Red Hat Enterprise Linux 9gjs-develNot affected
Red Hat Enterprise Linux 9grafanaNot affected
Red Hat Enterprise Linux 9grafana-selinuxNot affected
Red Hat Enterprise Linux 9linux-sgxNot affected
Red Hat Enterprise Linux 9nodejsNot affected
Red Hat Enterprise Linux 9nodejs-docsNot affected
Red Hat Enterprise Linux 9nodejs-full-i18nNot affected
Red Hat Enterprise Linux 9nodejs-libsNot affected
Red Hat Enterprise Linux 9npmNot affected
Red Hat Enterprise Linux 9sgx-commonNot affected
Red Hat Enterprise Linux 9sgx-libsNot affected
Red Hat Enterprise Linux 9sgx-mpaNot affected
Red Hat Enterprise Linux 9sgx-pccsNot affected
Red Hat Enterprise Linux 9sgx-pccs-adminNot affected
Red Hat Enterprise Linux 9sgx-pckid-toolNot affected
Red Hat Enterprise Linux 9tarNot affected
Red Hat Enterprise Linux 9tdx-qgsNot affected
Red Hat Enterprise Linux 8grafanaNot affected
Red Hat Enterprise Linux 8grafana-azure-monitorNot affected
Red Hat Enterprise Linux 8grafana-cloudwatchNot affected
Red Hat Enterprise Linux 8grafana-elasticsearchNot affected
Red Hat Enterprise Linux 8grafana-graphiteNot affected
Red Hat Enterprise Linux 8grafana-influxdbNot affected
Red Hat Enterprise Linux 8grafana-lokiNot affected
Red Hat Enterprise Linux 8grafana-mssqlNot affected
Red Hat Enterprise Linux 8grafana-mysqlNot affected
Red Hat Enterprise Linux 8grafana-opentsdbNot affected
Red Hat Enterprise Linux 8grafana-postgresNot affected
Red Hat Enterprise Linux 8grafana-prometheusNot affected
Red Hat Enterprise Linux 8grafana-selinuxNot affected
Red Hat Enterprise Linux 8grafana-stackdriverNot affected
Red Hat Enterprise Linux 8mozjs60Not affected
Red Hat Enterprise Linux 8mozjs60-develNot affected
Red Hat Enterprise Linux 8nodejsNot affected
Red Hat Enterprise Linux 8nodejs-develNot affected
Red Hat Enterprise Linux 8nodejs-docsNot affected
Red Hat Enterprise Linux 8nodejs-full-i18nNot affected
Red Hat Enterprise Linux 8nodejs-libsNot affected
Red Hat Enterprise Linux 8nodejs-nodemonNot affected
Red Hat Enterprise Linux 8nodejs-packagingNot affected
Red Hat Enterprise Linux 8nodejs-packaging-bundlerNot affected
Red Hat Enterprise Linux 8npmNot affected
Red Hat Enterprise Linux 8tarNot affected
Red Hat Enterprise Linux 8v8-12.4-develNot affected
Red Hat Enterprise Linux 8v8-13.6-develNot affected
Red Hat Enterprise Linux 7tarNot affected
Red Hat Enterprise Linux 6tarWill not fix
Out of support scope
npm librarytarFixed7.5.11GHSA-9ppj-qmqm-q256

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.