CVE-2026-29063: Immutable Package Vulnerable to Prototype Pollution

immutable Updated 04 Mar 2026

Summary

04/03/2026
Yes i
High
8.7

CVE-2026-29063: Immutable is vulnerable to Prototype Pollution. Affects immutable across 2 version ranges.

< 4.3.8 >= 5.0.0, < 5.1.5

Fixed in 4.3.8 or 5.1.5, depending on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The Immutable package is a popular library in the JavaScript ecosystem, primarily used for creating immutable data structures. It provides a range of functionalities, including deep merging of objects and conversion of Maps to JavaScript objects. However, it has been found to be vulnerable to prototype pollution, which can lead to severe security issues.

Vulnerability Detail

The vulnerability arises from the use of certain APIs within the Immutable package, specifically mergeDeep(), mergeDeepWith(), merge(), Map.toJS(), and Map.toObject(). These functions allow an attacker to manipulate the prototype of objects, potentially leading to unauthorized access or privilege escalation. This can occur when user input is merged into existing objects without proper validation, allowing malicious payloads to inject properties into the prototype chain.

How To Fix

Latest published version: 5.1.9 as of 22 Oct 2026

npm install immutable@5.1.9

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 4.3.8 4.3.8
    npm install immutable@4.3.8
  • >= 5.0.0, < 5.1.5 5.1.5
    npm install immutable@5.1.5

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

As a temporary measure, users can implement the following workarounds:

  • Validate user input to prevent malicious data from being processed.
  • Use the Node.js flag --disable-proto to disable prototype pollution.
  • Lock down built-in objects to prevent modification.
  • Avoid lookups on the prototype chain.
  • Create JavaScript objects with a null prototype to mitigate risks.

Conclusion

The Immutable package has a significant vulnerability related to prototype pollution, which can lead to serious security risks. Users are strongly advised to upgrade to the latest patched versions or implement workarounds to mitigate the risks associated with this vulnerability.

See every vulnerability recorded for immutable →

Share this vulnerability

FAQ

Prototype pollution is a security vulnerability that allows an attacker to manipulate an object's prototype, potentially leading to unauthorized access or privilege escalation.

Versions 3.x, 4.x (prior to 4.3.7), and 5.x (prior to 5.1.5) of the Immutable package are affected by this vulnerability.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time using just your package-lock.json file. You can also check your application using the Vulert playground without signing up.

If immediate upgrading is not possible, implement the suggested workarounds to mitigate the risk of prototype pollution.

The CVSS score for this vulnerability is 8.7, indicating a high severity level.

Related vulnerabilities

Recent vulnerabilities recorded for immutable.

How To Fix

Latest published version: 5.1.9 as of 22 Oct 2026

npm install immutable@5.1.9

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 4.3.8 4.3.8
    npm install immutable@4.3.8
  • >= 5.0.0, < 5.1.5 5.1.5
    npm install immutable@5.1.5

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback