SB2026112807 - Multiple vulnerabilities in node-tar



SB2026112807 - Multiple vulnerabilities in node-tar

Published: November 28, 2026

Security Bulletin ID SB2026112807
CSH Severity
Medium
Patch available
YES
Number of vulnerabilities 24
Exploitation vector Remote access
Highest impact Code execution

Breakdown by Severity

Medium 75% Low 25%
  • Low
  • Medium
  • High
  • Critical

Description

This security bulletin contains information about 24 vulnerabilities.


1) Input validation error (CVE-ID: N/A)

CWE-ID: CWE-20 - Improper input validation

CVSSv4: 7 [CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to read or write files outside the intended directory through applications that trust link targets returned by tar.Parser or tar.list().

The vulnerability exists due to inconsistent input validation in node-tar's ReadEntry component when applying global PAX metadata, allowing link targets to reach parsed entries without a strict-mode warning. A remote attacker can supply an archive with misleading link metadata to cause a downstream consumer to access files outside its intended directory.


2) Improper update of reference count (CVE-ID: N/A)

CWE-ID: CWE-911 - Improper Update of Reference Count

CVSSv4: 6.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to cause a denial of service by leaving consumers waiting indefinitely for synchronous archive extraction to complete.

The vulnerability exists due to an unmatched decrement of the pending-entry counter in node-tar's UnpackSync error handling when an archive entry fails, preventing the stream from emitting completion events. A remote attacker can supply an archive that triggers an entry-processing error to hang a consumer waiting for the stream to complete.


3) Deadlock (CVE-ID: N/A)

CWE-ID: CWE-833 - Deadlock

CVSSv4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to cause a denial of service by indefinitely stalling asynchronous archive extraction on POSIX.

The vulnerability exists due to a deadlock in the path reservation queue when asynchronous extraction assigns conflicting file and directory reservations to the same path. A remote attacker can supply a crafted tar archive with conflicting path metadata in a link header, a PAX extended header, or a GNU long-link header to prevent extraction from completing.


4) Link following (CVE-ID: N/A)

CWE-ID: CWE-59 - Improper Link Resolution Before File Access ('Link Following')

CVSSv4: 8.3 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to read or modify files outside the extraction directory if the application later follows an extracted symbolic link, subject to the application's filesystem permissions.

The vulnerability exists due to improper symbolic link resolution in the tar.x() containment checks when normalizing archive paths before resolving intermediate links. A remote attacker can supply a crafted archive for extraction to redirect the application's later reads or writes outside the extraction directory.


5) Link following (CVE-ID: N/A)

CWE-ID: CWE-59 - Improper Link Resolution Before File Access ('Link Following')

CVSSv4: 7 [CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to read or overwrite files outside the extraction directory with the extracting user's permissions if the application later follows the extracted symbolic links.

The vulnerability exists due to improper symbolic link resolution in node-tar's tar.x() when it validates normalized targets but creates links using the original targets. A remote attacker can supply a tar archive containing chained symbolic links to redirect subsequent application reads or writes outside the extraction directory.


6) Link following (CVE-ID: N/A)

CWE-ID: CWE-59 - Improper Link Resolution Before File Access ('Link Following')

CVSSv4: 4.6 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to potentially access files outside the extraction directory through a symbolic link that an application later follows.

The vulnerability exists due to improper link resolution in node-tar's archive extractor when it validates nested symbolic link targets without accounting for how the filesystem resolves them. A remote attacker can supply a crafted tar archive to an application that extracts and later follows its links to potentially access files outside the intended directory.


7) Link following (CVE-ID: N/A)

CWE-ID: CWE-59 - Improper Link Resolution Before File Access ('Link Following')

CVSSv4: 8.3 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to read or overwrite files outside the extraction directory if the application later follows the extracted symbolic links and has the necessary permissions.

The vulnerability exists due to improper symbolic link resolution in node-tar's synchronous and asynchronous extractors when they validate link targets by normalizing paths without accounting for symbolic links. A remote attacker can supply a crafted tar archive for a victim to extract with default options to plant symbolic links that point outside the extraction directory.


8) Path traversal (CVE-ID: N/A)

CWE-ID: CWE-22 - Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

CVSSv4: 6.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to disclose the contents of host files outside the extraction directory if an application follows the extracted symbolic link.

The vulnerability exists due to path traversal in node-tar's symbolic link extraction when the containment check and the non-Windows filesystem interpret path separators differently. A remote attacker can supply a crafted tar archive for extraction with default options to create a symbolic link that points outside the extraction directory.


9) Path traversal (CVE-ID: N/A)

CWE-ID: CWE-22 - Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

CVSSv4: 4.6 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to create a symbolic link that points outside the extraction directory and may redirect a later write by the calling application.

The vulnerability exists due to a path traversal flaw in node-tar's archive extractor when it validates a relative symbolic link target against a different base directory than the filesystem uses to resolve it. A remote attacker can supply a crafted archive for a victim to extract to create a symbolic link that escapes the extraction directory.


10) Link following (CVE-ID: N/A)

CWE-ID: CWE-59 - Improper Link Resolution Before File Access ('Link Following')

CVSSv4: 5.7 [CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to disclose sensitive files outside the extraction directory if a downstream process follows a symlink created during extraction.

The vulnerability exists due to improper link resolution in the node-tar unpacker when it checks symlink targets using lexical normalization rather than filesystem resolution. A remote attacker can supply a crafted archive that, when extracted, leaves an out-of-directory symlink that a downstream process may follow when reading, serving, copying, or archiving the extracted files.


11) Link following (CVE-ID: N/A)

CWE-ID: CWE-59 - Improper Link Resolution Before File Access ('Link Following')

CVSSv4: 4.6 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to potentially disclose or overwrite files outside the extraction directory if an application follows a symbolic link created during extraction.

The vulnerability exists due to improper symbolic link resolution in node-tar's extraction path validation when the target is checked relative to a different directory from the one where the link is created. A remote attacker can supply a crafted tar archive to cause the extractor to create a symbolic link that points outside the extraction directory.


12) Uncaught Exception (CVE-ID: N/A)

CWE-ID: CWE-248 - Uncaught Exception

CVSSv4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to cause a denial of service by crashing the process.

The vulnerability exists due to an uncaught exception in node-tar's asynchronous archive parser when it initializes a zstd decompressor on a Node.js runtime without native zstd support. A remote attacker can supply a file that the application detects as zstd during asynchronous archive listing or extraction to crash the process.


13) Inefficient Algorithmic Complexity (CVE-ID: N/A)

CWE-ID: CWE-407 - Inefficient Algorithmic Complexity

CVSSv4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to cause a denial of service by freezing the Node.js event loop and exhausting heap memory, terminating the process.

The vulnerability exists due to quadratic time and memory use in the asynchronous path reservation logic when getDirs processes hard-link or symbolic-link targets without enforcing a depth limit. A remote attacker can supply a crafted tar archive to a service that extracts it asynchronously on POSIX to exhaust process memory.


14) CRLF injection (CVE-ID: N/A)

CWE-ID: CWE-93 - Improper Neutralization of CRLF Sequences ('CRLF Injection')

CVSSv4: 8.4 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to forge archive entry attributes, overwrite files within the extraction directory, and execute arbitrary code during npm installation on Windows.

The vulnerability exists due to improper newline handling in the node-tar PAX parser when it treats embedded newlines as record boundaries instead of honoring declared byte lengths. A remote attacker can supply a crafted archive or influence filenames before archiving to redirect extracted files, including overwriting a package manifest so npm runs an injected postinstall script on Windows.


15) Interpretation Conflict (CVE-ID: N/A)

CWE-ID: CWE-436 - Interpretation Conflict

CVSSv4: 6.9 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to bypass archive inspection that uses a different tar parser and cause node-tar to create or truncate files within the extraction directory.

The vulnerability exists due to an interpretation conflict in ReadEntry and the archive parser when pending PAX size metadata is reapplied to a subsequent metadata entry, causing the parser to misinterpret its body as an archive member. A remote attacker can supply a crafted tar archive for local processing to make node-tar list and extract a member that another parser does not report.


16) Interpretation Conflict (CVE-ID: N/A)

CWE-ID: CWE-436 - Interpretation Conflict

CVSSv4: 4.6 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to bypass archive inspection, exceed the metadata buffering limit, or introduce unexpected entries into a repacked archive.

The vulnerability exists due to inconsistent entry sizing and extended-header precedence in the node-tar archive reader and writer when parsing GNU or PAX metadata or repacking archives. A remote attacker can supply a crafted tar archive to cause extraction of files missed by another tar implementation, bypass the metadata size check, or alter which entries appear in the repacked output.


17) Interpretation Conflict (CVE-ID: N/A)

CWE-ID: CWE-436 - Interpretation Conflict

CVSSv4: 4.6 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to alter how node-tar lists or extracts archive entries, undermining name- and attribute-based inspection by standards-compliant readers.

The vulnerability exists due to incorrect record boundary handling in the PAX extended-header parser when it splits records at newlines instead of honoring their declared byte lengths. A remote attacker can supply a crafted archive or control a filename in an archive that a victim lists or extracts with node-tar to cause legitimate metadata to be discarded or forged path, size, link target, or other metadata to be accepted.


18) Improper Neutralization of Null Byte or NUL Character (CVE-ID: N/A)

CWE-ID: CWE-158 - Improper Neutralization of Null Byte or NUL Character

CVSSv4: 6.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to crash a process during asynchronous extraction if the filesystem exception is uncaught, or cause node-tar to interpret archive names differently from other tools when path components are stripped.

The vulnerability exists due to improper neutralization of NUL characters in node-tar's name parsing when processing ustar, GNU, or PAX archive metadata. A remote attacker can supply a crafted archive for extraction to trigger the crash or cause inconsistent name interpretation.


19) Interpretation Conflict (CVE-ID: N/A)

CWE-ID: CWE-436 - Interpretation Conflict

CVSSv4: 4.6 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to bypass entry filtering and introduce an uninspected member into a repacked tar archive.

The vulnerability exists due to inconsistent precedence for local and global PAX size fields when node-tar repacks an archive through the @archive feature, causing the declared entry size to differ from the number of body bytes copied. A remote attacker can supply a crafted archive to an application that repacks it with an entry filter to include a member that the filter never inspects.


20) Improper Neutralization of Null Byte or NUL Character (CVE-ID: N/A)

CWE-ID: CWE-158 - Improper Neutralization of Null Byte or NUL Character

CVSSv4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to cause a denial of service by crashing a process that extracts an attacker-supplied tar archive asynchronously.

The vulnerability exists due to incomplete NUL-byte sanitization in node-tar's archive metadata parser when it processes paths or link targets from PAX extended headers, GNU long-name records, or raw ustar headers. A remote attacker can supply a crafted archive for asynchronous extraction to trigger an uncaught filesystem argument exception that terminates the extracting process.


21) Allocation of Resources Without Limits or Throttling (CVE-ID: N/A)

CWE-ID: CWE-770 - Allocation of Resources Without Limits or Throttling

CVSSv4: 6.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to cause a denial of service by exhausting memory.

The vulnerability exists due to unbounded buffering and queuing in the archive parser when listing or extracting a compressed archive from a file: decompressed data accumulates without backpressure even within the ratio limit, and zero-size entries can queue without limit. A remote attacker can supply an archive for the application to list or extract to cause excessive memory consumption.


22) Resource exhaustion (CVE-ID: N/A)

CWE-ID: CWE-400 - Resource exhaustion

CVSSv4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to cause a denial of service by exhausting the Node.js heap and terminating the process.

The vulnerability exists due to uncontrolled memory allocation in node-tar's PathReservations.getDirs() when it builds parent-directory prefixes for a symbolic link target whose depth is not checked. A remote attacker can submit a crafted archive to a service that extracts uploads to trigger quadratic memory growth and abort the process.


23) Allocation of Resources Without Limits or Throttling (CVE-ID: N/A)

CWE-ID: CWE-770 - Allocation of Resources Without Limits or Throttling

CVSSv4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to cause a denial of service by exhausting memory.

The vulnerability exists due to unbounded memory allocation in the node-tar archive parser when it checks the decompression ratio only after allocating the output or continues buffering input after reaching the archive's end marker. A remote attacker can submit a crafted archive for listing or extraction to exhaust the service's memory.


24) Inefficient Algorithmic Complexity (CVE-ID: N/A)

CWE-ID: CWE-407 - Inefficient Algorithmic Complexity

CVSSv4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to cause a denial of service by exhausting the Node.js heap and terminating the extracting process.

The vulnerability exists due to quadratic memory growth in the asynchronous extractor's path reservation logic when expanding symbolic-link or hard-link targets whose depth is not checked. A remote attacker can supply a malicious tar archive to a service that extracts it asynchronously on a POSIX host to terminate the process.


Remediation

Install update from vendor's website.

References