Vulnerability · Published May 7, 2026 · Assigned by GitHub_M

CVE-2026-41139Unsafe array index getter in mathjs

High 8.8

In plain English

A high-severity code injection in mathjs from josdejong. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 48% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.8High
Exploit odds (30 days)0.6%top 52.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

Math.js is an extensive math library for JavaScript and Node.js. From version 13.1.0 to before version 15.2.0, arbitrary JavaScript can be executed via the expression parser of mathjs. This issue has been patched in version 15.2.0.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npmmathjs15.2.0GHSA-jvff-x2qm-6286

Affected products (as reported)

VendorProductVersions
josdejong mathjs >= 13.1.0, < 15.2.0

Weakness: CWE-915, CWE-94 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

References