CVE-2026-140243 PUBLISHED

node-tar: Symlink escape from the extraction directory via a trailing `/.` in the entry path

Assigner: GitHub_M
Reserved: 30.11.2026 Published: 01.12.2026 Updated: 01.12.2026

node-tar is a tar archive manipulation library for Node.js. From 7.5.5 until 8.0.0, there is a symlink escape from the extraction directory via a trailing /. in the entry path. Any application that extracts attacker-supplied tarballs with tar.x() / tar.extract() and then reads, serves, copies or rewrites the extracted files can be pointed at an arbitrary file outside the extraction directory. This issue is fixed in version 8.0.0.

Metrics

CVSS Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N
CVSS Score: 7.2

Product Status

Vendor isaacs
Product node-tar
Versions
  • Version >= 7.5.5, < 8.0.0 is affected

References

Problem Types

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory CWE
  • CWE-59: Improper Link Resolution Before File Access CWE