{"id":"CVE-2017-16021","url":"https://www.cyber-defence.io/tools/cve/CVE-2017-16021","generatedAt":"2026-10-28T20:07:34.107Z","title":"To do this, uri-js uses a regular expression, This regular expression is vulnerable to redos.","description":"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.","published":"2018-06-04T19:29:01.000Z","lastModified":"2026-06-17T01:08:39.000Z","status":"Modified","sourceIdentifier":"support@hackerone.com","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"},"cwe":["CWE-400","CWE-1333"],"affected":["garycourt/uri-js"],"epss":{"score":0.01321,"percentile":0.70726,"date":"2026-10-27","history":[]},"kev":{"listed":false},"exploits":{"count":0,"verified":false,"firstPublished":null,"source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[]},"verdict":{"level":"low","text":"Lower severity and a low EPSS score (1.32%). Track it; it rarely justifies an emergency change on its own."},"changes":[],"references":[{"url":"https://github.com/garycourt/uri-js/issues/12","tags":["Exploit","Issue Tracking","Third Party Advisory"],"source":"support@hackerone.com"},{"url":"https://nodesecurity.io/advisories/100","tags":["Broken Link","Third Party Advisory"],"source":"support@hackerone.com"},{"url":"https://github.com/garycourt/uri-js/issues/12","tags":["Exploit","Issue Tracking","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://nodesecurity.io/advisories/100","tags":["Broken Link","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2017-16021","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}