Read the docs

Improper input validation in math.js

Priority MEDIUM 45CWE-88Published · 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-88.

Summary

math.js before 3.17.0 had an issue where private properties such as a constructor could be replaced by using unicode characters when creating an object.

Why it matters now

EPSS 0.01689 77th 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-pv8x-p9hq-j328
  • 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-pv8x-p9hq-j328

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:mathjs_project:mathjs:*:*:*:*:*:*:*:*before 3.17.0VulnerableMathjs Project
  • cpe:2.3:a:mathjs_project:mathjs:*:*:*:*:*:*:*:* Versions before 3.17.0 Vulnerable ·Mathjs Project

Remediation

  • Fix · GHSA-pv8x-p9hq-j328 mathjs (npm) Fixed in 3.17.0 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2017-1001003
  2. 2026-10-03 Alias added: GHSA-pv8x-p9hq-j328

References

  • TI-2017-14722 Code injection in math.js CVSS 3.0CRITICAL 9.8
  • TI-2026-29767 Unsafe array index getter in mathjs CVSS 3.0HIGH 8.8
  • TI-2026-29553 Math.js: Unsafe object property setter in mathjs CVSS 3.1HIGH 8.8
  • TI-2020-06261 Prototype pollution in mathjs CVSS 3.1HIGH 7.3

Sources