GitHub Advisoryadvisory · npm
GHSA-3qh4-r86r-grvm Arbitrary JavaScript Execution in typed-function
HIGH
Official page ↗
- Aliases
- CVE-2017-1001004
- Ecosystem
- npm
- Packages
- typed-function
- Severity
- High
- Weaknesses
- CWE-94
- Reviewed
- 2020-08-31
Affected packages
• npm typed-function: < 0.10.6 → fixed in 0.10.6
Description
Versions of `typed-function` prior to 0.10.6 are vulnerable to Arbitrary JavaScript Execution. Function names are not properly sanitized and may allow an attacker to execute arbitrary code.
Recommendation
Upgrade to version 0.10.6 or later.
Related
Alias · CVE (1)
- CVE-2017-1001004 typed-function before 0.10.6 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-1001004 advisory
- https://github.com/josdejong/typed-function/commit/6478ef4f2c3f3c2d9f2c820e2db4b4ba3425e6fe web
- https://github.com/josdejong/typed-function/commit/6478ef4f2c3f3c2d9f2c820e2db4b4ba3425e6fe?diff=split#diff-9e1f22c2954a38db1fdf444dbc74e0a8 web
- https://github.com/josdejong/typed-function/blob/master/HISTORY.md#2017-11-18-version-0106 web
- https://snyk.io/vuln/SNYK-JS-TYPEDFUNCTION-174139 web
- https://www.npmjs.com/advisories/819 web