OSV 1.4.0 · github-reviewed · 修改于 2021-09-23 02:27
发布时间
2017-10-25 02:33
GitHub 审查时间
2020-06-17 06:05
NVD 发布时间
—
源文件
advisories/github-reviewed/2017/10/GHSA-xxvw-45rp-3mj2/GHSA-xxvw-45rp-3mj2.json
Versions 2.0.4 and earlier of js-yaml are affected by a code execution vulnerability in the YAML deserializer.
const yaml = require('js-yaml');
const x = `test: !!js/function >
function f() {
console.log(1);
}();`
yaml.load(x);
Update 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.