Immutable-js
Immutable.js: Hash-collision algorithmic complexity denial of service in Immutable.Map/Set
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- < 4.3.9
- >= 5.0.0-beta.1, < 5.1.8
Fixed in 4.3.9, 5.1.8
Mitigation
Upgrade immutable-js to 4.3.9 or 5.1.8 or later.
References
- Vendor advisory github.com/immutable-js/immutable-js/security/…
- Patch github.com/immutable-js/immutable-js/commit/3d…
- Patch github.com/immutable-js/immutable-js/commit/e5…
2 more
- Release notes github.com/immutable-js/immutable-js/releases/…
- Release notes github.com/immutable-js/immutable-js/releases/…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.