CVE-2017-16021

Public Exploit

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.

Categories

6.5
CVSS
Severity: Medium
CVSS 3.1 •
CVSS 2.0 •
EPSS 0.22%
Third-Party Advisory github.com Third-Party Advisory nodesecurity.io
Affected: HackerOne uri-js node module
Published at:
Updated at:

References

Link Tags
https://github.com/garycourt/uri-js/issues/12 third party advisory issue tracking exploit
https://nodesecurity.io/advisories/100 third party advisory broken link

Frequently Asked Questions

What is the severity of CVE-2017-16021?
CVE-2017-16021 has been scored as a medium severity vulnerability.
How to fix CVE-2017-16021?
To fix CVE-2017-16021, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2017-16021 being actively exploited in the wild?
It is possible that CVE-2017-16021 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2017-16021?
CVE-2017-16021 affects HackerOne uri-js node module.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.