Arbitrary JS Exec via Math.js Expr Parser v13.1.0-<15.2.0
CVE-2026-41139 Published on May 7, 2026
Unsafe array index getter in mathjs
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 mathjs. This issue has been patched in version 15.2.0.
Vulnerability Analysis
CVE-2026-41139 can be exploited with network access, and requires small amount of user privileges. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to be very high.
Weakness Types
What is a Mass Assignment Vulnerability?
The software receives input from an upstream component that specifies multiple attributes, properties, or fields that are to be initialized or updated in an object, but it does not properly control which attributes can be modified.
CVE-2026-41139 has been classified to as a Mass Assignment vulnerability or weakness.
What is a Code Injection Vulnerability?
The software constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
CVE-2026-41139 has been classified to as a Code Injection vulnerability or weakness.
Products Associated with CVE-2026-41139
Want to know whenever a new CVE is published for Red Hat products? stack.watch will email you.
Affected Versions
josdejong mathjs:- Version >= 13.1.0, < 15.2.0 is affected.
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.