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


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.08% (25th 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-16438968
  • published7 May 2026
  • disclosed7 May 2026
  • creditCykuTW

Introduced: 7 May 2026

NewCVE-2026-41139  (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 via the expression parser. An attacker can execute arbitrary JavaScript code by supplying crafted input to the parser.

CVSS Base Scores

version 4.0
version 3.1