CVE-2022-21213: Prototype Pollution in mout
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.78622%
CWE
Published
6/18/2022
Updated
1/30/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:N/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| mout | npm | <= 1.2.3 | 1.2.4 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the 'set' function's handling of property keys. The commit diff shows critical changes in src/object/set.js where the 'prop' parameter is explicitly converted to a string and checked for prototype pollution patterns. The added test case in tests/spec/object/spec-set.js demonstrates protection against array-based prototype pollution vectors. While vulnerability descriptions mention deepFillIn/deepMixIn, the actual fix and PoC target the 'set' function, indicating it was the primary vulnerable entry point. The previous CVE-2020-7792 addressed deepMixIn/deepFillIn, making this a new vulnerability in a different function.