Vulnerability · Published May 7, 2026 · Assigned by GitHub_M
CVE-2026-41139Unsafe array index getter in mathjs
High 8.8
In plain English
A high-severity code injection in mathjs from josdejong. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 48% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)8.8High
Exploit odds (30 days)0.6%top 52.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | mathjs | 15.2.0 | GHSA-jvff-x2qm-6286 |
Affected products (as reported)
Weakness: CWE-915, CWE-94 · Vector: CVSS:3.1/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 x_refsource_CONFIRM
- https://github.com/josdejong/mathjs/pull/3656 x_refsource_MISC
- https://github.com/josdejong/mathjs/commit/0aee2f61866e35ffa0aef915221cdf6b026ffdd4 x_refsource_MISC
- https://github.com/josdejong/mathjs/commit/bcf0da46f0b8577ec03c9ecd7bff8b5c2543a611 x_refsource_MISC
- https://github.com/josdejong/mathjs/releases/tag/v15.2.0 x_refsource_MISC
- https://access.redhat.com/security/cve/CVE-2026-41139 vdb-entry, x_refsource_REDHAT
- RHBZ#2467648 issue-tracking, x_refsource_REDHAT
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-41139.json x_sadp-csaf-vex