CVE-2026-140241 PUBLISHED

node-tar crashes the process with an uncaught exception on a 4-byte zstd magic header when the Node runtime lacks native zstd

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.22 until 8.0.0, node-tar fails to handle an exception when automatically detecting Zstandard (zstd) compression on Node.js runtimes without native zstd support. An attacker who can supply a specially crafted input file to the asynchronous file listing or extraction API can cause an uncaught exception that terminates the process, resulting in denial of service. 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:N/VI:N/VA:H/SC:N/SI:N/SA:N
CVSS Score: 7.1

Product Status

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

References

Problem Types

  • CWE-248: Uncaught Exception CWE
  • CWE-755: Improper Handling of Exceptional Conditions CWE