tar is vulnerable to Denial of Service
75
High Risk
The vulnerability stems from the library lacking hard upper bounds on total decompressed data volume, entry counts, or decompression ratios. During extraction, the Unpack stream in src/extract.ts blindly processes incoming entries without tracking global resource consumption. Because existing limits like the maxReadSize option only govern internal read chunk sizes rather than cumulative disk writes, an attacker can forge a TAR header claiming a massive file size backed by highly compressible data. The library will continuously unpack and write this payload, lacking any mechanism to abort, until the physical storage of the host is completely exhausted and the service crashes.
You are affected if you are using a version that falls within the vulnerable range.
tar is vulnerable to Denial of Service in versions 0.0.0 - 7.5.18.
Upgrade the tar library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant