CVE-2026-140237: node-tar: ReadEntry: pending PAX size reapplication permits metadata-body file smuggling

Published Dec 1, 2026
·
Updated

node-tar is a tar archive manipulation library for Node.js. From 7.0.0 until 8.0.0, readEntry: pending PAX size reapplication permits metadata-body file smuggling after the 7.5.16 fix. Applications that inspect attacker-controlled tar archives with a parser that correctly consumes the second PAX metadata body, then extract them with node-tar, can be affected. A member absent from the inspected member set is treated by node-tar as a real entry and can create or truncate a file inside the configured extraction directory. This can bypass archive member allowlists, malware scanning, or policy checks when the inspection and extraction layers use different tar implementations. This issue is fixed in version 8.0.0.

Affected Software

1 affected component
npm/tar>=7.0.0<8.0.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 8.0.0

Event History

Dec 1, 2026
CVE Published
via MITRE·05:18 PM
Data Sourced
via MITRE·05:18 PM
DescriptionWeakness
Data Sourced
via OSV·05:18 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which applications are realistically exposed to this issue?

Applications are affected when they inspect attacker-controlled tar archives with a parser that correctly consumes the second PAX metadata body and then extract the same archive using node-tar. This split-parser workflow can cause node-tar to extract a member that was absent from the inspected member set.

2

What can exploitation achieve?

An attacker can cause node-tar to treat an uninspected member as a real entry and create or truncate a file within the configured extraction directory. This can bypass member allowlists, malware scanning, or other archive policy checks.

3

Are all node-tar extraction workflows affected?

The described exposure specifically requires different implementations for inspection and extraction, with the inspection parser correctly consuming the second PAX metadata body and node-tar performing extraction. The data does not establish impact for workflows that do not inspect archives first or that use the same behavior in both layers.

4

What is the remediation?

Update node-tar to version 8.0.0, which fixes the issue. The affected versions are from 7.0.0 until 8.0.0.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203