High

node-tar before 8.0.0: crafted tar archive crashes Node.js process

Extracting an attacker-controlled tar archive asynchronously with a deeply nested linkpath makes node-tar allocate every ancestor prefix, exhausting the Node.js heap. An attacker can terminate your process, causing a denial of service.

Product
Systems
macOSWindowsLinux
Fixed in
8.0.0
CVSS
7.1
Weakness
CWE-400CWE-407
Source
Get the fix in Telegram

Am I affected?

You are affected if the installed version is older than 8.0.0. Check the version you have and update to 8.0.0 or later. The fixed version is verified against a vendor or advisory source.

Affected software and versions

PackageEcosystemAffectedFixed in
node-tarother<8.0.08.0.0

A fixed version is shown only when it is verified against a vendor or advisory source.

Who should check

Projects on macOS or Linux (POSIX hosts) using the node-tar library for Node.js in any version below 8.0.0. The vulnerable code path is not used on Windows.

Expected outcome after remediation

Report which node-tar version is installed, whether it is below 8.0.0, and whether it has been updated to 8.0.0 or later.

Get the fix

FixLane has a reviewed fix procedure for this incident: a read-only check first, then the fix. Ask the Telegram bot, or connect an AI agent to the FixLane MCP server and call get_fix_prompt with incident id 5461 and your operating system.

Related node-tar incidents

All node-tar incidents