Skip to main content
← All vulnerabilities
CVE-2025-64718GHSA-MH29-5H37-FV8M

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 4.1.1, 3.14.2
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

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

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • nodeca js-yaml

    From 4.0.0 · fixed in 4.1.1; fixed in 3.14.2

  • js-yamlnpm

    From 4.0.0 · fixed in 4.1.1

  • js-yamlnpm

    fixed in 3.14.2

References 4

GitHub · nodeca/js-yaml