Improperly Controlled Modification of Dynamically-Determined Object Attributes Affecting mathjs package, versions >=13.1.1 <15.2.0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.05% (16th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Improperly Controlled Modification of Dynamically-Determined Object Attributes vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-MATHJS-16097976
  • published17 Apr 2026
  • disclosed16 Apr 2026
  • creditUnknown

Introduced: 16 Apr 2026

NewCVE-2026-40897  (opens in a new tab)
CWE-915  (opens in a new tab)

How to fix?

Upgrade mathjs to version 15.2.0 or higher.

Overview

mathjs is a math library for JavaScript and Node.js. It features a flexible expression parser with support for symbolic computation, comes with a large set of built-in functions and constants, and offers an integrated solution to work with diff.

Affected versions of this package are vulnerable to Improperly Controlled Modification of Dynamically-Determined Object Attributes in the getSafeProperty() of the expression parser. An attacker can execute arbitrary JavaScript code by submitting crafted expressions for evaluation.

CVSS Base Scores

version 4.0
version 3.1