High

node-tar before 8.0.0: forged archive entries can overwrite files

A crafted tar archive can forge entry attributes through PAX extended header handling, and extraction without strip can overwrite a path inside the extraction target. On Windows, an npm chain that overwrites package.json can lead to running an injected postinstall script.

Product
Systems
macOSWindowsLinux
Fixed in
8.0.0
CVSS
7.2
Weakness
CWE-22CWE-93
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

Anyone using the node-tar library for Node.js in a version below 8.0.0, on macOS, Windows or Linux.

Expected outcome after remediation

Report which node-tar versions are installed in your projects, whether any are below 8.0.0, and confirm each affected project was 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 5476 and your operating system.

Related node-tar incidents

All node-tar incidents