{"id":"CVE-2017-1001002","published":"2017-11-27T14:00:00Z","modified":"2024-09-16T16:59:06Z","title":"math.js before 3.17.0 had an arbitrary code execution in the JavaScript engine","vendor":"math.js","product":"math.js","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.02357,"percentile":0.84157,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://github.com/josdejong/mathjs/blob/master/HISTORY.md#2017-11-18-version-3170","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/josdejong/mathjs/commit/8d2d48d81b3c233fb64eb2ec1d7a9e1cf6a55a90","tags":["x_refsource_CONFIRM"]}],"priority":{"score":16.8,"factors":[{"name":"EPSS percentile","points":16.83}]},"vendorSlug":"math-js","affectedVersions":[{"vendor":"math.js","product":"math.js","versions":["3.17.0"]}],"affected":[{"ecosystem":"npm","package":"mathjs","vulnerableRanges":["<3.17.0"],"patched":["3.17.0"],"from":["GHSA-vx5c-87qx-cv6c"],"provenance":"source"}],"summary":{"text":"The flaw is in the JavaScript engine of math.js, a JavaScript math library, in versions before 3.17.0. Creating a typed function whose name contains JavaScript code can result in arbitrary code execution.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:33:10Z"},"euvd":{"id":"EUVD-2017-0366","exploited":false,"provenance":"source"}}