Versions 2.0.4 and earlier of js-yaml are affected by a code execution vulnerability in the YAML deserializer.
Full advisory text at GitHub advisory or NVD.
js-yaml (npm) has 12 known vulnerabilities, the worst rated CRITICAL. Upgrade to 5.4.1 or later to clear all of them. No malicious-package signal is recorded.
4 direct dependencies
none carry a known advisory
Tracked for PyPI packages. HuggingFace models declare Python dependencies, so npm packages are not covered.
severity band, no base score published
chance of exploitation in 30 days, 97th percentile of all CVEs
CyberXYZ composite, a working exploit is published
fig. 01 — GHSA-xxvw-45rp-3mj2, the advisory selected below
Versions 2.0.4 and earlier of js-yaml are affected by a code execution vulnerability in the YAML deserializer.
Full advisory text at GitHub advisory or NVD.
CyberXYZ does not call a package safe in absolute terms. It records 12 known vulnerabilities for js-yaml (npm), the worst rated CRITICAL, and no malicious-package signal. Whether it is acceptable depends on the version you run.
Yes. CyberXYZ records 12 known vulnerabilities for js-yaml (npm), the worst rated CRITICAL. These include GHSA-xxvw-45rp-3mj2, GHSA-2883-xcg3-v3hh, GHSA-5p4m-2wfm-xmqj, GHSA-pm4m-ph32-ghv5, GHSA-52cp-r559-cp3m.
5.4.1 or later clears every advisory recorded for js-yaml (npm). Check the release you pick before installing it.
Search js-yaml in CyberXYZ Check at https://cyberxyz.io/check?q=js-yaml. The xyz Scanner checks a project's dependencies, and CyberXYZ Proxy checks each package as it is installed.
Checked 2026-11-17 at 13:15 UTC. The most recent advisory here was published 2026-09-29. Updated continuously from NVD, GHSA, OSV and CNA feeds.