Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. js-yaml
  4. ›
  5. CVE-2025-64718

CVE-2025-64718: js-yaml has prototype pollution in merge (<<)

November 14, 2025 (updated November 17, 2025)

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.

References

  • github.com/advisories/GHSA-mh29-5h37-fv8m
  • github.com/nodeca/js-yaml
  • github.com/nodeca/js-yaml/commit/383665ff4248ec2192d1274e934462bb30426879
  • github.com/nodeca/js-yaml/commit/5278870a17454fe8621dbd8c445c412529525266
  • github.com/nodeca/js-yaml/security/advisories/GHSA-mh29-5h37-fv8m
  • nvd.nist.gov/vuln/detail/CVE-2025-64718

Code Behaviors & Features

Detect and mitigate CVE-2025-64718 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.14.2, all versions starting from 4.0.0 before 4.1.1

Fixed versions

  • 4.1.1
  • 3.14.2

Solution

Upgrade to versions 3.14.2, 4.1.1 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')

Source file

npm/js-yaml/CVE-2025-64718.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Mon, 24 Nov 2025 00:19:48 +0000.