Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2017-16021: uri-js is a module that tries to fully implement RFC 3986

45
This month
MEDIUM 6.5UPGRADE

CVE-2017-16021 is a medium-severity flaw (CVSS 6.5) affecting uri-js. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

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()

Why this priority

  • Public exploit reference

A fixed release or distro patch exists.

Risk facts

CVSS score6.5 (Medium)
Attack vectorNetwork (remote)
Attack complexityLow
Privileges neededLow
User interactionNone
EPSS exploit chance1.3% (top 29%)
CISA exploited listNo
WeaknessCWE-400, CWE-1333
Published2018-06-04
Last modified2026-06-17
Publisher (CNA): HackerOne · Vendor: garycourt

Share: LinkedIn · X · Reddit

Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

garycourt uri-js UPGRADE
Affected: <= 2.1.1
Fixed in: newer than 2.1.1
Safe to downgrade to: no unaffected older release
1. Check installed version
npm ls uri-js
2. UPGRADE to newer than 2.1.1
npm install uri-js@">2.1.1"
Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2017-16021?

uri-js: upgrade to newer than 2.1.1. Exact commands for each OS are on this page.

Is CVE-2017-16021 being exploited?

CVE-2017-16021 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2017-16021 affect?

CVE-2017-16021 affects uri-js. Severity is medium (CVSS 6.5). 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

How urgent is CVE-2017-16021?

Priority 45/100. Public exploit reference

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.