CVE-2025-64718
JSON

5.3medium

js-yaml has prototype pollution in merge (<<)

Severity
5.3medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.42% (higher than 38% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-mh29-5h37-fv8m

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

Product or packageVersionsReported by
nodeca js-yaml>= 4.0.0, < 4.1.1, < 3.14.2, before 3.14.2, from 4.0.0 before 4.1.1CVE List, NVD
js-yaml (npm)from 4.0.0 before 4.1.1, before 3.14.2GitHub Advisory Database

All scores

GitHub_M5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
GitHub5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Classification

CWE-1321

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

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).

GitHub Advisory Database
Impact

In js-yaml 4.1.0, 4.0.0, and 3.14.1 and below, 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.

Patches

Problem is patched in js-yaml 4.1.1 and 3.14.2.

Workarounds

You 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).

References

https://cheatsheetseries.owasp.org/cheatsheets/Prototype_Pollution_Prevention_Cheat_Sheet.html

NVD (es)

js-yaml es un analizador y volcador YAML de JavaScript. En js-yaml antes de 4.1.1 y 3.14.2, es posible para un atacante modificar el prototipo del resultado de un documento YAML analizado a través de la contaminación de prototipos ('__proto__'). Todos los usuarios que analizan documentos YAML no confiables pueden verse afectados. El problema está parcheado en js-yaml 4.1.1 y 3.14.2. Los usuarios pueden protegerse contra este tipo de ataque en el servidor usando 'node --disable-proto=delete' o 'deno' (en Deno, la protección contra la contaminación está activada por defecto).

References

Sources

SourceRecordLicence
CVE ListCVE-2025-64718 changed 2026-01-29CVE Terms of Use
GitHub Advisory DatabaseGHSA-mh29-5h37-fv8m changed 2026-09-10CC-BY-4.0
NVDCVE-2025-64718 changed 2026-10-07Public domain