GitHub Advisoryadvisory · npm
GHSA-vx5c-87qx-cv6c Arbitrary Code Execution in mathjs
CRITICAL
Official page ↗
- Aliases
- CVE-2017-1001002
- Ecosystem
- npm
- Packages
- mathjs
- Severity
- Critical
- CVSS vector
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Weaknesses
- CWE-94
- Reviewed
- 2020-06-16
Affected packages
• npm mathjs: < 3.17.0 → 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.
Recommendation
Update to version 3.17.0 or later.
Related
Alias · CVE (1)
- CVE-2017-1001002 math.js before 3.17.0 had an arbitrary code execution in the JavaScript engine. vulnerability
Weakness · CWE (1)
- CWE-94 Improper Control of Generation of Code weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2017-1001002 advisory
- https://github.com/josdejong/mathjs/commit/8d2d48d81b3c233fb64eb2ec1d7a9e1cf6a55a90 web
- https://github.com/advisories/GHSA-vx5c-87qx-cv6c advisory
- https://github.com/josdejong/mathjs/blob/master/HISTORY.md#2017-11-18-version-3170 web
- https://www.npmjs.com/advisories/552 web