Vulnerability Details : CVE-2021-42581
Prototype poisoning in function mapObjIndexed in Ramda 0.27.0 and earlier allows attackers to compromise integrity or availability of application via supplying a crafted object (that contains an own property "__proto__") as an argument to the function. NOTE: the vendor disputes this because the observed behavior only means that a user can create objects that the user didn't know would contain custom prototypes
Products affected by CVE-2021-42581
- cpe:2.3:a:ramdajs:ramda:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2021-42581
0.09%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 38 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2021-42581
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
6.4
|
MEDIUM | AV:N/AC:L/Au:N/C:N/I:P/A:P |
10.0
|
4.9
|
NIST | |
9.1
|
CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H |
3.9
|
5.2
|
NIST |
CWE ids for CVE-2021-42581
-
The product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype.Assigned by: nvd@nist.gov (Primary)
References for CVE-2021-42581
-
https://github.com/ramda/ramda/pull/3192
fix: prototype poisoning (CWE-915) by Marynk · Pull Request #3192 · ramda/ramda · GitHubIssue Tracking;Patch;Third Party Advisory
-
https://jsfiddle.net/3pomzw5g/2/
Edit fiddle - JSFiddle - Code PlaygroundExploit;Third Party Advisory
Jump to