Node ajv: fast-uri is a URI parser for Node.js. (CVE-2026-76172)
Description
fast-uri, a URI parser for Node.js, has a vulnerability in versions 2.3.1 up to but not including 2.4.5, 3.0.0 up to but not including 3.1.6, and 4.0.0 up to but not including 4.1.3. The issue involves improper handling of percent-encoded slashes in the scheme component, leading to incorrect parsing and potential off-site redirects, server-side request forgery, or address-policy bypass. The flaw is fixed in versions 2.4.5, 3.1.6, and 4.1.3 by rejecting invalid schemes after decoding. Users should upgrade to these patched versions.
CVSS v3.1
Score 7.5high
Affected software
pkg:deb/ubuntu/node-ajv?arch=source&distro=bionicpkg:deb/ubuntu/node-ajv?arch=source&distro=focalpkg:deb/ubuntu/node-ajv?arch=source&distro=jammypkg:deb/ubuntu/node-ajv?arch=source&distro=noblepkg:deb/ubuntu/node-ajv?arch=source&distro=stonkingpkg:deb/ubuntu/node-ajv?arch=source&distro=resoluteRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
fast-uri for Node.js performs a legacy decoding pass on the URI scheme component without re-escaping the result, unlike the host component. This causes inputs with percent-encoded slashes in the scheme to parse as having no authority, resulting in undefined host and error values. However, resolving or normalizing such inputs emits a network-path reference with an attacker-controlled authority, which re-parses to that host. Applications that allowlist based on the parsed host or treat references with no authority as safe may be vulnerable to off-site redirects, server-side request forgery, or address-policy bypass. Additionally, the legacy decoder expands non-standard escape forms and allows control characters like carriage return and line feed to appear in output. The vulnerability affects versions 2.3.1 to <2.4.5, 3.0.0 to <3.1.6, and 4.0.0 to <4.1.3. The issue is fixed in 2.4.5, 3.1.6, and 4.1.3 by rejecting schemes invalid after decoding.
Potential Impact
This vulnerability can lead to security bypasses such as off-site redirects, server-side request forgery (SSRF), and address-policy bypasses due to incorrect URI parsing and validation. Applications relying on parsed host allowlisting or assumptions about authority presence may be tricked into unsafe behavior. The flaw does not impact confidentiality but can cause integrity issues by allowing attacker-controlled URIs to bypass filters.
Mitigation Recommendations
Upgrade fast-uri to versions 2.4.5, 3.1.6, or 4.1.3 or later, where the vulnerability is fixed by rejecting invalid schemes after decoding. No other mitigations are indicated by the vendor advisory. Users should ensure they are not using affected versions.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- UBUNTU-CVE-2026-76172
- Osv Schema Version
- 1.7.0
- Ecosystems
- ["Ubuntu:18.04:LTS","Ubuntu:20.04:LTS","Ubuntu:22.04:LTS","Ubuntu:24.04:LTS","Ubuntu:26.10","Ubuntu:26.04:LTS"]
- Cvss Version
- 3.1
Threat ID: 6ad3f5802cdf04f65666216f
Added to database: 10/17/2026, 22:24:00 UTC
Last enriched: 10/17/2026, 23:44:24 UTC
Last updated: 10/17/2026, 23:44:24 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.