Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. uri-js
  4. ›
  5. CVE-2017-16021

CVE-2017-16021: Uncontrolled Resource Consumption

June 4, 2018 (updated October 9, 2019)

uri-js is a module that tries to fully implement RFC One of these features is validating whether a supplied URL is valid or not. To do this, uri-js uses a regular expression, This regular expression is vulnerable to redos.

References

  • github.com/garycourt/uri-js/issues/12
  • nvd.nist.gov/vuln/detail/CVE-2017-16021

Code Behaviors & Features

Detect and mitigate CVE-2017-16021 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions up to 2.1.1

Fixed versions

  • 3.0.0

Solution

Upgrade to version 3.0.0 or above.

Impact 6.5 MEDIUM

CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-400: Uncontrolled Resource Consumption

Source file

npm/uri-js/CVE-2017-16021.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:28 +0000.