{"api_version":"1","generated_at":"2026-05-07T15:05:57+00:00","cve":"CVE-2017-1001002","urls":{"html":"https://cve.report/CVE-2017-1001002","api":"https://cve.report/api/cve/CVE-2017-1001002.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2017-1001002","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2017-1001002"},"summary":{"title":"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.","state":"PUBLIC","assigner":"josh@bress.net","published_at":"2017-11-27 14:29:00","updated_at":"2023-11-07 02:37:00"},"problem_types":["CWE-94"],"metrics":[],"references":[{"url":"https://github.com/josdejong/mathjs/blob/master/HISTORY.md#2017-11-18-version-3170","name":"https://github.com/josdejong/mathjs/blob/master/HISTORY.md#2017-11-18-version-3170","refsource":"CONFIRM","tags":["Third Party Advisory"],"title":"mathjs/HISTORY.md at master · josdejong/mathjs · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"0"},{"url":"https://github.com/josdejong/mathjs/commit/8d2d48d81b3c233fb64eb2ec1d7a9e1cf6a55a90","name":"https://github.com/josdejong/mathjs/commit/8d2d48d81b3c233fb64eb2ec1d7a9e1cf6a55a90","refsource":"CONFIRM","tags":["Patch","Third Party Advisory"],"title":"Fixed a security issue in `typed-function` allowing arbitrary code ex… · josdejong/mathjs@8d2d48d · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2017-1001002","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2017-1001002","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2017","cve_id":"1001002","vulnerable":"1","versionEndIncluding":"3.17.0","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"mathjs","cpe5":"math.js","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2017-1001002","qid":"982323","title":"Nodejs (npm) Security Update for mathjs (GHSA-vx5c-87qx-cv6c)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"josh@bress.net","ID":"CVE-2017-1001002","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"math.js","version":{"version_data":[{"version_value":"3.17.0"}]}}]},"vendor_name":"math.js"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-94: Improper Control of Generation of Code ('Code Injection')"}]}]},"references":{"reference_data":[{"name":"https://github.com/josdejong/mathjs/blob/master/HISTORY.md#2017-11-18-version-3170","refsource":"CONFIRM","url":"https://github.com/josdejong/mathjs/blob/master/HISTORY.md#2017-11-18-version-3170"},{"name":"https://github.com/josdejong/mathjs/commit/8d2d48d81b3c233fb64eb2ec1d7a9e1cf6a55a90","refsource":"CONFIRM","url":"https://github.com/josdejong/mathjs/commit/8d2d48d81b3c233fb64eb2ec1d7a9e1cf6a55a90"}]}},"nvd":{"publishedDate":"2017-11-27 14:29:00","lastModifiedDate":"2023-11-07 02:37:00","problem_types":["CWE-94"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.0","vectorString":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL"},"exploitabilityScore":3.9,"impactScore":5.9},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:P/I:P/A:P","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL","baseScore":7.5},"severity":"HIGH","exploitabilityScore":10,"impactScore":6.4,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:mathjs:math.js:*:*:*:*:*:*:*:*","versionEndIncluding":"3.17.0","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2017","CveId":"1001002","Ordinal":"115299","Title":"CVE-2017-1001002","CVE":"CVE-2017-1001002","Year":"2017"},"notes":[{"CveYear":"2017","CveId":"1001002","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2017","CveId":"1001002","Ordinal":"2","NoteData":"2017-11-27","Type":"Other","Title":"Published"}]}}}