CVE-2025-64718
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).
How to fix
- nodeca js-yaml3.14.2, 4.1.1 or later
- js-yaml4.1.1, 3.14.2 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| nodeca js-yaml | v < 3.14.2, 4.0.0 ≤ v < 4.1.1 | 3.14.2, 4.1.1 |
| js-yamlnpm | 4.0.0 ≤ v < 4.1.1, v < 3.14.2 | 4.1.1, 3.14.2 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.