CVE-2026-59879

Summary

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 Software

VendorProductVersion RangeStatus
immutable-jsimmutable-js>= 5.0.0-beta.1, < 5.1.8affected
immutable-jsimmutable-js< 4.3.9affected

Weaknesses

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

ADP Enrichment

CISA ADP Vulnrichment

  • SSVC:
  • Exploitation: poc
    • Automatable: yes
    • Technical Impact: partial

Additional References

References