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


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

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-15989794
  • published12 Apr 2026
  • disclosed10 Apr 2026
  • creditCykuTW

Introduced: 10 Apr 2026

New CVE NOT AVAILABLE CWE-1321  (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 sending malicious expressions for evaluation.

CVSS Base Scores

version 4.0
version 3.1