Vulnerability · Published Nov 13, 2025 · Assigned by GitHub_M
CVE-2025-64718js-yaml has prototype pollution in merge (<<)
Medium 5.3
In plain English
A medium-severity prototype pollution in js-yaml from nodeca. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 37% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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).
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | node-js-yaml | no fix listed | DEBIAN-CVE-2025-64718 |
| Debian:13 | node-js-yaml | no fix listed | DEBIAN-CVE-2025-64718 |
| Debian:14 | node-js-yaml | 4.1.1+dfsg+~4.0.9-1 | DEBIAN-CVE-2025-64718 |
| Ubuntu:22.04:LTS | node-js-yaml | no fix listed | UBUNTU-CVE-2025-64718 |
| Ubuntu:24.04:LTS | node-js-yaml | no fix listed | UBUNTU-CVE-2025-64718 |
| Ubuntu:25.10 | node-js-yaml | no fix listed | UBUNTU-CVE-2025-64718 |
| Ubuntu:26.04:LTS | node-js-yaml | no fix listed | UBUNTU-CVE-2025-64718 |
| Ubuntu:26.10 | node-js-yaml | no fix listed | UBUNTU-CVE-2025-64718 |
| npm | js-yaml | 3.14.2 | GHSA-mh29-5h37-fv8m |
| npm | js-yaml | 4.1.1 | GHSA-mh29-5h37-fv8m |
Affected products (as reported)
Weakness: CWE-1321 · Vector: 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 x_refsource_CONFIRM
- https://github.com/nodeca/js-yaml/issues/730#issuecomment-3549635876 x_refsource_MISC
- https://github.com/nodeca/js-yaml/commit/383665ff4248ec2192d1274e934462bb30426879 x_refsource_MISC
- https://github.com/nodeca/js-yaml/commit/5278870a17454fe8621dbd8c445c412529525266 x_refsource_MISC
- https://github.com/advisories/GHSA-mh29-5h37-fv8m