adm-zip duplicate ZIP entry name validation bypass

Severity: medium · CVSS 5.9 · Published 2026-09-29

adm-zip is a Node.js library for reading and writing ZIP archives. A malicious ZIP file containing duplicate entry names can be crafted so that entry validation via getEntry() approves one file's content, while extraction writes different bytes to disk under that name. An application that validates archive contents before extraction can be deceived into approving untrusted files.

Technologies: adm-zip (npm). Vendors: npm.

Quick answers

Is This vulnerability exploited in the wild?
No. Junglewise Threat Intelligence has no report of This vulnerability being exploited in the wild.
How severe is This vulnerability?
Medium severity, with a CVSS score of 5.9, published 29 September 2026.
Which products and versions are affected?
adm-zip (npm) <= 0.6.0.
Is there a fix for This vulnerability?
No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
How is This vulnerability attacked?
It is attacked over the network, in a software library.
Am I affected?
Check whether you run adm-zip (npm) or Adm-Zip at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

The vulnerability stems from inconsistent handling of duplicate ZIP entry names: the entryTable lookup table retains only the last duplicate, while entryList retains all entries. The getEntry() method consults entryTable and returns the last-written duplicate, but extractAllTo() iterates entryList and writes the first duplicate, creating a check/use split. An attacker supplies a ZIP with two entries sharing the same name, causing validation and extraction to resolve to different file contents.

Affected products

  • adm-zip

Timeline

  • 2026-09-29: disclosed

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.