{"id":"CVE-2017-1001002","aliases":["EUVD-2017-0366","GHSA-vx5c-87qx-cv6c"],"status":"published","title":"Arbitrary Code Execution in mathjs","description":"math.js before 3.17.0 had an arbitrary code execution in the JavaScript engine. Creating a typed function with JavaScript code in the name could result arbitrary execution.","severity":{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.02357,"percentile":0.83863,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-94"],"published":"2017-11-27T14:00:00Z","modified":"2026-10-20T10:48:01Z","fixes":[{"ecosystem":"npm","package":"mathjs","fixed_in":["3.17.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"mathjs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.17.0"}]}]},{"source":"osv","ecosystem":"npm","package":"mathjs","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.17.0"}]}]}],"products":[{"vendor":"math.js","product":"math.js"},{"vendor":"mathjs","product":"math.js"}],"references":[{"url":"https://github.com/josdejong/mathjs/blob/master/HISTORY.md#2017-11-18-version-3170","tags":["x_refsource_CONFIRM","x_transferred","web"]},{"url":"https://github.com/josdejong/mathjs/commit/8d2d48d81b3c233fb64eb2ec1d7a9e1cf6a55a90","tags":["x_refsource_CONFIRM","x_transferred","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2017-1001002","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-vx5c-87qx-cv6c","tags":["advisory"]},{"url":"https://www.npmjs.com/advisories/552","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2017-1001002","description":"math.js before 3.17.0 had an arbitrary code execution in the JavaScript engine. Creating a typed function with JavaScript code in the name could result arbitrary execution.","status":"published","published":"2017-11-27T14:00:00Z","modified":"2024-09-16T16:59:06.22Z","cwes":["CWE-94"],"updated_at":"2026-11-02T14:33:12.267141Z"}],"euvd":[{"id":"EUVD-2017-0366","description":"math.js before 3.17.0 had an arbitrary code execution in the JavaScript engine. Creating a typed function with JavaScript code in the name could result arbitrary execution.","status":"published","published":"2017-11-27T14:00:00Z","modified":"2024-09-16T16:59:06Z","updated_at":"2026-11-03T00:55:46.200652Z"}],"ghsa":[{"id":"GHSA-vx5c-87qx-cv6c","title":"Arbitrary Code Execution in mathjs","description":"math.js before 3.17.0 had an arbitrary code execution in the JavaScript engine. Creating a typed function with JavaScript code in the name could result arbitrary execution.\n\n\n## Recommendation\n\nUpdate to version 3.17.0 or later.","status":"published","published":"2017-12-18T22:27:45Z","modified":"2023-01-09T05:03:39Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:36:05.705235Z"}],"nvd":[{"id":"CVE-2017-1001002","description":"math.js before 3.17.0 had an arbitrary code execution in the JavaScript engine. Creating a typed function with JavaScript code in the name could result arbitrary execution.","status":"published","published":"2017-11-27T14:29:00.24Z","modified":"2026-06-17T00:59:18.84Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:04:09.7374Z"}],"osv":[{"id":"CVE-2017-1001002","description":"math.js before 3.17.0 had an arbitrary code execution in the JavaScript engine. Creating a typed function with JavaScript code in the name could result arbitrary execution.","status":"published","published":"2017-11-27T14:29:00.24Z","modified":"2026-10-20T10:48:01.103225376Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:44:03.851821Z"},{"id":"GHSA-vx5c-87qx-cv6c","title":"Arbitrary Code Execution in mathjs","description":"math.js before 3.17.0 had an arbitrary code execution in the JavaScript engine. Creating a typed function with JavaScript code in the name could result arbitrary execution.\n\n\n## Recommendation\n\nUpdate to version 3.17.0 or later.","status":"published","published":"2017-12-18T22:27:45Z","modified":"2023-11-08T03:58:48.008756Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T15:46:57.694388Z"}]}}
