CVE-2026-40897HIGH 8.8EPSS p35.0%

CVE-2026-40897CVE-2026-40897

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.

Scoring

CVSS 3.18.8 (HIGH)
VectorCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS0.44% probability of exploitation · percentile 35.0% · 2026-06-19T12:03:05Z
Published2026-04-24
Last modified2026-04-27

Underlying weaknesses· 1

CWE-915

References

  1. https://github.com/josdejong/mathjs/commit/513ab2a0e01004af91b31aada68fae8a821326ad
  2. https://github.com/josdejong/mathjs/pull/3656
  3. https://github.com/josdejong/mathjs/security/advisories/GHSA-29qv-4j9f-fjw5

1

TypeTargetConfidenceTier
WeaknessImproperly Controlled Modification of Dynamically-Determined Object Attributescwe-9150%live

Related by meaning· 6

Nearest entities by semantic similarity across the cs-graph corpus.

CVE
CVE-2026-41139
CVE
CVE-2026-41507
CVE
CVE-2025-12735
CVE
CVE-2026-44643
CVE
CVE-2026-44717
CVE
CVE-2026-1615
Sourced from NVD + FIRST.org EPSS. Curated for EU compliance use cases by Adam Lundqvist, Founder at SQUR.