Description
uri-js through 4.4.1 contains a denial of service vulnerability in the removeDotSegments function that loops infinitely when a path segment begins with Unicode line or paragraph separators. Attackers can trigger this by calling removeDotSegments directly or through normalize/resolve functions with IRI handling enabled, causing the Node.js event loop to block indefinitely until heap exhaustion.
Severity (CVSS)
| Base score | 8.7 |
|---|---|
| Severity | High |
| Version | CVSS 4.0 |
| Vector | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N |
| Provided by | CNA |
Weaknesses
- CWE-835 — Loop with Unreachable Exit Condition ('Infinite Loop')
Affected products
| Vendor | Product | Versions |
|---|---|---|
| garycourt | uri-js | 0 to <=4.4.1 |
References
- https://github.com/garycourt/uri-js/issues/105 (issue-tracking)
- https://github.com/garycourt/uri-js (product)
- https://github.com/garycourt/uri-js/blob/4.4.0/src/uri.ts#L349 (technical-description)
- https://github.com/garycourt/uri-js/blob/4.4.0/src/uri.ts#L352-L376 (technical-description)
- https://www.npmjs.com/package/uri-js/v/4.4.1 (product)
- https://www.vulncheck.com/advisories/uri-js-through-4.4.1-denial-of-service-via-removedotsegments (third-party-advisory)
Generated from the official CVE List on 19 Sep 2026 07:08 UTC.