CVE-2026-41139
JSON

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 packageVersionsReported by
josdejong mathjs>= 13.1.0, < 15.2.0CVE List
grafana-infinity-datasource-npmNot specifiedCVE List
rhdh/rhdh-hub-rhel9Not specifiedCVE List
qt6-qtbaseNot specifiedCVE List
qt5-qtbaseNot specifiedCVE List
rhoai/odh-dashboard-rhel9Not specifiedCVE List
rhoai/odh-mod-arch-gen-ai-rhel9Not specifiedCVE List
rhoai/odh-mod-arch-maas-rhel9Not specifiedCVE List
rhoai/odh-mod-arch-model-registry-rhel9Not specifiedCVE List
openshift4/ose-monitoring-plugin-rhel9Not specifiedCVE List
ansible-automation-platform/automation-portalNot specifiedCVE List
mathjs (npm)from 13.1.0 before 15.2.0GitHub Advisory Database

All scores

GitHub_M8.8high CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
redhat-SADP8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
GitHub8.8high CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-94CWE-915

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

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

https://github.com/josdejong/mathjs/security/advisories/GHSA-5v89-rwgr-qj6gpatch, vendor-advisory, web
https://github.com/josdejong/mathjs/pull/3656issue-tracking, patch, web
https://github.com/josdejong/mathjs/commit/0aee2f61866e35ffa0aef915221cdf6b026ffdd4patch, web
https://github.com/josdejong/mathjs/commit/bcf0da46f0b8577ec03c9ecd7bff8b5c2543a611patch, web
https://github.com/josdejong/mathjs/releases/tag/v15.2.0release-notes, web
https://access.redhat.com/security/cve/CVE-2026-41139vdb-entry
https://bugzilla.redhat.com/show_bug.cgi?id=2467648issue-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-6286web
https://nvd.nist.gov/vuln/detail/CVE-2026-41139advisory
https://github.com/josdejong/mathjspackage

Sources

SourceRecordLicence
CVE ListCVE-2026-41139 changed 2026-07-15CVE Terms of Use
GitHub Advisory DatabaseGHSA-jvff-x2qm-6286 changed 2026-09-10CC-BY-4.0
NVDCVE-2026-41139 changed 2026-10-26Public domain