Incorrect Type Conversion or Cast Affecting tar package, versions <7.5.18


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.36% (28th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-TAR-17909104
  • published9 Jul 2026
  • disclosed8 Jul 2026
  • creditIsmail Pelaseyed

Introduced: 8 Jul 2026

NewCVE-2026-59871  (opens in a new tab)
CWE-704  (opens in a new tab)

How to fix?

Upgrade tar to version 7.5.18 or higher.

Overview

tar is a full-featured Tar for Node.js.

Affected versions of this package are vulnerable to Incorrect Type Conversion or Cast via the src/pax.ts file. An attacker can cause a process crash by providing all-digit PAX path or linkpath values that are coerced to JavaScript numbers, leading to a TypeError during downstream path handling.

CVSS Base Scores

version 4.0
version 3.1