# CVE-2025-64718: js-yaml has prototype pollution in merge (<<)

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- 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): 0.42%, higher than 38% of CVEs (2026-12-01)
- Published: 2025-11-13T15:32:44.634Z
- Modified: 2026-10-07T21:10:00.200Z
- Also known as: GHSA-mh29-5h37-fv8m
- Weaknesses: CWE-1321
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

js-yaml is a JavaScript YAML parser and dumper. In js-yaml before 4.1.1 and 3.14.2, it's possible for an attacker to modify the prototype of the result of a parsed yaml document via prototype pollution (`__proto__`). All users who parse untrusted yaml documents may be impacted. The problem is patched in js-yaml 4.1.1 and 3.14.2. Users can protect against this kind of attack on the server by using `node --disable-proto=delete` or `deno` (in Deno, pollution protection is on by default).

(As written by CVE List.)

## Affected

- nodeca js-yaml: >= 4.0.0, < 4.1.1; < 3.14.2; before 3.14.2; from 4.0.0 before 4.1.1
- js-yaml (npm): from 4.0.0 before 4.1.1; before 3.14.2

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`

## References

- <https://github.com/nodeca/js-yaml/security/advisories/GHSA-mh29-5h37-fv8m> (vendor-advisory, web)
- <https://github.com/nodeca/js-yaml/issues/730#issuecomment-3549635876> (issue-tracking, web)
- <https://github.com/nodeca/js-yaml/commit/383665ff4248ec2192d1274e934462bb30426879> (patch, web)
- <https://github.com/nodeca/js-yaml/commit/5278870a17454fe8621dbd8c445c412529525266> (patch, web)
- <https://github.com/advisories/GHSA-mh29-5h37-fv8m> (advisory, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-64718> (advisory)
- <https://github.com/nodeca/js-yaml> (package)

## Sources

- CVE List: [CVE-2025-64718](https://www.cve.org/CVERecord?id=CVE-2025-64718), CVE Terms of Use, modified 2026-01-29
- GitHub Advisory Database: [GHSA-mh29-5h37-fv8m](https://github.com/advisories/GHSA-mh29-5h37-fv8m), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-64718](https://nvd.nist.gov/vuln/detail/CVE-2025-64718), Public domain, modified 2026-10-07

---

Page: https://cve.day/CVE-2025-64718 · Whole record: https://cve.day/CVE-2025-64718.json · Rebuilt by cve.day 2026-11-25T22:59:07.636Z
