Skip to content
CORVASEC — Knowledge Defends
Vulnerability Explorer›CVE-2026-40897
VULNERABILITY

CVE-2026-40897

Common Vulnerabilities and Exposures record

HIGH

Summary

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.

Risk

CVSS
8.8
Severity
HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Timeline

Published
Apr 24, 2026 17:16
Modified
Oct 26, 2026 21:10
Last observed
Oct 26, 2026 19:01

CWE

CWE-915CWE-917

Affected product identifiers

cpe:2.3:a:mathjs:mathjs:*:*:*:*:*:node.js:*:*

References