# CVE-2026-41139: Unsafe array index getter in mathjs

- Severity: High 8.8 (CVSS:3.1, scored by redhat-SADP) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.58%, higher than 48% of CVEs (2026-12-01)
- Published: 2026-04-10T22:10:49.000Z
- Modified: 2026-10-26T21:10:00.170Z
- Also known as: GHSA-jvff-x2qm-6286, GHSA-5v89-rwgr-qj6g
- Weaknesses: CWE-94, CWE-915
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- josdejong mathjs: >= 13.1.0, < 15.2.0
- grafana-infinity-datasource-npm: no versions given
- rhdh/rhdh-hub-rhel9: no versions given
- qt6-qtbase: no versions given
- qt5-qtbase: no versions given
- rhoai/odh-dashboard-rhel9: no versions given
- rhoai/odh-mod-arch-gen-ai-rhel9: no versions given
- rhoai/odh-mod-arch-maas-rhel9: no versions given
- rhoai/odh-mod-arch-model-registry-rhel9: no versions given
- openshift4/ose-monitoring-plugin-rhel9: no versions given
- ansible-automation-platform/automation-portal: no versions given
- mathjs (npm): from 13.1.0 before 15.2.0
- mathjs mathjs: from 13.1.0 before 15.2.0

## Every score

- GitHub_M: CVSS:3.0 8.8 High `CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- redhat-SADP: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.0 8.8 High `CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/josdejong/mathjs/security/advisories/GHSA-5v89-rwgr-qj6g> (patch, vendor-advisory, web)
- <https://github.com/josdejong/mathjs/pull/3656> (issue-tracking, patch, web)
- <https://github.com/josdejong/mathjs/commit/0aee2f61866e35ffa0aef915221cdf6b026ffdd4> (patch, web)
- <https://github.com/josdejong/mathjs/commit/bcf0da46f0b8577ec03c9ecd7bff8b5c2543a611> (patch, web)
- <https://github.com/josdejong/mathjs/releases/tag/v15.2.0> (release-notes, web)
- <https://access.redhat.com/security/cve/CVE-2026-41139> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2467648> (issue-tracking)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-41139.json>
- <https://github.com/josdejong/mathjs/security/advisories/GHSA-jvff-x2qm-6286> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-41139> (advisory)
- <https://github.com/josdejong/mathjs> (package)

## Sources

- CVE List: [CVE-2026-41139](https://www.cve.org/CVERecord?id=CVE-2026-41139), CVE Terms of Use, modified 2026-07-15
- GitHub Advisory Database: [GHSA-jvff-x2qm-6286](https://github.com/advisories/GHSA-jvff-x2qm-6286), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-41139](https://nvd.nist.gov/vuln/detail/CVE-2026-41139), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-41139 · Whole record: https://cve.day/CVE-2026-41139.json · Rebuilt by cve.day 2026-11-25T22:59:20.861Z
