CVE-2020-28477: Prototype Pollution in immer
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.70542%
CWE
Published
1/20/2021
Updated
4/25/2024
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
immer | npm | >= 7.0.0, < 8.0.1 | 8.0.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability manifests in the path traversal logic within applyPatches. Before the fix, the code did not validate if path segments like proto or prototype were being accessed. The proof of exploit demonstrates prototype pollution through add/replace operations using proto paths. The security fix in commit da2bd4f specifically adds validation checks in this path traversal loop to block manipulation of reserved properties, confirming this was the vulnerable code path.