# CVE-2026-40897

> Vulnerability · severity: **HIGH** (CVSS 8.8).

## 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.

## Key facts

- **CVE ID:** CVE-2026-40897
- **Published:** 2026-04-24
- **CVSS severity:** HIGH
- **CVSS base score:** 8.8
- **CWE codes:** CWE-915

## Affected products

- `mathjs:mathjs`

## Primary sources

- NIST NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-40897

## Citation

> AI Analytics. CVE-2026-40897. Retrieved 2026-07-19 from https://api.ai-analytics.org/cve/CVE-2026-40897. Derived from NIST NVD. Licensed CC0.

---

*[Dataset catalog](https://api.ai-analytics.org/datasets/) · [AI Analytics](https://api.ai-analytics.org/) · CC0 1.0*