{"id":"CVE-2017-1001004","aliases":["EUVD-2020-0712","GHSA-3qh4-r86r-grvm"],"status":"published","title":"Arbitrary JavaScript Execution in typed-function","description":"typed-function before 0.10.6 had an arbitrary code execution in the JavaScript engine. Creating a typed function with JavaScript code in the name could result arbitrary execution.","severity":{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.01884,"percentile":0.79632,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-20","CWE-94"],"published":"2017-11-27T14:00:00Z","modified":"2026-10-20T10:48:01Z","fixes":[{"ecosystem":"npm","package":"typed-function","fixed_in":["0.10.6"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"typed-function","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.10.6"}]}]},{"source":"osv","ecosystem":"npm","package":"typed-function","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.10.6"}]}]}],"products":[{"vendor":"typed-function","product":"typed-function"},{"vendor":"typed_function_project","product":"typed_function"}],"references":[{"url":"https://github.com/josdejong/typed-function/commit/6478ef4f2c3f3c2d9f2c820e2db4b4ba3425e6fe","tags":["x_refsource_CONFIRM","x_transferred","fix","web"]},{"url":"https://github.com/josdejong/typed-function/blob/master/HISTORY.md#2017-11-18-version-0106","tags":["x_refsource_CONFIRM","x_transferred","web"]},{"url":"https://github.com/josdejong/typed-function/commit/6478ef4f2c3f3c2d9f2c820e2db4b4ba3425e6fe?diff=split#diff-9e1f22c2954a38db1fdf444dbc74e0a8","tags":["web"]},{"url":"https://snyk.io/vuln/SNYK-JS-TYPEDFUNCTION-174139","tags":["web"]},{"url":"https://www.npmjs.com/advisories/819","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2017-1001004","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-3qh4-r86r-grvm"}],"sources":{"cve":[{"id":"CVE-2017-1001004","description":"typed-function before 0.10.6 had an arbitrary code execution in the JavaScript engine. Creating a typed function with JavaScript code in the name could result arbitrary execution.","status":"published","published":"2017-11-27T14:00:00Z","modified":"2024-09-16T17:13:51.673Z","cwes":["CWE-94"],"updated_at":"2026-11-02T14:33:12.267141Z"}],"euvd":[{"id":"EUVD-2020-0712","description":"typed-function before 0.10.6 had an arbitrary code execution in the JavaScript engine. Creating a typed function with JavaScript code in the name could result arbitrary execution.","status":"published","published":"2017-11-27T14:00:00Z","modified":"2024-09-16T17:13:51Z","updated_at":"2026-11-03T00:55:44.31512Z"}],"ghsa":[{"id":"GHSA-3qh4-r86r-grvm","title":"Arbitrary JavaScript Execution in typed-function","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.\n\n\n## Recommendation\n\nUpgrade to version 0.10.6 or later.","status":"published","published":"2020-09-02T18:24:39Z","modified":"2023-01-09T05:03:46Z","cwes":["CWE-94"],"updated_at":"2026-11-02T14:36:06.317379Z"}],"nvd":[{"id":"CVE-2017-1001004","description":"typed-function before 0.10.6 had an arbitrary code execution in the JavaScript engine. Creating a typed function with JavaScript code in the name could result arbitrary execution.","status":"published","published":"2017-11-27T14:29:00.333Z","modified":"2026-06-17T00:59:19.06Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-94","CWE-20"],"updated_at":"2026-11-02T14:04:09.7374Z"}],"osv":[{"id":"CVE-2017-1001004","description":"typed-function before 0.10.6 had an arbitrary code execution in the JavaScript engine. Creating a typed function with JavaScript code in the name could result arbitrary execution.","status":"published","published":"2017-11-27T14:29:00.333Z","modified":"2026-10-20T10:48:01.140899179Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:03.851821Z"},{"id":"GHSA-3qh4-r86r-grvm","title":"Arbitrary JavaScript Execution in typed-function","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.\n\n\n## Recommendation\n\nUpgrade to version 0.10.6 or later.","status":"published","published":"2020-09-02T18:24:39Z","modified":"2023-11-08T03:58:48.131161Z","cwes":["CWE-94"],"updated_at":"2026-11-02T15:46:36.092962Z"}]}}
