CVE-2020-7644:
Uncontrolled Resource Consumption in fun-map
8.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.66811%
CWE
Published
12/10/2021
Updated
1/27/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
fun-map | npm | <= 3.3.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability description explicitly identifies assocInM as the vulnerable function. Analysis of the source code shows it uses user-controlled keys to recursively create nested objects (obj[key] = {}) without validating against special prototype properties like proto. This allows attackers to modify Object.prototype by providing a malicious key path (e.g., ['proto', 'polluted']), leading to prototype pollution. The function's structure matches classic prototype pollution patterns, and the CWE-1321 classification confirms this assessment.