{"cve":"CVE-2017-16021","nvd":{"published":"2018-06-04T19:29:01.303","modified":"2026-06-17T01:08:39.330","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5},"cwes":["CWE-1333","CWE-400"],"references":["https://github.com/garycourt/uri-js/issues/12","https://nodesecurity.io/advisories/100","https://github.com/garycourt/uri-js/issues/12","https://nodesecurity.io/advisories/100"],"products":["garycourt:uri-js"],"source":"nvd","synced_at":"2026-10-19T20:50:40.212176939+00:00"},"epss":{"cve":"CVE-2017-16021","score":0.01321,"percentile":0.70886,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-333w-rxj3-f55r","url":"https://osv.dev/vulnerability/GHSA-333w-rxj3-f55r","summary":"Regular Expression Denial Of Service in uri-js","modified":"2024-04-22T19:37:18Z","packages":[{"ecosystem":"npm","name":"uri-js","purl":"pkg:npm/uri-js","ranges":["<3.0.0"],"fixed":["3.0.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}