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

> Attackers can cause CPU exhaustion in Immutable.js applications by inserting keys with colliding hashes into Maps or Sets.

- **Severity:** High 8.7 (`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`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 8 Jul 2026
- **Updated:** 8 Jul 2026
- **Also known as:** CLEANSTART-2026-BI32681, CLEANSTART-2026-VB50849, CLSA-2026-1784769617, CLSA-2026-1784856200, CLSA-2026-1784856463, CLSA-2026-1784943220, CLSA-2026-1784943293, DEBIAN-CVE-2026-59880, ECHO-bbb2-861f-196e, GHSA-xvcm-6775-5m9r, MINI-2w6v-xm84-fqgx, MINI-33qf-356q-pj3q, MINI-43q8-37cx-hp5v, MINI-684m-67gh-32mx, MINI-75ch-37wf-5p2p, MINI-fgw7-7475-mcvr, MINI-m4v4-74jh-8v46, MINI-wwrj-p338-6w5j, ROOT-APP-NPM-CVE-2026-59880, UBUNTU-CVE-2026-59880

## What is CVE-2026-59880?

CVE-2026-59880 is a high-severity denial of service vulnerability in immutable-js, published on 8 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official 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.

Weakness: CWE-407 (Inefficient Algorithmic Complexity)

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

6 open source packages ship an affected version, including immutable. It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `immutable` | npm | All versions | 3.8.4 |
| `immutable` | npm | All versions | 3.8.4 |
| `immutable` | npm | From 4.0.0-beta.1 | 4.3.9 |
| `immutable` | npm | From 4.0.0-beta.1 | 4.3.9 |
| `immutable` | npm | From 5.0.0-beta.1 | 5.1.8 |
| `immutable` | npm | From 5.0.0-beta.1 | 5.1.8 |

Products: Immutable-Js Immutable.

## How do I fix CVE-2026-59880?

Upgrade immutable to a fixed version for your release line: 3.8.4, 4.3.9 or 5.1.8.

## Is CVE-2026-59880 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-59880 exists.

## Other vulnerabilities in immutable-js

- [CVE-2026-59879](https://insights.sbomify.com/CVE-2026-59879/): Immutable.js `List` 32-bit trie overflow → unrecoverable DoS (high 8.7)
- [CVE-2026-29063](https://insights.sbomify.com/CVE-2026-29063/): Immutable.js: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') in immutable (high 8.7)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-59880 and fix it if it is affected.

What it is: CVE-2026-59880 is a high-severity denial of service vulnerability in immutable-js, published on 8 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-59880 exists.

Affected packages and fixed versions:
- immutable (npm): affected all versions; fixed in 3.8.4
- immutable (npm): affected all versions; fixed in 3.8.4
- immutable (npm): affected from 4.0.0-beta.1; fixed in 4.3.9
- immutable (npm): affected from 4.0.0-beta.1; fixed in 4.3.9
- immutable (npm): affected from 5.0.0-beta.1; fixed in 5.1.8
- immutable (npm): affected from 5.0.0-beta.1; fixed in 5.1.8

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-59880/ (Markdown: https://insights.sbomify.com/CVE-2026-59880/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-59880
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-59880
- OSV: https://osv.dev/vulnerability/CVE-2026-59880

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-59880/
Summaries are generated and may contain mistakes; the official description above is the record.
