Description
node-tar is a tar archive manipulation library for Node.js. Prior to 7.5.17, node-tar does not strip NUL bytes from PAX path and linkpath records in src/pax.ts, allowing a crafted archive with values to reach fs.lstat or fs.open and terminate the process with an uncaught exception. This issue is fixed in version 7.5.17.
Published: 2026-07-08
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability arises from node-tar failing to strip NUL bytes from PAX path and linkpath records. A crafted tar archive can cause fs.lstat or fs.open to receive a string containing a NUL byte, triggering an uncaught exception that crashes the Node.js process. This results in a denial of service to the application using the library. The weakness is identified as CWE-170 and CWE-248.

Affected Systems

The affected product is the node-tar library maintained by isaacs. Versions prior to 7.5.17 are vulnerable. Any Node.js application that imports node-tar and extracts tar archives—including those from untrusted sources— is affected.

Risk and Exploitability

The CVSS score of 5.3 and an EPSS score of < 1% indicate a very low probability of exploitation. The vulnerability is not listed in CISA KEV. Based on the description, it is inferred that the attack vector is most likely remote if the application accepts archives from external inputs. The complexity is low because the library automatically processes each entry, so a single malicious tar file suffices to trigger the crash. The overall risk is moderate, particularly in environments that routinely handle untrusted archives.

Generated by OpenCVE AI on July 29, 2026 at 14:01 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the node-tar package to version 7.5.17 or newer
  • If an upgrade cannot be performed immediately, manually patch the library by applying the changes from commit 7a635c29f5edbf083557374d43984273ecfed5b3 to strip NUL bytes from PAX records
  • As an alternative workaround, validate tar archives before extraction or sanitize path and linkpath values to remove NUL characters
  • Ensure regular dependency updates and audit Node.js package integrity to prevent similar issues

Generated by OpenCVE AI on July 29, 2026 at 14:01 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-gvwx-54wh-qm9j node-tar: Uncaught Exception DoS via NUL byte in PAX path/linkpath records
History

Fri, 10 Jul 2026 09:45:00 +0000

Type Values Removed Values Added
First Time appeared Isaacs
Isaacs tar
Vendors & Products Isaacs
Isaacs tar

Fri, 10 Jul 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-170
References
Metrics threat_severity

None

threat_severity

Moderate


Thu, 09 Jul 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 08 Jul 2026 15:45:00 +0000

Type Values Removed Values Added
Description node-tar is a tar archive manipulation library for Node.js. Prior to 7.5.17, node-tar does not strip NUL bytes from PAX path and linkpath records in src/pax.ts, allowing a crafted archive with values to reach fs.lstat or fs.open and terminate the process with an uncaught exception. This issue is fixed in version 7.5.17.
Title node-tar: Uncaught Exception DoS via NUL byte in PAX path/linkpath records
Weaknesses CWE-248
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-09T13:45:44.160Z

Reserved: 2026-07-07T15:41:53.607Z

Link: CVE-2026-59875

cve-icon Vulnrichment

Updated: 2026-07-09T13:44:17.889Z

cve-icon NVD

No data.

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-07-08T15:20:29Z

Links: CVE-2026-59875 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-07-29T14:15:03Z

Weaknesses