8.8high
Unsafe array index getter in mathjs
- Severity
- 8.8high CVSS:3.1 by redhat-SADP
- Exploit likelihood
- 0.58% (higher than 48% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-jvff-x2qm-6286GHSA-5v89-rwgr-qj6g
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| josdejong mathjs | >= 13.1.0, < 15.2.0 | CVE List |
| grafana-infinity-datasource-npm | Not specified | CVE List |
| rhdh/rhdh-hub-rhel9 | Not specified | CVE List |
| qt6-qtbase | Not specified | CVE List |
| qt5-qtbase | Not specified | CVE List |
| rhoai/odh-dashboard-rhel9 | Not specified | CVE List |
| rhoai/odh-mod-arch-gen-ai-rhel9 | Not specified | CVE List |
| rhoai/odh-mod-arch-maas-rhel9 | Not specified | CVE List |
| rhoai/odh-mod-arch-model-registry-rhel9 | Not specified | CVE List |
| openshift4/ose-monitoring-plugin-rhel9 | Not specified | CVE List |
| ansible-automation-platform/automation-portal | Not specified | CVE List |
| mathjs (npm) | from 13.1.0 before 15.2.0 | GitHub Advisory Database |
| mathjs mathjs | from 13.1.0 before 15.2.0 | NVD |
All scores
| GitHub_M | 8.8high CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| redhat-SADP | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 8.8high CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
Impact
This 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.
Patches
The issue was introduced in mathjs v13.1.0, and patched in mathjs v15.2.0.
Workarounds
There is no workaround without upgrading to v15.2.0.
References
You 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).
NVD (es)
Math.js es una extensa biblioteca matemática para JavaScript y Node.js. Desde la versión 13.1.0 hasta antes de la versión 15.2.0, se puede ejecutar JavaScript arbitrario a través del analizador de expresiones de mathjs. Este problema ha sido parcheado en la versión 15.2.0.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-41139 changed 2026-07-15 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-jvff-x2qm-6286 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-41139 changed 2026-10-26 | Public domain |