CVE-2026-40897
JSON

8.8high

Math.js: Unsafe object property setter in mathjs

Severity
8.8high CVSS:3.1 by GitHub_M
Exploit likelihood
0.60% (higher than 50% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-29qv-4j9f-fjw5

Description

Math.js is an extensive math library for JavaScript and Node.js. From 13.1.1 to before 15.2.0, a 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. This vulnerability is fixed in 15.2.0.

Affected

Product or packageVersionsReported by
josdejong mathjs>= 13.1.1, < 15.2.0CVE 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.1 before 15.2.0GitHub Advisory Database
mathjs mathjsfrom 13.1.1 before 15.2.0NVD

All scores

GitHub_M8.8high CVSS:3.1CVSS:3.1/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.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-915CWE-917

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 13.1.1 to before 15.2.0, a 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. This vulnerability is fixed in 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.1, 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/513ab2a0e01004af91b31aada68fae8a821326ad (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 13.1.1 hasta antes de la 15.2.0, una vulnerabilidad permitía ejecutar JavaScript arbitrario a través del analizador de expresiones de mathjs. Puede verse afectado si tiene una aplicación donde los usuarios pueden evaluar expresiones arbitrarias utilizando el analizador de expresiones de mathjs. Esta vulnerabilidad está corregida en la 15.2.0.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-40897 changed 2026-07-15CVE Terms of Use
GitHub Advisory DatabaseGHSA-29qv-4j9f-fjw5 changed 2026-09-10CC-BY-4.0
NVDCVE-2026-40897 changed 2026-10-26Public domain