npm package reportIs js-yaml safe?
12 known vulnerabilities, worst severity CRITICAL.
// reach4 direct dependencies
none carry a known advisory
702 packages depend on it
an advisory here reaches each of them
- charm-mm
- config
- @grucloud/provider-k8s
- md-specgen
- @minecraft-docker/mcctl
- tsd
// ai model usageTracked for PyPI packages. HuggingFace models declare Python dependencies, so npm packages are not covered.
cvssseverity band, no base score published
epsschance of exploitation in 30 days, 97th percentile of all CVEs
xyz scoreCyberXYZ composite, a working exploit is published
fig. 01 — GHSA-xxvw-45rp-3mj2, the advisory selected below
// 12 advisories
Versions 2.0.4 and earlier of js-yaml are affected by a code execution vulnerability in the YAML deserializer.
// proof of conceptconst yaml = require('js-yaml');
const x = `test: !!js/function >
function f() {
console.log(1);
}();`
yaml.load(x);// recommendationUpdate js-yaml to version 2.0.5 or later, and ensure that all instances where the .load() method is called are updated to use .safeLoad() instead.
Checked 2026-11-06 at 21:01 UTC. The most recent advisory here was published 2026-09-29. Updated continuously from NVD, GHSA, OSV and CNA feeds.