CVE-2026-40897
Last modified
CVE-2026-40897 is a high-severity vulnerability rated 8.8/10 on the CVSS scale. 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. EPSS estimates a 0.55% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Mathjs | Mathjs | >= 13.1.1, < 15.2.0 |
References
- https://github.com/josdejong/mathjs/pull/3656Issue Tracking
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2026-40897?
How severe is CVE-2026-40897?
How do I fix CVE-2026-40897?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-40891OpenTelemetry dotnet is a dotnet telemetry framework. From 1…5.3
- CVE-2026-40892PJSIP is a free and open source multimedia communication lib…9.8
- CVE-2026-40893Gotenberg is a Docker-powered stateless API for PDF files. P…8.2
- CVE-2026-40894OpenTelemetry dotnet is a dotnet telemetry framework. In Ope…5.3
- CVE-2026-40895follow-redirects is an open source, drop-in replacement for …7.5
- CVE-2026-40896OpenProject is open-source, web-based project management sof…7.1
- CVE-2026-40898quic-go is an implementation of the QUIC protocol in Go. Pri…7.5
- CVE-2026-40899DataEase is an open-source data visualization and analytics …6.5
- CVE-2026-4090The Inquiry Cart plugin for WordPress is vulnerable to Cross…6.1
- CVE-2026-40900DataEase is an open-source data visualization and analytics …8.8
- CVE-2026-40901DataEase is an open-source data visualization and analytics …8.8
- CVE-2026-40902PhpSpreadsheet is a pure PHP library for reading and writing…7.5
Are you affected by CVE-2026-40897?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
