immer is vulnerable to Prototype Pollution
65
CVE Score
Medium
Prototype Pollution
Affected versions of the immer library are vulnerable to Prototype Pollution via draft.constructor.prototype, bypassing prior fixes for CVE-2021-23436. The proxy get trap returned constructor and __proto__ without guards, so attacker-controlled input (e.g. Object.assign(draft, req.body) with {"constructor":{"prototype":{"isAdmin":true}}}) can mutate Object.prototype and affect all objects. This may lead to authentication bypass, authorization escalation, or remote code execution.
Upgrade the immer library to the patch version.
You are affected if you are using a version that falls within the vulnerable range.
4.0.0 - 11.1.8
Fixed in 11.1.9immer is vulnerable to Prototype Pollution in versions 4.0.0 - 11.1.8.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.