# CVE-2026-45820: fflate unzipSync can enter an infinite loop when parsing malformed ZIP64 archives

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.6
- **CVSS:** 6.6 (v4.0, CNA) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U/S:N/AU:Y/R:U/V:D/RE:M/U:Amber`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: None; Privileges required: None; User interaction: None; Confidentiality impact: None; Integrity impact: None; Availability impact: High; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None; Exploit maturity: Unreported; S: N; AU: Y; R: U; V: D; RE: M; U: Amber
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.49% (percentile 35, 2026-11-26)
- **CWE:** CWE-835, CWE-400
- **Aliases:** GHSA-px8p-9vwx-vf98
- **Published:** 2026-07-22T06:57:13.726Z
- **Modified:** 2026-10-24T17:10:00.220Z

## Who should check

- Projects that depend on npm package fflate (\>= 0.4.5, \< 0.4.9)
- Anyone running 101arrowz fflate \>= 0.4.5, \<= 0.4.8; \>= 0.5.0, \<= 0.5.3; \>= 0.6.0, \<= 0.6.10; \>= 0.7.0, \<= 0.7.4; \>= 0.8.0, \<= 0.8.2

## Description

fflate through 0.8.2 is vulnerable to denial of service via an infinite loop in unzipSync(). A crafted ZIP archive with a central directory entry declaring compressed\_size=0xFFFFFFFF (ZIP64 sentinel) but missing the required ZIP64 extra field tag 0x0001 causes z64e() to loop indefinitely due to out-of-bounds reads returning undefined, which coerces to 0, keeping the loop condition permanently true.

## Affected and fixed versions

- npm `fflate`: affected \>= 0.4.5, \< 0.4.9; fixed 0.4.9, 0.5.4, 0.6.11, 0.7.5, 0.8.3 (osv)
- 101arrowz fflate: \>= 0.4.5, \<= 0.4.8; \>= 0.5.0, \<= 0.5.3; \>= 0.6.0, \<= 0.6.10; \>= 0.7.0, \<= 0.7.4; \>= 0.8.0, \<= 0.8.2 (cvelist)

## Mitigation

- Upgrade fflate to one of 0.4.9, 0.5.4, 0.6.11, 0.7.5, 0.8.3 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-45820. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-45820.md
Affected: fflate >= 0.4.5, < 0.4.9
Fixed in: 0.4.9, 0.5.4, 0.6.11, 0.7.5, 0.8.3

Steps:
1. Search this machine and project for fflate (npm), 101arrowz fflate: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-45820 being exploited?

There is no confirmed exploitation: CVE-2026-45820 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.49% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-45820?

Medium: CVSS 6.6 (v4.0, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-45820?

fflate \>= 0.4.5, \< 0.4.9.

### Is there a fix for CVE-2026-45820?

Yes. Fixed in 0.4.9, 0.5.4, 0.6.11, 0.7.5, 0.8.3. Upgrade fflate to one of 0.4.9, 0.5.4, 0.6.11, 0.7.5, 0.8.3 (or later in the same release line).

### How do I check if I'm affected by CVE-2026-45820?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-45820>
- patch: <https://github.com/101arrowz/fflate/blob/f7873560ad229c22c4b23b06c6a3806ffde77569/src/index.ts#L2714>
- patch: <https://github.com/101arrowz/fflate/commit/e6d5e6e1076892f72770ac732d83c81da9f3316e>
- other: <https://www.npmjs.com/package/fflate>
- other: <https://github.com/101arrowz/fflate>
- other: <https://github.com/101arrowz/fflate/releases/tag/v0.8.3>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-45820>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-px8p-9vwx-vf98> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-45820> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-45820>
