VULNERABILITY INTELLIGENCE

CVE-2026-40897

CVSS score8.8 HIGH
EPSS probability0.55%
CISA KEVNot currently listed
Published2026-04-24
Last modified2026-10-26
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

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.

Weakness classification

  • security-advisories@github.com: CWE-915
  • 0b0ca135-0b70-47e7-9f44-1890c2a1c46c: CWE-917

Primary references