What’s Vulnerable › Vulnerabilities

CVE-2026-59879: Immutable.js `List` 32-bit trie overflow → unrecoverable DoS

Description

Immutable.js provides many Persistent Immutable data structures. Prior to 4.3.9 and 5.1.8, List#set, List#setSize, List#setIn, List#updateIn, and the functional set, setIn, and updateIn mishandle an index or size in the range 2 ** 30 to 2 ** 31 in setListBounds in src/List.js, causing an empty List to enter an uncatchable infinite loop, a populated List to allocate without bound until process abort, or setSize to silently wrap large values. 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-59879 or the next vulnerability affects your stack