CVE-2026-40897: josdejong mathjs · Mass Assignment
Affects josdejong mathjsSource CVE Database V5
Not known to be exploited · CVSS 8.8 High : upgrade to 15.2.0 soon.
Data as of 30 Oct 2026, 11:52 UTC
- EPSS
- 0.5% chance of exploitation in 30 days – higher than 45% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 15.2.0
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 24 Apr 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: evidence found.
Public exploit code: GitHub proofs of concept
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), GitHub proofs of concept, the Metasploit, Exploit-DB and nuclei-templates index as of 30 Oct 2026.
What to do
Upgrade josdejong mathjs to 15.2.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| josdejongmathjs | Affected
| Fixed in
|
npmmathjspkg:npm/mathjsOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade mathjs to version 15.2.0 or later to remediate this vulnerability. Patch status is confirmed by the vendor advisory. No alternative mitigations are indicated in the advisory.
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.
References
- github.com/josdejong/mathjs/security/advisories/GHSA-29qv-4j9f-fjw5 (opens in a new tab)
- github.com/josdejong/mathjs/pull/3656 (opens in a new tab)
- github.com/josdejong/mathjs/commit/513ab2a0e01004af91b31aada68fae8a821326ad (opens in a new tab)
- access.redhat.com/security/cve/CVE-2026-40897 (opens in a new tab)
- bugzilla.redhat.com/show_bug.cgi?id=2461612 (opens in a new tab)
- security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40897.json (opens in a new tab)