Intel

AIKIDO-2026-401672

tar is vulnerable to Denial of Service (DoS)

CVE-2026-59871Published Jul 20, 2026
July 20, 2026

53

CVE Score

Medium

Denial of Service (DoS)

Are you affected? Scan for Free

TL;DR

The PAX header parser in parseKV coerces all-digit path and linkpath values to JavaScript numbers. Downstream path handling then calls .split('/') on that numeric value and throws an uncaught TypeError, which bypasses strict: false and application error/warn handlers. Extracting a crafted archive therefore crashes the Node.js process. The fix keeps string fields such as path and linkpath as strings and casts paths to String in normalizeWindowsPath.

How do I fix this?

Upgrade the tar library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application extracts untrusted tar archives.

Package

Versions

0.0.0 - 7.5.17

Fixed in 7.5.18

Background info

tar is vulnerable to Denial of Service (DoS) in versions 0.0.0 - 7.5.17.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea