CVE-2021-23470: Prototype Pollution in putil-merge
8.2
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.79913%
CWE
Published
2/5/2022
Updated
2/3/2023
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:L/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
putil-merge | npm | < 3.8.0 | 3.8.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability explicitly references the merge()
function as the entry point. The GitHub commit shows the fix added a 'constructor' key check in lib/merge.js
, confirming this was the vulnerable location. The CVE description and Snyk advisory both attribute the flaw to insufficient input validation in the merge function when handling nested properties. The added test cases in the commit specifically validate()
protection against 'constructor'-based prototype pollution, directly linking the vulnerability to this function.