Skip to main content

Node ajv: fast-uri is a URI parser for Node.js. (CVE-2026-75931)

0
Medium
Published: 08/24/2026 (08/24/2026, 10:16:00 UTC)
Source: GCVE Database
Product: node-ajv

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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Affected software

Ubuntu:18.04:LTSmore threats →ghsa
node-ajv
pkg:deb/ubuntu/node-ajv?arch=source&distro=bionic
Affected versions
=5.0.0-1
Ubuntu:20.04:LTSmore threats →ghsa
node-ajv
pkg:deb/ubuntu/node-ajv?arch=source&distro=focal
Affected versions
=6.10.2-1
Ubuntu:22.04:LTSmore threats →ghsa
node-ajv
pkg:deb/ubuntu/node-ajv?arch=source&distro=jammy
Affected versions
=6.12.6-2=6.12.6-3
Ubuntu:24.04:LTSmore threats →ghsa
node-ajv
pkg:deb/ubuntu/node-ajv?arch=source&distro=noble
Affected versions
=6.12.6-3=8.12.0~ds+~2.1.1-4
Ubuntu:26.10more threats →ghsa
node-ajv
pkg:deb/ubuntu/node-ajv?arch=source&distro=stonking
Affected versions
=8.17.1~ds+~3.0.1+~3.1.0-4build1=8.20.0~ds+~cs6.1.3-1=8.20.0~ds+~cs7.1.2-1=8.20.0~ds+~cs7.1.3-1=8.20.0~ds+~cs7.1.3-3
Ubuntu:26.04:LTSmore threats →ghsa
node-ajv
pkg:deb/ubuntu/node-ajv?arch=source&distro=resolute
Affected versions
=8.12.0~ds+~2.1.1-5=8.17.1~ds+~3.0.1+~3.1.0-2=8.17.1~ds+~3.0.1+~3.1.0-4build1

Run 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

AILast updated: 10/17/2026, 23:44:57 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses