Skip to content
OpenAdvisories
High · 8.8 Public exploit CVE-2026-40897 EUVD-2026-25571GHSA-29qv-4j9f-fjw5

Math.js: Unsafe object property setter in mathjs

Published Apr 24, 2026 · Updated Jul 15, 2026 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
josdejong mathjs >= 13.1.1, < 15.2.0 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 2 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
npm mathjs >= 13.1.1, < 15.2.0 15.2.0 GHSA-29qv-4j9f-fjw5

References