CVE-2026-40897Mathjs
High 8.8
Follow: this CVE · Mathjs · Mathjs We alert you by email or Slack (account required).
- Priority
- 53
- CVSS 3.1
- 8.8
- EPSS
- —
- Auth required
- Yes
- Published
- Apr 24, 2026
- Updated
- Oct 26, 2026
- Category
- Application · Cross-platform
- 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.
What to do
- Apply the vendor's security update for Mathjs.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| mathjs | mathjs | ≥ 13.1.1 < 15.2.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Issue Tracking
- github.com Vendor Advisory
- access.redhat.com
- bugzilla.redhat.com
- security.access.redhat.com