Node ajv: fast-uri is a URI parser for Node.js. (CVE-2026-75931)
Description
fast-uri, a URI parser for Node.js used in node-ajv, inconsistently canonicalizes hosts depending on whether the URI includes an explicit scheme. This inconsistency can cause host confusion, allowing policy bypass when applications compare hosts extracted by different fast-uri functions. The vulnerability affects versions 2.4.2 up to but not including 2.4.5, 3.1.3 up to but not including 3.1.6, and 4.0.1 up to but not including 4.1.3. Fixed versions 2.4.5, 3.1.6, and 4.1.3 address the issue by consistent host canonicalization. Users should upgrade to these patched versions to mitigate the risk.
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
The fast-uri library for Node.js has a vulnerability (CVE-2026-75931) where it only canonicalizes a host to its ASCII form if the input URI includes an explicit scheme. Scheme-relative references (e.g., starting with //) are returned with the host verbatim and no error, causing different fast-uri functions (parse, resolve, normalize, equal) to produce inconsistent host values for the same input. This inconsistency can lead to host confusion and policy bypass if an application uses fast-uri to check hosts against a policy list and then resolves the same reference differently. The vulnerability affects node-ajv versions 2.4.2 to <2.4.5, 3.1.3 to <3.1.6, and 4.0.1 to <4.1.3. The issue is fixed in versions 2.4.5, 3.1.6, and 4.1.3 by ensuring consistent host canonicalization across all resolve paths.
Potential Impact
The vulnerability enables host confusion and policy bypass in applications using fast-uri to enforce host-based policies. An attacker could exploit the inconsistent host canonicalization to bypass security checks that rely on host matching, potentially leading to unauthorized access or other policy violations. The CVSS score is 7.5 (High), reflecting the potential for integrity impact without requiring privileges or user interaction.
Mitigation Recommendations
A fix is available in fast-uri versions 2.4.5, 3.1.6, and 4.1.3, which consistently canonicalize hosts across all functions. Users should upgrade node-ajv to these patched versions to remediate the vulnerability. No other mitigation is indicated by the vendor advisory.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- UBUNTU-CVE-2026-75931
- 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: 6ad3f5802cdf04f656662176
Added to database: 10/17/2026, 22:24:00 UTC
Last enriched: 10/17/2026, 23:44:57 UTC
Last updated: 10/17/2026, 23:44:57 UTC
Views: 3
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.