Mathjs is a lightweight JavaScript mathematics library whose narrow product scope belies its presence across a wide range of web and Node.js applications. The durable signal in its vulnerability footprint centers on prototype-pollution, code-injection, and dynamic object-modification weaknesses that arise from the library's permissive handling of user-supplied expressions and object attributes within an interpreted runtime. Current exploitation activity and exposure counts are shown alongside this summary.
The number and severity of CVEs published that impact products developed by Mathjs over time
Signals from CVEs in this vendor scope (5 CVEs).
5 CVEs · Highest risk first
| CVE | Published | CVSS | Risk | KEV | Exploit |
|---|---|---|---|---|---|
CVE-2026-41139HIGH Math.js is an extensive math library for JavaScript and Node.js. From version 13.1.0 to before version 15.2.0, arbitrary JavaScript can be executed via the expression parser of mat | May 7, 2026 | 8.8 | 37 | NO | NO |
CVE-2026-40897HIGH 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 m | Apr 24, 2026 | 8.8 | 33 | NO | NO |
CVE-2017-1001002CRITICAL math.js before 3.17.0 had an arbitrary code execution in the JavaScript engine. Creating a typed function with JavaScript code in the name could result arbitrary execution. | Nov 27, 2017 | 9.8 | 32 | NO | NO |
CVE-2017-1001003CRITICAL math.js before 3.17.0 had an issue where private properties such as a constructor could be replaced by using unicode characters when creating an object. | Nov 27, 2017 | 9.8 | 29 | NO | NO |
CVE-2020-7743HIGH The package mathjs before 7.5.1 are vulnerable to Prototype Pollution via the deepExtend function that runs upon configuration updates. | Oct 13, 2020 | 7.3 | 20 | NO | NO |
Signals from CVEs in this vendor scope (5 CVEs).
An overview of all social media posts that mention a CVE ID that affects a product developed by Mathjs.
Media articles that mention a CVE ID that affects a product developed by Mathjs — matched by CVE ID, not by vendor name.