{"id":"CVE-2017-16021","published":"2018-06-04T19:00:00Z","modified":"2024-09-17T01:46:00Z","title":"uri-js is a module that tries to fully implement RFC 3986","vendor":"HackerOne","product":"uri-js node module","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.01313,"percentile":0.71405,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/garycourt/uri-js/issues/12","tags":["x_refsource_MISC"]},{"url":"https://nodesecurity.io/advisories/100","tags":["x_refsource_MISC"]}],"priority":{"score":14.3,"factors":[{"name":"EPSS percentile","points":14.28}]},"vendorSlug":"hackerone","affectedVersions":[{"vendor":"HackerOne","product":"uri-js node module","versions":["<=2.1.1"]}],"affected":[{"ecosystem":"npm","package":"uri-js","vulnerableRanges":["<3.0.0"],"patched":["3.0.0"],"from":["GHSA-333w-rxj3-f55r"],"provenance":"source"}],"summary":{"text":"The uri-js Node module, which implements RFC 3986 URL parsing and validation, contains a regular expression used for URL validity checking that is vulnerable to ReDoS (uncontrolled resource consumption). An attacker who can supply a crafted URL that reaches the module's parsing or validation logic, such as through a call to require(\"uri-js\").parse() that accepts user-controlled input, can cause the process to hang with CPU pinned at 100%.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:49:56Z"},"euvd":{"id":"EUVD-2018-0211","exploited":false,"provenance":"source"}}