Skip to main content
VulnerabilityPublished Updated

CVE-2026-40897: josdejong mathjs · Mass Assignment

Affects josdejong mathjsSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 8.8 High : upgrade to 15.2.0 soon.

Data as of 30 Oct 2026, 11:52 UTC

CVSS 3.1 base score
8.8High
How severe the flaw is on the 0–10 CVSS scale.
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:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 24 Apr 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: evidence found.

    Public exploit code: GitHub proofs of concept

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
josdejongmathjsAffected
  • >=13.1.1 <15.2.0
Fixed in
  • 15.2.0
npmmathjspkg:npm/mathjsOther threatsAffected
  • >=13.1.1 <15.2.0
Fixed in
  • 15.2.0

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

Community reviews

Loading reviews…