What’s Vulnerable › Vulnerabilities

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

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.

Affected products

How to fix

Upgrade to a fixed version: immutable-js 4.3.9, 5.1.8; Npm Immutable 4.3.9, 5.1.8, 3.8.4. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-59880 or the next vulnerability affects your stack