Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. adm-zip
  4. ›
  5. GHSA-c6fg-446q-cg94

GHSA-c6fg-446q-cg94: adm-zip: getDataAsync() bypasses the maxOutputLength size guard enforced by the synchronous getData() path

September 29, 2026

adm-zip enforces a maxOutputLength guard against decompression bombs on its synchronous getData() path, but the equivalent asynchronous getDataAsync() path does not enforce it — it accumulates and returns the entire decompressed output regardless of the entry’s declared size. An application that checks an entry’s declared size before deciding to process it, then reads the entry via getDataAsync() (a completely ordinary, often-recommended choice for I/O in Node.js), gets none of the protection it believes it has.

References

  • github.com/advisories/GHSA-c6fg-446q-cg94
  • github.com/cthackers/adm-zip/commit/491600683dacb6cb9fe0718a0eeb9cb5eb49afa6
  • github.com/cthackers/adm-zip/releases/tag/v0.6.1
  • github.com/cthackers/adm-zip/security/advisories/GHSA-c6fg-446q-cg94

Code Behaviors & Features

Detect and mitigate GHSA-c6fg-446q-cg94 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.6.1

Fixed versions

  • 0.6.1

Solution

Upgrade to version 0.6.1 or above.

Impact 5.3 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-400: Uncontrolled Resource Consumption
  • CWE-770: Allocation of Resources Without Limits or Throttling

Source file

npm/adm-zip/GHSA-c6fg-446q-cg94.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sat, 17 Oct 2026 00:23:22 +0000.