{"dataType": "CVE_RECORD", "containers": {"adp": [{"metrics": [{"other": {"type": "Unknown", "content": {"data": "{\"description\":\"unimportant\"}"}}}], "affected": [{"vendor": "debian", "product": "node-js-yaml", "platforms": ["bookworm", "forky", "sid", "trixie"], "defaultStatus": "unaffected"}], "references": [{"url": "https://security-tracker.debian.org/tracker/CVE-2013-4660"}], "descriptions": [{"lang": "en", "value": "The JS-YAML module before 2.0.5 for Node.js parses input without properly considering the unsafe !!js/function tag, which allows remote attackers to execute arbitrary code via a crafted string that triggers an eval operation."}], "providerMetadata": {"orgId": "79363d38-fa19-49d1-9214-5f28da3f3ac5", "shortName": "debian", "dateUpdated": "2013-06-28T14:00:00.000Z", "x_subShortName": "debian"}}, {"metrics": [{"other": {"type": "Unknown", "content": {"data": "{\"description\":\"CRITICAL\"}"}}}], "affected": [{"vendor": "npm", "product": "js-yaml", "versions": [{"status": "affected", "version": "0", "lessThan": "2.0.5", "versionType": "semver"}], "defaultStatus": "unaffected"}], "references": [{"url": "https://github.com/advisories/GHSA-xxvw-45rp-3mj2"}, {"url": "https://nealpoole.com/blog/2013/06/code-execution-via-yaml-in-js-yaml-nodejs-module"}, {"url": "https://nvd.nist.gov/vuln/detail/CVE-2013-4660"}, {"url": "https://www.npmjs.com/advisories/16"}], "descriptions": [{"lang": "en", "value": "Deserialization Code Execution in js-yaml"}, {"lang": "en", "value": "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 >\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."}], "providerMetadata": {"orgId": "386269d4-a6c6-4eaa-bf8e-bc0b0d010558", "shortName": "npm", "dateUpdated": "2017-10-24T18:33:37Z", "x_subShortName": "npm"}}], "cna": {"metrics": [{"format": "CVSS", "cvssV2_0": {"version": "2.0", "baseScore": 6.8, "accessVector": "NETWORK", "vectorString": "AV:N/AC:M/Au:N/C:P/I:P/A:P", "authentication": "NONE", "integrityImpact": "PARTIAL", "accessComplexity": "MEDIUM", "availabilityImpact": "PARTIAL", "confidentialityImpact": "PARTIAL"}}], "affected": [{"cpes": ["cpe:2.3:a:nodeca:js-yaml:*:*:*:*:*:*:*:*", "cpe:2.3:a:nodeca:js-yaml:0.2.0:*:*:*:*:*:*:*", "cpe:2.3:a:nodeca:js-yaml:0.2.1:*:*:*:*:*:*:*", "cpe:2.3:a:nodeca:js-yaml:0.2.2:*:*:*:*:*:*:*", "cpe:2.3:a:nodeca:js-yaml:0.3.0:*:*:*:*:*:*:*", "cpe:2.3:a:nodeca:js-yaml:0.3.1:*:*:*:*:*:*:*", "cpe:2.3:a:nodeca:js-yaml:0.3.2:*:*:*:*:*:*:*", "cpe:2.3:a:nodeca:js-yaml:0.3.3:*:*:*:*:*:*:*", "cpe:2.3:a:nodeca:js-yaml:0.3.4:*:*:*:*:*:*:*", "cpe:2.3:a:nodeca:js-yaml:0.3.5:*:*:*:*:*:*:*", "cpe:2.3:a:nodeca:js-yaml:0.3.6:*:*:*:*:*:*:*", "cpe:2.3:a:nodeca:js-yaml:0.3.7:*:*:*:*:*:*:*", "cpe:2.3:a:nodeca:js-yaml:1.0.0:*:*:*:*:*:*:*", "cpe:2.3:a:nodeca:js-yaml:1.0.1:*:*:*:*:*:*:*", "cpe:2.3:a:nodeca:js-yaml:1.0.2:*:*:*:*:*:*:*", "cpe:2.3:a:nodeca:js-yaml:1.0.3:*:*:*:*:*:*:*", "cpe:2.3:a:nodeca:js-yaml:2.0.0:*:*:*:*:*:*:*", "cpe:2.3:a:nodeca:js-yaml:2.0.1:*:*:*:*:*:*:*", "cpe:2.3:a:nodeca:js-yaml:2.0.2:*:*:*:*:*:*:*", "cpe:2.3:a:nodeca:js-yaml:2.0.3:*:*:*:*:*:*:*"], "vendor": "nodeca", "product": "js-yaml", "versions": [{"status": "affected", "version": "0", "versionType": "custom", "lessThanOrEqual": "2.0.4"}, {"status": "affected", "version": "0.2.0"}, {"status": "affected", "version": "0.2.1"}, {"status": "affected", "version": "0.2.2"}, {"status": "affected", "version": "0.3.0"}, {"status": "affected", "version": "0.3.1"}, {"status": "affected", "version": "0.3.2"}, {"status": "affected", "version": "0.3.3"}, {"status": "affected", "version": "0.3.4"}, {"status": "affected", "version": "0.3.5"}, {"status": "affected", "version": "0.3.6"}, {"status": "affected", "version": "0.3.7"}, {"status": "affected", "version": "1.0.0"}, {"status": "affected", "version": "1.0.1"}, {"status": "affected", "version": "1.0.2"}, {"status": "affected", "version": "1.0.3"}, {"status": "affected", "version": "2.0.0"}, {"status": "affected", "version": "2.0.1"}, {"status": "affected", "version": "2.0.2"}, {"status": "affected", "version": "2.0.3"}], "defaultStatus": "unaffected"}], "references": [{"url": "https://nealpoole.com/blog/2013/06/code-execution-via-yaml-in-js-yaml-nodejs-module/", "tags": ["exploit", "vendor-advisory"]}, {"url": "http://portal.nodesecurity.io/advisories/js-yaml", "tags": ["vendor-advisory"]}], "descriptions": [{"lang": "en", "value": "The JS-YAML module before 2.0.5 for Node.js parses input without properly considering the unsafe !!js/function tag, which allows remote attackers to execute arbitrary code via a crafted string that triggers an eval operation."}, {"lang": "es", "value": "El módulo JS-YAML antes de v2.0.5 para Node.js analiza la entrada sin considerar adecuadamente etiqueta insegura !!js/function, lo que permite a atacantes remotos ejecutar código arbitrario a través de una cadena modificada que desencadena una operación eval."}], "problemTypes": [{"descriptions": [{"lang": "en", "cweId": "CWE-20", "description": "CWE-20"}]}], "providerMetadata": {"orgId": "00000000-0000-4000-A000-000000000003", "shortName": "nvd", "dateUpdated": "2013-06-28T14:55:02Z", "x_subShortName": "nvd"}}}, "cveMetadata": {"cveId": "CVE-2013-4660", "state": "PUBLISHED", "dateUpdated": "2025-12-02T13:29:14Z", "assignerOrgId": "8254265b-2729-46b6-b9e3-3dfca2d5bfca", "datePublished": "2013-06-28T14:55:02Z", "assignerShortName": "mitre"}, "dataVersion": "5.0"}