Back to CVE records
High 8.8Published Apr 24, 2026

CVE-2026-40897Math.js: Unsafe object property setter in mathjs

Updated under an hour ago ()

Does this affect you?

It affects josdejong mathjs and 6 other products. Add what you run to find out whether that includes you.

No exploitation reported and no EPSS estimate yet.

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.

CVSS
8.8 HIGH (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness (CWE)
CWE-915, CWE-917
Known exploited
Not in CISA's KEV catalog
EPSS (exploitation in the next 30 days)
Not loaded for this CVE
Assigned by
GitHub_M
NVD analysis
Modified
Record last updated
Jul 14, 2026
First seen by InfoSec Signals
Oct 9, 2026

Affected products

Affected products
josdejong mathjs
josdejong:mathjs (from the name)
from 13.1.1, < 15.2.0
CNA record
1
CISA ADP
10
CISA ADP
Versions not stated
CISA ADP
4
CISA ADP
2
CISA ADP
mathjs mathjs
mathjs:mathjs
from 13.1.1 before 15.2.0
NVD

References

References

The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.

Your cookie choices
We use essential cookies to run this site, and, only with your consent, an advertising cookie from Google to measure whether our ads lead to sign-ups and subscriptions. See our for details.