{"id":"CVE-2026-41139","aliases":["EUVD-2026-28310","GHSA-5v89-rwgr-qj6g","GHSA-jvff-x2qm-6286"],"status":"published","title":"Unsafe array index getter in mathjs","description":"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.","severity":{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-11","score":0.00577,"percentile":0.47989,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-915","CWE-94"],"published":"2026-04-10T22:10:49Z","modified":"2026-10-28T02:30:59Z","fixes":[{"ecosystem":"npm","package":"mathjs","fixed_in":["15.2.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"mathjs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"13.1.0"},{"fixed":"15.2.0"}]}]},{"source":"osv","ecosystem":"npm","package":"mathjs","ranges":[{"type":"SEMVER","events":[{"introduced":"13.1.0"},{"fixed":"15.2.0"}]}]}],"products":[{"vendor":"josdejong","product":"mathjs"},{"vendor":"mathjs","product":"mathjs"},{"vendor":"red hat","product":"cryostat 4"},{"vendor":"red hat","product":"red hat developer hub"},{"vendor":"red hat","product":"red hat enterprise linux 10"},{"vendor":"red hat","product":"red hat enterprise linux 8"},{"vendor":"red hat","product":"red hat enterprise linux 9"},{"vendor":"red hat","product":"red hat openshift ai (rhoai)"},{"vendor":"red hat","product":"red hat openshift container platform 4"},{"vendor":"red hat","product":"self-service automation portal 2"}],"references":[{"url":"https://github.com/josdejong/mathjs/security/advisories/GHSA-5v89-rwgr-qj6g","tags":["x_refsource_CONFIRM","Patch","Vendor Advisory","advisory","web"]},{"url":"https://github.com/josdejong/mathjs/pull/3656","tags":["x_refsource_MISC","Issue Tracking","Patch","fix","web"]},{"url":"https://github.com/josdejong/mathjs/commit/0aee2f61866e35ffa0aef915221cdf6b026ffdd4","tags":["x_refsource_MISC","Patch","fix","web"]},{"url":"https://github.com/josdejong/mathjs/commit/bcf0da46f0b8577ec03c9ecd7bff8b5c2543a611","tags":["x_refsource_MISC","Patch","fix","web"]},{"url":"https://github.com/josdejong/mathjs/releases/tag/v15.2.0","tags":["x_refsource_MISC","Release Notes","web"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-41139","tags":["vdb-entry","x_refsource_REDHAT","advisory"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2467648","tags":["issue-tracking","x_refsource_REDHAT","report"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-41139.json","tags":["x_sadp-csaf-vex","web"]},{"url":"https://github.com/josdejong/mathjs/security/advisories/GHSA-jvff-x2qm-6286","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41139","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-jvff-x2qm-6286"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/41xxx/CVE-2026-41139.json","tags":["advisory"]},{"url":"https://github.com/josdejong/mathjs","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2026-41139","title":"Unsafe array index getter in mathjs","description":"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.","status":"published","published":"2026-05-07T05:06:28.746Z","modified":"2026-07-15T00:59:58.779Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"cna"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"adp"}],"cwes":["CWE-915","CWE-94"],"updated_at":"2026-11-02T13:41:08.498858Z"}],"euvd":[{"id":"EUVD-2026-28310","description":"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.","status":"published","published":"2026-05-07T05:06:28Z","modified":"2026-07-15T00:59:58Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T18:19:56.47701Z"}],"ghsa":[{"id":"GHSA-jvff-x2qm-6286","title":"mathjs Allows Improperly Controlled Modification of Dynamically-Determined Object Attributes","description":"### Impact\nThis security vulnerability allowed executing arbitrary JavaScript via the expression parser of mathjs. You can be affected when you have an application where users can evaluate arbitrary expressions using the mathjs expression parser.\n\n### Patches\nThe issue was introduced in mathjs `v13.1.0`, and patched in mathjs `v15.2.0`.\n\n### Workarounds\nThere is no workaround without upgrading to `v15.2.0`.\n\n### References\nYou can find out more via the commit fixing this issue: https://github.com/josdejong/mathjs/commit/24d5ee7e25e85d49619b09122f055db4139bc057 (part of PR https://github.com/josdejong/mathjs/pull/3656).","status":"published","published":"2026-04-10T22:10:49Z","modified":"2026-05-08T19:55:45Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-915"],"updated_at":"2026-11-02T14:40:04.762828Z"}],"nvd":[{"id":"CVE-2026-41139","description":"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.","status":"published","published":"2026-05-07T06:16:04.273Z","modified":"2026-10-26T21:10:00.17Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"secondary"},{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"secondary"}],"cwes":["CWE-915","CWE-94"],"updated_at":"2026-11-02T14:12:17.842772Z"}],"osv":[{"id":"CVE-2026-41139","title":"Unsafe array index getter in mathjs","description":"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.","status":"published","published":"2026-05-07T05:06:28.746Z","modified":"2026-10-28T02:30:59.855538683Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-915"],"updated_at":"2026-11-02T15:45:03.424067Z"},{"id":"GHSA-jvff-x2qm-6286","title":"mathjs Allows Improperly Controlled Modification of Dynamically-Determined Object Attributes","description":"### Impact\nThis security vulnerability allowed executing arbitrary JavaScript via the expression parser of mathjs. You can be affected when you have an application where users can evaluate arbitrary expressions using the mathjs expression parser.\n\n### Patches\nThe issue was introduced in mathjs `v13.1.0`, and patched in mathjs `v15.2.0`.\n\n### Workarounds\nThere is no workaround without upgrading to `v15.2.0`.\n\n### References\nYou can find out more via the commit fixing this issue: https://github.com/josdejong/mathjs/commit/24d5ee7e25e85d49619b09122f055db4139bc057 (part of PR https://github.com/josdejong/mathjs/pull/3656).","status":"published","published":"2026-04-10T22:10:49Z","modified":"2026-09-10T03:50:44.603942782Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-915"],"updated_at":"2026-11-02T15:46:51.10002Z"}]}}
