Infinite loop Affecting tar package, versions <7.5.18


Severity

Recommended
0.0
high
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-17909068
  • published9 Jul 2026
  • disclosed8 Jul 2026
  • creditJvr2022 Jvr

Introduced: 8 Jul 2026

NewCVE-2026-59874  (opens in a new tab)
CWE-835  (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 Infinite loop via the replace method. An attacker can cause the archive scanner to enter an infinite loop by providing a tar header with a negative base-256 encoded entry size.

CVSS Base Scores

version 4.0
version 3.1