{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2017-16021","published":"2018-06-04T19:29:01.303000Z","last_modified":"2026-06-17T01:08:39.330000Z","status":"Modified","cvss":{"version":"3.1","score":6.5,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","source":"nvd@nist.gov","primary":true},"auth":true,"cwes":["CWE-400","CWE-1333"],"cpes":[{"criteria":"cpe:2.3:a:garycourt:uri-js:*:*:*:*:*:node.js:*:*","part":"a","vendor":"garycourt","product":"uri-js","version_end_including":"2.1.1"}],"cpes_truncated":false,"vendors":["garycourt"],"products":["garycourt/uri-js"],"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-333w-rxj3-f55r","ecosystem":"npm","name":"uri-js","purl":"pkg:npm/uri-js","ranges":[{"introduced":"0","fixed":"3.0.0"}],"versions":[]}],"severity":"medium","priority_score":39,"links":{"html_es":"/es/cve/CVE-2017-16021/","html_en":"/en/cve/CVE-2017-16021/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2017-16021","cve_org":"https://www.cve.org/CVERecord?id=CVE-2017-16021"},"untrusted":{"vendor_name":"Garycourt","product_name":"Uri-js","desc_en":"uri-js is a module that tries to fully implement RFC 3986. One of these features is validating whether or not a supplied URL is valid or not. To do this, uri-js uses a regular expression, This regular expression is vulnerable to redos. This causes the program to hang and the CPU to idle at 100% usage while uri-js is trying to validate if the supplied URL is valid or not. To check if you're vulnerable, look for a call to `require(\"uri-js\").parse()` where a user is able to send their own input. This affects uri-js 2.1.1 and earlier.","affected":[{"untrusted_vendor":"HackerOne","untrusted_product":"uri-js node module"}],"references":[{"url":"https://github.com/garycourt/uri-js/issues/12","tags":["Exploit","Issue Tracking","Third Party Advisory"]},{"url":"https://nodesecurity.io/advisories/100","tags":["Broken Link","Third Party Advisory"]}]}}