Live threats

All CVEs / Mathjs

CVE-2017-1001002Mathjs Math.js

Critical 9.8 No auth needed

Priority
74
CVSS 3.0
9.8
EPSS
2.4%
probability of exploitation in 30 days · percentile 84
Auth required
No
Published
Nov 27, 2017
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-94
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

math.js before 3.17.0 had an arbitrary code execution in the JavaScript engine. Creating a typed function with JavaScript code in the name could result arbitrary execution.

Original NVD text.

What to do

  1. Apply the vendor's security update for Math.js.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm mathjs < 3.17.0 3.17.0 npm install mathjs@3.17.0

Per OSV / GitHub Advisories (GHSA-vx5c-87qx-cv6c). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
mathjsmath.js≤ 3.17.0

Official sources

References

Links published by the sources. Open them with care.