8.8High

CVE-2026-40897Math.js: Unsafe object property setter in mathjs

josdejong mathjs; Red Hat Red Hat Developer Hub; Red Hat Red Hat Enterprise Linux 10; Red Hat Red Hat Enterprise Linux 8 Published: (6 months ago)

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.

Weakness (CWE): CWE-915CWE-917

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

References and patches

CPE matches (NVD) (1)

  • cpe:2.3:a:mathjs:mathjs:*:*:*:*:*:node.js:*:* ≥ 13.1.1 < 15.2.0