High

node-tar before 8.0.0 can inject members when repacking archives

An attacker-crafted tar archive can gain extra hidden members when it is repacked: node-tar before 8.0.0 misframes GNU and PAX metadata entries, so the declared header size and copied body bytes can mismatch and add members to the output archive. Only repacking an archive file or Pack.add(ReadEntry) is affected, not ordinary creation from filesystem inputs.

Product
Systems
macOSWindowsLinux
Fixed in
8.0.0
CVSS
7.2
Weakness
CWE-436
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 node-tar in a Node.js project on macOS, Windows, or Linux with a version below 8.0.0.

Expected outcome after remediation

Report the node-tar version found, whether any code path repacks archives or uses Pack.add(ReadEntry), and confirm the package is updated to 8.0.0.

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 5475 and your operating system.

Related node-tar incidents

All node-tar incidents