Improperly Controlled Modification of Dynamically-Determined Object Attributes in Mathjs - CVE-2026-40897

 

Improperly Controlled Modification of Dynamically-Determined Object Attributes in Mathjs - CVE-2026-40897

Published: April 20, 2026


Vulnerability identifier: #VU126582
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-40897
CWE-ID: CWE-915
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote user to execute arbitrary code.

The vulnerability exists due to improperly controlled modification of dynamically-determined object attributes in the mathjs expression parser when evaluating user-supplied expressions. A remote user can submit a specially crafted expression to execute arbitrary code.

The issue affects applications that allow users to evaluate arbitrary expressions using the mathjs expression parser.


Affected software

Mathjs

How to mitigate CVE-2026-40897

Install security update from vendor's website.

Mathjs - update to 15.2.0

External References

Related Security Bulletins