Home

Description

Math.js is an extensive math library for JavaScript and Node.js. From 13.1.1 to before 15.2.0, a 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. This vulnerability is fixed in 15.2.0.

PUBLISHED Reserved 2026-04-15 | Published 2026-04-24 | Updated 2026-04-24 | Assigner GitHub_M




HIGH: 8.8CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Problem types

CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes

Product status

>= 13.1.1, < 15.2.0
affected

References

github.com/...mathjs/security/advisories/GHSA-29qv-4j9f-fjw5

github.com/josdejong/mathjs/pull/3656

github.com/...ommit/513ab2a0e01004af91b31aada68fae8a821326ad

cve.org (CVE-2026-40897)

nvd.nist.gov (CVE-2026-40897)

Download JSON