CVE-2026-41139
published high CVSS 3.0 · 8.8Unsafe array index getter in mathjs
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| josdejong | — | mathjs>= 13.1.0, < 15.2.0 | Affected | Not stated | GitHub_M |
| Red Hat | — | grafana-infinity-datasource-npmCryostat 4 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | rhdh/rhdh-hub-rhel9Red Hat Developer Hub | Unaffected | Not required | redhat-SADP |
| Red Hat Enterprise Linux | 10 | qt6-qtbase | Unaffected | Not required | redhat-SADP |
| Red Hat Enterprise Linux | 8, 9 | qt5-qtbase | Unaffected | Not required | redhat-SADP |
| Red Hat | — | rhoai/odh-dashboard-rhel9Red Hat OpenShift AI (RHOAI) | Unaffected | Not required | redhat-SADP |
| Red Hat | — | rhoai/odh-mod-arch-gen-ai-rhel9Red Hat OpenShift AI (RHOAI) | Unaffected | Not required | redhat-SADP |
| Red Hat | — | rhoai/odh-mod-arch-maas-rhel9Red Hat OpenShift AI (RHOAI) | Unaffected | Not required | redhat-SADP |
Show 3 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Red Hat | — | rhoai/odh-mod-arch-model-registry-rhel9Red Hat OpenShift AI (RHOAI) | Unaffected | Not required | redhat-SADP |
| Red Hat | — | openshift4/ose-monitoring-plugin-rhel9Red Hat OpenShift Container Platform 4 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | ansible-automation-platform/automation-portalSelf-service automation portal 2 | Unaffected | Not required | redhat-SADP |
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.
A flaw was found in math.js, an extensive math library for JavaScript and Node.js. This vulnerability allows an attacker to execute arbitrary JavaScript code by exploiting the expression parser. This could lead to a complete compromise of the system where math.js is used.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.0
- Base score
- 8.8 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 8.8 | high | redhat-SADP · adp | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| josdejong | mathjs | >= 13.1.0, < 15.2.0 (affected) | GitHub_M · cna |
| Red Hat | Cryostat 4 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Developer Hub | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Enterprise Linux 10 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Enterprise Linux 8 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Enterprise Linux 9 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat OpenShift AI (RHOAI) | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat OpenShift AI (RHOAI) | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat OpenShift AI (RHOAI) | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat OpenShift AI (RHOAI) | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat OpenShift Container Platform 4 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Self-service automation portal 2 | Default: unaffected | redhat-SADP · adp |
Weaknesses
2- CWE-915 CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes
- CWE-94 Improper Control of Generation of Code ('Code Injection')
References
8- https://access.redhat.com/security/cve/CVE-2026-41139
- RHBZ#2467648 https://bugzilla.redhat.com/show_bug.cgi?id=2467648
- https://github.com/josdejong/mathjs/commit/0aee2f61866e35ffa0aef915221cdf6b026ffdd4
- https://github.com/josdejong/mathjs/commit/bcf0da46f0b8577ec03c9ecd7bff8b5c2543a611
- https://github.com/josdejong/mathjs/pull/3656
- https://github.com/josdejong/mathjs/releases/tag/v15.2.0
- https://github.com/josdejong/mathjs/security/advisories/GHSA-5v89-rwgr-qj6g
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-41139.json
Provider assertions
3GitHub_M · cna
Unsafe array index getter in mathjs
redhat-SADP · adp
mathjs: math.js: Arbitrary code execution via expression parser
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- db124f3af5bfa2a7ed337f62aa31e054327ada19653ed1ecb27d699650d9f054
- Ingested
- 23 Sep 2026, 09:13:40 UTC
- Source record
- Official CVE record