Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. adm-zip
  4. ›
  5. GHSA-p634-w6r4-rjp2

GHSA-p634-w6r4-rjp2: adm-zip: Duplicate ZIP entry names: getEntry() and extractAllTo() resolve to different content

September 29, 2026

A ZIP file can contain two entries with the identical name. adm-zip keeps both in its internal entry list, but its name-lookup table only retains the last one written. getEntry(name) and extractAllTo() walk these two different internal structures, so they can each resolve a duplicate name to a different entry. An application that validates a named entry’s contents via getEntry() before trusting an archive, then extracts the whole archive, can end up approving one file’s content while a different file’s bytes are what actually land on disk under that name.

References

  • github.com/advisories/GHSA-p634-w6r4-rjp2
  • github.com/cthackers/adm-zip/commit/05101d47b3b983b705cc3e66fc34366118ba7b99
  • github.com/cthackers/adm-zip/releases/tag/v0.6.1
  • github.com/cthackers/adm-zip/security/advisories/GHSA-p634-w6r4-rjp2

Code Behaviors & Features

Detect and mitigate GHSA-p634-w6r4-rjp2 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.6.1

Fixed versions

  • 0.6.1

Solution

Upgrade to version 0.6.1 or above.

Impact 5.9 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-436: Interpretation Conflict
  • CWE-696: Incorrect Behavior Order

Source file

npm/adm-zip/GHSA-p634-w6r4-rjp2.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:39 +0000.