{"id":"CVE-2026-41139","summary":"Unsafe array index getter in mathjs","details":"Math.js is an extensive math library for JavaScript and Node.js. From version 13.1.0 to before version 15.2.0, arbitrary JavaScript can be executed via the expression parser of mathjs. This issue has been patched in version 15.2.0.","aliases":["GHSA-5v89-rwgr-qj6g","GHSA-jvff-x2qm-6286"],"modified":"2026-07-16T03:30:55.621054717Z","published":"2026-05-07T05:06:28.746Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-915"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/41xxx/CVE-2026-41139.json"},"references":[{"type":"WEB","url":"https://github.com/josdejong/mathjs/releases/tag/v15.2.0"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-41139.json"},{"type":"ADVISORY","url":"https://access.redhat.com/security/cve/CVE-2026-41139"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/41xxx/CVE-2026-41139.json"},{"type":"ADVISORY","url":"https://github.com/josdejong/mathjs/security/advisories/GHSA-5v89-rwgr-qj6g"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41139"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2467648"},{"type":"FIX","url":"https://github.com/josdejong/mathjs/commit/0aee2f61866e35ffa0aef915221cdf6b026ffdd4"},{"type":"FIX","url":"https://github.com/josdejong/mathjs/commit/bcf0da46f0b8577ec03c9ecd7bff8b5c2543a611"},{"type":"FIX","url":"https://github.com/josdejong/mathjs/pull/3656"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/josdejong/mathjs","events":[{"introduced":"00a985dbfe2a862b8bf7da0c2261526983531a0d"},{"fixed":"fee4561840043a7473962367bbae6f15bbb3cebb"},{"fixed":"0aee2f61866e35ffa0aef915221cdf6b026ffdd4"},{"fixed":"bcf0da46f0b8577ec03c9ecd7bff8b5c2543a611"}],"database_specific":{"extracted_events":[{"introduced":"13.1.0"},{"fixed":"15.2.0"}],"source":["CPE_RANGE","REFERENCES"],"cpe":"cpe:2.3:a:mathjs:mathjs:*:*:*:*:*:node.js:*:*"}}],"versions":["v15.1.1","v15.1.0","v15.0.0","v14.4.0","v14.3.1","v14.3.0","v14.2.1","v14.2.0","v14.1.0","v14.0.1","v14.0.0","v13.2.0","v13.1.1","v13.1.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-41139.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}