CVE-2026-59879

Immutable.js `List` 32-bit trie overflow → unrecoverable DoS

State
Published
Severity
8.7 High
Published
Jul 8, 2026
Updated
Jul 8, 2026
Reserved
Jul 7, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
4.08.7 HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:NGitHub_M

Weaknesses

  • CWE-190 Integer Overflow or Wraparound
  • CWE-400 Uncontrolled Resource Consumption
  • CWE-835 Loop with Unreachable Exit Condition ('Infinite Loop')
  • CWE-1284 Improper Validation of Specified Quantity in Input

Affected Products

ProductVersions
immutable-jsimmutable-js
  • >= 5.0.0-beta.1, < 5.1.8Affected
  • < 4.3.9Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.