# CVE-2021-42581: Prototype poisoning in function mapObjIndexed in Ramda 0.27.0 and earlier allows attackers to compromise integrity or availability of appli…

- Severity: Critical 9.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.39%, higher than 73% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-05-10T10:08:13.000Z
- Modified: 2026-06-17T04:09:51.663Z
- Weaknesses: CWE-1321
- Assigned by: mitre

## Description

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

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- ramdajs ramda: up to 0.27.0

## Every score

- NVD: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`
- NVD: CVSS:2.0 6.4 Medium `AV:N/AC:L/Au:N/C:N/I:P/A:P`

## References

- <https://jsfiddle.net/3pomzw5g/2/> (exploit, third-party-advisory)
- <https://github.com/ramda/ramda/pull/3192> (issue-tracking, patch, third-party-advisory)

## Sources

- CVE List: [CVE-2021-42581](https://www.cve.org/CVERecord?id=CVE-2021-42581), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2021-42581](https://nvd.nist.gov/vuln/detail/CVE-2021-42581), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-42581 · Whole record: https://cve.day/CVE-2021-42581.json · Rebuilt by cve.day 2026-11-25T22:58:07.461Z
