CVE-2026-40897 PUBLISHED

Math.js: Unsafe object property setter in mathjs

Assigner: GitHub_M
Reserved: 15.04.2026 Published: 24.04.2026 Updated: 24.04.2026

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.

Metrics

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

Product Status

Vendor josdejong
Product mathjs
Versions
  • Version >= 13.1.1, < 15.2.0 is affected

References

Problem Types

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