CVE-2026-41139
mathjs: math.js: Arbitrary code execution via expression parser
Severity
ImportantRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · May 7, 2026
Updated · November 5, 2026
Description
A flaw was found in math.js, an extensive math library for JavaScript and Node.js. This vulnerability allows an attacker to execute arbitrary JavaScript code by exploiting the expression parser. This could lead to a complete compromise of the system where math.js is used.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 8.8CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CWE-94 · Improper Control of Generation of Code