CVE-2026-41139 json
Unsafe array index getter in mathjs
published 2026-04-10 6 mo ago modified 2026-10-26 13 d ago also EUVD-2026-28310 , GHSA-5v89-rwgr-qj6g , GHSA-jvff-x2qm-6286
- cvss
- 8.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 47%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm mathjs 15.2.0
- mathjs math.js 15.2.0
- mathjs mathjs 15.2.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-41139 updated cvss 8.8
mathjs: math.js: Arbitrary code execution via expression parser
-
Red Hat Cryostat 4 grafana-infinity-datasource-npm Red Hat Developer Hub 1 rhdh/rhdh-hub-rhel9 Red Hat Enterprise Linux 8 qt5-qtbase, qt5-qtbase-gui, qt5-qtbase-odbc, qt5-qtbase-mysql, qt5-qtbase-common, qt5-qtbase-examples, +1 more Red Hat Enterprise Linux 9 qt5-qtbase, qt5-qtbase-gui, qt5-qtbase-odbc, qt5-qtbase-mysql, qt5-qtbase-common, qt5-qtbase-examples, +1 more Red Hat Enterprise Linux 10 qt6-qtbase Red Hat OpenShift AI (RHOAI) rhoai/odh-dashboard-rhel9, rhoai/odh-mod-arch-maas-rhel9, rhoai/odh-mod-arch-gen-ai-rhel9, rhoai/odh-mod-arch-model-registry-rhel9not affected: vulnerable code not present
+2 more productsfewer
Red Hat OpenShift Container Platform 4 openshift4/ose-monitoring-plugin-rhel9 Red Hat Self-service automation portal 2 ansible-automation-platform/automation-portal
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 6 mo ago
Exploit prediction
0.58% chance of exploitation in the next 30 days, higher than 47% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.0 | 8.8 | CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| CISA ADP | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.0 | 8.8 | CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| CNA | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | mathjs | >=13.1.0, <15.2.0 |
15.2.0 |
Affected products
- josdejong mathjs
- Red Hat Cryostat 4
- Red Hat Red Hat Developer Hub
- Red Hat Red Hat Enterprise Linux 10
- Red Hat Red Hat Enterprise Linux 8
- Red Hat Red Hat Enterprise Linux 9
- Red Hat Red Hat OpenShift AI (RHOAI)
- Red Hat Red Hat OpenShift Container Platform 4
- Red Hat Self-service automation portal 2
Classification
References
-
github.com
/josdejong/mathjs/pull/3656
web, issue-tracking, patch
-
github.com
/josdejong/mathjs/commit/0aee2f61866e35ffa0aef915221cdf6b026ffdd4
web, patch
-
github.com
/josdejong/mathjs/commit/bcf0da46f0b8577ec03c9ecd7bff8b5c2543a611
web, patch
-
github.com
/josdejong/mathjs/security/advisories/GHSA-5v89-rwgr-qj6g
web, patch, vendor-advisory
-
github.com
/josdejong/mathjs/releases/tag/v15.2.0
web, release-notes
-
access.redhat.com
/security/cve/CVE-2026-41139
vdb-entry
-
bugzilla.redhat.com
/show_bug.cgi?id=2467648
issue-tracking
- security.access.redhat.com /data/csaf/v2/vex/2026/cve-2026-41139.json
-
github.com
/josdejong/mathjs/security/advisories/GHSA-jvff-x2qm-6286
web
-
nvd.nist.gov
/vuln/detail/CVE-2026-41139
advisory
-
github.com
/josdejong/mathjs
package
Sources
- CVE List CVE-2026-41139
- GitHub Advisory GHSA-jvff-x2qm-6286
- NVD CVE-2026-41139
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.