mathjs Allows Improperly Controlled Modification of Dynamically-Determined Object Attributes
Description
Published to the GitHub Advisory Database
Apr 10, 2026
Reviewed
Apr 10, 2026
Last updated
Apr 23, 2026
Impact
This security 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.
Patches
The issue was introduced in mathjs
v13.1.0, and patched in mathjsv15.2.0.Workarounds
There is no workaround without upgrading to
v15.2.0.References
You can find out more via the commit fixing this issue: josdejong/mathjs@24d5ee7 (part of PR josdejong/mathjs#3656).
References