Skip to main content

fast-uri CVE-2026-76172

| EUVDEUVD-2026-64773 HIGH
Improper Handling of URL Encoding (Hex Encoding) (CWE-177)
2026-08-24 openjs GHSA-jqff-g426-hqxp
7.5
CVSS 3.1 · Vendor: openjs
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft URI with percent-encoded slashes in scheme
  2. Delivery
    Submit to application using fast-uri for host allowlisting
  3. Exploit
    fast-uri parses host as undefined, allowlist check passes
  4. Execution
    Application invokes fast-uri normalize/resolve on same input
  5. Persist
    Serialization emits attacker-controlled authority with decoded slashes
  6. Impact
    HTTP client dispatches request to attacker infrastructure (SSRF or open redirect)

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization URL encoding handling
Exploitation Conditions

Exploitation requires that the target application accepts untrusted URI input and passes it to an affected fast-uri version (2.3.1-2.4.4, 3.0.0-3.1.5, or 4.0.0-4.1.2) for parsing, and then either (a) uses the normalized or resolved URI output from fast-uri to make an outbound network request, or (b) performs an access-control decision using the parsed host value from fast-uri against the original input. No authentication is required (CVSS PR:N) and no non-default configuration is needed - the vulnerable legacy decoding path is active in default fast-uri behavior across all affected versions. The CRLF injection secondary vector is additionally conditioned on the application writing fast-uri output into an HTTP response header or outbound request header without further sanitization. Exploitation is limited to Node.js environments; no special network position or protocol is required beyond the ability to submit a URI string to the application.

Impact

The NVD CVSS 7.5 score (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N) accurately captures the low-friction attack surface - no authentication, no special configuration, and fully network-accessible - but likely understates total impact by assigning C:N; SSRF attacks enabled by this flaw can expose internal metadata endpoints, service credentials in headers, and internal network topology, suggesting real-world confidentiality risk beyond what the base score reflects. No EPSS data was supplied in the intelligence, preventing probabilistic forecasting of exploitation likelihood. The vulnerability is not currently listed on the CISA KEV catalog, and no public exploit code has been identified at time of analysis, which provides some near-term buffer. However, the exploitation technique - crafting a URI with percent-encoded scheme characters - requires no special tooling and is well within the capability of any attacker familiar with SSRF attack classes, meaning time-to-exploitation after broader discovery should be assumed short. The secondary CRLF injection vector, enabled by the same legacy decoder, widens blast radius for deployments where fast-uri output reaches HTTP response headers without additional sanitization. Overall priority is high for any Fastify-based application that performs outbound HTTP requests or host-based access control based on URI parsing results.

Exploit ScenarioDerived

An attacker submits a URI such as 'htt%70%3A%2F%2Fattacker.example.com/steal' to a Fastify application that uses fast-uri to parse incoming redirect targets and checks the parsed host against an allowlist before forwarding. The library decodes the scheme, finds no recognizable authority, returns host as undefined - the allowlist check passes. When the application calls fast-uri's normalize or resolve function to construct the outbound request, serialization re-emits the decoded slashes, producing '//attacker.example.com/steal', which the HTTP client dispatches to the attacker's server, potentially leaking session tokens or internal headers. No public exploit code has been identified at time of analysis, but the technique requires only a crafted input string and knowledge of this advisory.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
1 PoC candidate (unverified) Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 24, 2026

Parsing and serialization inconsistency in fast-uri, the Node.js URI parser core to the Fastify ecosystem, allows network-accessible, unauthenticated attackers to supply percent-encoded slashes in the scheme component, causing the library to report host as undefined during parsing while serialization emits a network-path reference with an attacker-controlled authority. Applications that allowlist requests on the parsed host value, or that treat a no-authority parse result as safe to resolve against a base URI, are bypassed - enabling server-side request forgery, off-site redirects, and address-policy evasion. No public exploit has been identified at time of analysis, but the CVSS vector (AV:N/AC:L/PR:N/UI:N) confirms exploitation requires no authentication and no special configuration, making affected deployments an immediate upgrade priority.

RemediationAI

Upgrade fast-uri to version 2.4.5, 3.1.6, or 4.1.3 for the respective major version branch in use; all three releases fix the issue by rejecting schemes that are not valid after decoding, as confirmed by the vendor advisory at https://github.com/fastify/fast-uri/security/advisories/GHSA-jqff-g426-hqxp and the OpenJS CNA listing at https://cna.openjsf.org/security-advisories.html. Running 'npm audit' or 'npm update fast-uri' in the project directory will identify and apply the fix where npm can resolve it automatically. If immediate upgrading is blocked, a compensating control is to validate all URI inputs at the application boundary by rejecting any input whose scheme portion contains percent-encoded characters (i.e., reject strings matching /^[^:]*%[0-9a-fA-F]{2}.*:/) before passing to fast-uri; this pre-filter adds latency and must be maintained as a custom layer, and it does not address the CRLF secondary vector. Additionally, disabling or sandboxing any normalization or resolution logic that consumes fast-uri output, and ensuring outbound HTTP clients do not write raw fast-uri output into request headers without sanitization, reduces exposure to both SSRF and CRLF injection vectors until the patch is applied.

Affected VersionsENISA

fast-uri 2.3.1 <2.4.5
fast-uri 4.0.0 <4.1.3
fast-uri 3.0.0 <3.1.6

Affected Packages

npm fast-uri fix: 2.4.5, 3.1.6, 4.1.3

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

fast-uri implements RFC 3986 URI parsing for Node.js and is a foundational dependency of the Fastify web framework. The root cause is CWE-177 (Improper Handling of URL Encoding): a legacy decoding pass is applied to the scheme component during parsing but is never reversed before serialization. RFC 3986 explicitly prohibits percent-encoding in the scheme; when fast-uri encounters '%2F' (encoded slash) in the scheme, it decodes it, which eliminates the apparent authority delimiter, leaving the parsed host undefined. However, serialization and normalization write the decoded scheme back verbatim, reintroducing the slashes as a '//' authority delimiter with whatever follows as the host - which is fully attacker-controlled. A secondary vector exists because the legacy decoder also expands non-standard escape sequences, allowing bypass of upstream input filters that strip standard encodings. Additionally, control characters such as CR ('%0D') and LF ('%0A') placed in the scheme survive into output as raw bytes, enabling HTTP response splitting or header injection in contexts where the URI is written to outbound HTTP headers. The affected CPE is cpe:2.3:a:fast-uri:fast-uri:*:*:*:*:*:*:*:* across the 2.x, 3.x, and 4.x branches.

Know when Node.js gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (openjs) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
vuln.today AI 8.2 HIGH

SSRF via this flaw exposes internal services and headers, warranting C:L rather than C:N; all other metrics match the network-accessible, no-auth, no-interaction exploitation path described.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N
SUSE HIGH
Red Hat 7.5 HIGH

Primary rating from Vendor (openjs).

CVSS VectorVendor: openjs

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None

Lifecycle Timeline

2
Patch available
Aug 24, 2026 - 11:01 EUVD
CVE Published
Aug 24, 2026 - 10:07 cve.org
HIGH 7.5

DescriptionCVE.org

fast-uri is a URI parser for Node.js. During parsing it runs a legacy decoding pass over the scheme component and never re-escapes the result, and serialization writes the scheme back out verbatim, unlike the host component which is re-escaped. As a result an input whose scheme carries percent-encoded slashes parses as a scheme with no authority, so the parsed host and error are both undefined, yet resolving or normalizing that same input emits a network-path reference whose authority is attacker-chosen and re-parses to that host. An application that allowlists on the parsed host, or treats a reference with no authority as safe to resolve against its base, gets the opposite of what it checked, giving an off-site redirect, server-side request forgery, or address-policy bypass. The legacy decoder also expands non-standard escape forms, widening the issue past upstream filters, and control characters in the scheme can reach the output as raw carriage return and line feed. The affected versions are 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 is fixed in 2.4.5, 3.1.6, and 4.1.3, which reject a scheme that is not valid after decoding. Users should upgrade to a patched version.

Latest POC

1 PoC candidate from github (unverified)

Sign in to open the public PoC links collected for this CVE.

Executive ViewAI

Why It Matters

The fast-uri library, core to the Fastify framework, contains a URI parsing flaw (CVE-2026-76172) allowing unauthenticated remote attackers to bypass URI validation controls, enabling server-side request forgery, open redirects, and policy evasion. With no vendor patch currently available and the vulnerability affecting a production-critical framework component, organizations using Fastify face immediate risk to application and infrastructure security. Interim compensating controls are essential while awaiting a vendor patch.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: implement network segmentation to restrict outbound connections from affected Fastify instances; deploy WAF rules blocking percent-encoded slashes in URI scheme components; enable enhanced logging and alerting for URI parsing anomalies; enforce strict allowlisting of target authorities in URI resolution functions; restrict or disable SSRF-prone features (webhooks, proxy integrations, external resource fetching) until patch available; require authentication and authorization checks for all functions processing externally-sourced URIs.

Threat Intelligence Overview

EPSS Score
0.2%
Top 84% exploitable
Prevalence
High
core URI parser for Fastify, a top-tier Node.js web framework
Threat Intel
1
1 sources
Data Quality
8 sources
Confidence: High
EUVD 🇯🇵JVN NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

58
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

CVE-2025-68613 HIGH POC
8.8 Dec 19

Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation

CVE-2024-41713 CRITICAL POC
9.1 Oct 21

A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could

CVE-2024-55591 CRITICAL POC
9.8 Jan 14

FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote

CVE-2023-44487 HIGH POC
7.5 Oct 10

Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour

CVE-2014-7205 CRITICAL POC
10.0 Oct 08

Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t

CVE-2025-59528 CRITICAL POC
10.0 Sep 22

Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete

CVE-2017-14849 HIGH POC
7.5 Sep 28

Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc

CVE-2017-5941 CRITICAL POC
9.8 Feb 09

An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2014-3744 HIGH POC
7.5 Oct 23

Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi

CVE-2014-9566 HIGH POC
7.5 Mar 10

Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin

CVE-2024-35286 CRITICAL POC
9.8 Oct 21

A vulnerability in NuPoint Messenger (NPM) of Mitel MiCollab through 9.8.0.33 allows an unauthenticated attacker to cond

Vendor StatusVendor

SUSE

Severity: Important
Product Status
SUSE Linux Enterprise Micro 5.3 Not-Affected
SUSE Linux Enterprise Micro 5.3 Not-Affected
SUSE Linux Enterprise Micro 5.3 Not-Affected
SUSE Linux Enterprise Micro 5.3 Not-Affected
SUSE Linux Enterprise Micro 5.4 Not-Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy