Read the docs

Code injection in math.js

Priority MEDIUM 47CWE-94Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.0 · NVD. Fix status from CNA and GitHub. Impact type from CWE-94.

Summary

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.

Why it matters now

EPSS 0.02357 83rd percentileScored 2026-11-07
Fix Fixed mathjs (npm): 3.17.0

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
math.jsmath.js3.17.0—No fix listedCNA
—mathjs (npm)before 3.17.03.17.0Patch availableGHSA-vx5c-87qx-cv6c
  • math.js Vendormath.js Affected 3.17.0 Fixed in — No fix listed CNA
  • mathjs (npm) Vendor— Affected before 3.17.0 Fixed in 3.17.0 Patch available GHSA-vx5c-87qx-cv6c

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:mathjs:math.js:*:*:*:*:*:*:*:*up to 3.17.0Vulnerablemath.js
  • cpe:2.3:a:mathjs:math.js:*:*:*:*:*:*:*:* Versions up to 3.17.0 Vulnerable ·math.js

Remediation

  • Fix · GHSA-vx5c-87qx-cv6c mathjs (npm) Fixed in 3.17.0 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2017-1001002
  2. 2026-10-03 Alias added: GHSA-vx5c-87qx-cv6c

References

Sources