Live threats

All CVEs / Mathjs

CVE-2026-40897Mathjs

High 8.8

Priority
53
CVSS 3.1
8.8
EPSS
—
Auth required
Yes
Published
Apr 24, 2026
Updated
Oct 26, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-915, CWE-917
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Mathjs.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm mathjs ≥ 13.1.1 < 15.2.0 15.2.0 npm install mathjs@15.2.0

Per OSV / GitHub Advisories (GHSA-29qv-4j9f-fjw5). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
mathjsmathjs≥ 13.1.1 < 15.2.0

Official sources

References

Links published by the sources. Open them with care.