Description
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.
Recommendation
Update the mathjs package to the latest compatible version. Followings are version details:
- Affected version(s): >= 13.1.1, < 15.2.0
- Patched version(s): 15.2.0
References
Could your website be exposed too?
SmartScanner can check your website for Unsafe object property setter in mathjs and gives you actionable findings to investigate.
Start a free scanRelated Issues
- @phun-ky/defaults-deep Has a Prototype Pollution issue via Unsafe Recursive Property Merging - CVE-2026-54737
- Valibot: record() issue paths can make flatten() throw for inherited Object property names - CVE-2026-59952
- mathjs Allows Improperly Controlled Modification of Dynamically-Determined Object Attributes - CVE-2026-41139
- Maker.js has Unsafe Property Copying in makerjs.extendObject - CVE-2026-24888


