CVE-2025-64718
MEDIUM 5.3CVSS 3.1js-yaml has prototype pollution in merge (<<)
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).
- Published
- 13 Nov 2025
- Last modified
- 7 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-1321
- Also known as
- GHSA-mh29-5h37-fv8m
- Sources
- NVDJSONOSV GHSA-mh29-5h37-fv8mJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | nodeca | js-yamlcpe:2.3:a:nodeca:js-yaml:*:*:*:*:*:node.js:*:* |
< 3.14.2 | 3.14.2 |
| NVD | nodeca | js-yamlcpe:2.3:a:nodeca:js-yaml:*:*:*:*:*:node.js:*:* |
>= 4.0.0, < 4.1.1 | 4.1.1 |
| OSV | npm | js-yaml | >= 4.0.0, < 4.1.1 | 4.1.1 |
| OSV | npm | js-yaml | < 3.14.2 | 3.14.2 |
References
- https://github.com/nodeca/js-yaml/commit/383665ff4248ec2192d1274e934462bb30426879 · Patch, WEB
- https://github.com/nodeca/js-yaml/commit/5278870a17454fe8621dbd8c445c412529525266 · Patch, WEB
- https://github.com/nodeca/js-yaml/issues/730#issuecomment-3549635876 · Issue Tracking, WEB
- https://github.com/nodeca/js-yaml/security/advisories/GHSA-mh29-5h37-fv8m · Vendor Advisory, WEB
- https://github.com/advisories/GHSA-mh29-5h37-fv8m · Vendor Advisory, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2025-64718 · ADVISORY
- https://github.com/nodeca/js-yaml · PACKAGE
History
- 25 Nov 2026 20:59 UTC · NVD: first stored (published 13 Nov 2025)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 14 Nov 2025)