{"api_version":"1","generated_at":"2026-07-23T10:31:27+00:00","cve":"CVE-2017-1001004","urls":{"html":"https://cve.report/CVE-2017-1001004","api":"https://cve.report/api/cve/CVE-2017-1001004.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2017-1001004","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2017-1001004"},"summary":{"title":"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.","state":"PUBLISHED","assigner":"joshbressers","published_at":"2017-11-27 14:29:00","updated_at":"2025-04-20 01:37:25"},"problem_types":["CWE-94","CWE-20","CWE-94 CWE-94: Improper Control of Generation of Code ('Code Injection')"],"metrics":[{"version":"3.0","source":"nvd@nist.gov","type":"Primary","score":"8.8","severity":"HIGH","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","data":{"version":"3.0","vectorString":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","baseScore":8.8,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"2.0","source":"nvd@nist.gov","type":"Primary","score":"6.8","severity":"","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","data":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:P/I:P/A:P","baseScore":6.8,"accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL"}}],"references":[{"url":"https://github.com/josdejong/typed-function/blob/master/HISTORY.md#2017-11-18-version-0106","name":"https://github.com/josdejong/typed-function/blob/master/HISTORY.md#2017-11-18-version-0106","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"typed-function/HISTORY.md at master · josdejong/typed-function · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/josdejong/typed-function/commit/6478ef4f2c3f3c2d9f2c820e2db4b4ba3425e6fe","name":"https://github.com/josdejong/typed-function/commit/6478ef4f2c3f3c2d9f2c820e2db4b4ba3425e6fe","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"Fixed a security issue allowing to execute aritrary JavaScript code v… · josdejong/typed-function@6478ef4 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2017-1001004","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2017-1001004","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"typed-function","product":"typed-function","version":"affected 0.10.6","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2017","cve_id":"1001004","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"typed_function_project","cpe5":"typed_function","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2017","cve_id":"1001004","cve":"CVE-2017-1001004","epss":"0.007500000","percentile":"0.733160000","score_date":"2026-05-14","updated_at":"2026-05-15 00:08:13"},"legacy_qids":[{"cve":"CVE-2017-1001004","qid":"983208","title":"Nodejs (npm) Security Update for typed-function (GHSA-3qh4-r86r-grvm)"}]},"source_records":{"cve_program":{"containers":{"adp":[{"providerMetadata":{"dateUpdated":"2024-08-05T22:00:41.656Z","orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE"},"references":[{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"https://github.com/josdejong/typed-function/commit/6478ef4f2c3f3c2d9f2c820e2db4b4ba3425e6fe"},{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"https://github.com/josdejong/typed-function/blob/master/HISTORY.md#2017-11-18-version-0106"}],"title":"CVE Program Container"}],"cna":{"affected":[{"product":"typed-function","vendor":"typed-function","versions":[{"status":"affected","version":"0.10.6"}]}],"descriptions":[{"lang":"en","value":"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."}],"problemTypes":[{"descriptions":[{"cweId":"CWE-94","description":"CWE-94: Improper Control of Generation of Code ('Code Injection')","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2017-11-27T14:00:00.000Z","orgId":"46fe6300-5254-4a98-9594-a9567bec8179","shortName":"joshbressers"},"references":[{"tags":["x_refsource_CONFIRM"],"url":"https://github.com/josdejong/typed-function/commit/6478ef4f2c3f3c2d9f2c820e2db4b4ba3425e6fe"},{"tags":["x_refsource_CONFIRM"],"url":"https://github.com/josdejong/typed-function/blob/master/HISTORY.md#2017-11-18-version-0106"}],"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"josh@bress.net","ID":"CVE-2017-1001004","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"typed-function","version":{"version_data":[{"version_value":"0.10.6"}]}}]},"vendor_name":"typed-function"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-94: Improper Control of Generation of Code ('Code Injection')"}]}]},"references":{"reference_data":[{"name":"https://github.com/josdejong/typed-function/commit/6478ef4f2c3f3c2d9f2c820e2db4b4ba3425e6fe","refsource":"CONFIRM","url":"https://github.com/josdejong/typed-function/commit/6478ef4f2c3f3c2d9f2c820e2db4b4ba3425e6fe"},{"name":"https://github.com/josdejong/typed-function/blob/master/HISTORY.md#2017-11-18-version-0106","refsource":"CONFIRM","url":"https://github.com/josdejong/typed-function/blob/master/HISTORY.md#2017-11-18-version-0106"}]}}}},"cveMetadata":{"assignerOrgId":"46fe6300-5254-4a98-9594-a9567bec8179","assignerShortName":"joshbressers","cveId":"CVE-2017-1001004","datePublished":"2017-11-27T14:00:00.000Z","dateReserved":"2017-11-27T00:00:00.000Z","dateUpdated":"2024-09-16T17:13:51.673Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.1"},"nvd":{"publishedDate":"2017-11-27 14:29:00","lastModifiedDate":"2025-04-20 01:37:25","problem_types":["CWE-94","CWE-20","CWE-94 CWE-94: Improper Control of Generation of Code ('Code Injection')"],"metrics":{"cvssMetricV30":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"3.0","vectorString":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","baseScore":8.8,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":2.8,"impactScore":5.9}],"cvssMetricV2":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:P/I:P/A:P","baseScore":6.8,"accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL"},"baseSeverity":"MEDIUM","exploitabilityScore":8.6,"impactScore":6.4,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":true}]},"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:typed_function_project:typed_function:*:*:*:*:*:*:*:*","versionEndExcluding":"0.10.6","matchCriteriaId":"BE759593-BF10-4875-8C88-AD101A08C6E5"}]}]}]},"legacy_mitre":{"record":{"CveYear":"2017","CveId":"1001004","Ordinal":"1","Title":"CVE-2017-1001004","CVE":"CVE-2017-1001004","Year":"2017"},"notes":[{"CveYear":"2017","CveId":"1001004","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"CVE-2017-1001004"},{"CveYear":"2017","CveId":"1001004","Ordinal":"2","NoteData":"2017-11-27","Type":"Other","Title":"Published"}]}}}