Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAttacker crafts same-origin URL with //evil.com path
-
DeliveryVictim clicks crafted link, SPA serves page via catch-all route
-
ExploitVictim triggers redirectBack() endpoint
-
InstallOrigin check passes on WHATWG-parsed URL
-
C2Server emits Location: //evil.com/path
-
ExecuteBrowser interprets as protocol-relative redirect
-
ImpactVictim lands on attacker phishing site
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V3 - Web Frontend Security Redirect URL validation
MITRE ATT&CK
1 technique across 1 tactic: Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Three concrete conditions must all hold: (1) the application uses h3's redirectBack() utility in a server endpoint (common in Nitro/Nuxt form-submit or login-flow handlers); (2) the application has catch-all routing so that the crafted URL http://target.com//evil.com/path is served by the app rather than returning a 404 - this is the default behavior of SPAs built on Nitro; (3) the victim is socially engineered to visit the crafted URL and then trigger the redirectBack() endpoint (UI:P). Exploitation is limited by the requirement for user interaction and by the lack of direct server-side impact - the attacker gains only browser-level redirect control, not code execution. The attack does not require any authentication (PR:N) and works against default Nitro SPA configurations. |
| Impact | The provided CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N, score 5.3) accurately characterizes the threat: no authentication is needed, the attack is trivially automated across the network, but user interaction (clicking a crafted link and then triggering a redirectBack() endpoint) gates exploitation. Impact is limited to open redirect - the direct consequence is phishing, credential harvesting at an attacker-controlled lookalike site, or session fixation, not remote code execution. A POC is publicly available in the GHSA advisory, raising the probability of opportunistic exploitation. The vulnerability is not listed in CISA KEV, and no EPSS value was provided; the combination of UI:P and moderate impact keeps real-world priority below critical. Practical exploitability is further gated by whether the target application (a) uses redirectBack() in an exposed endpoint and (b) has catch-all SPA routing that makes the crafted URL appear legitimate - both are common in Nitro/Nuxt deployments, increasing the effective exposed surface within that ecosystem. |
| Exploit ScenarioDerived | An attacker crafts a link such as http://target.com//evil.com/login and distributes it via phishing. The victim visits the URL; because the Nitro/h3 SPA uses catch-all routing, the app serves its normal UI at that path. When the victim submits a form or triggers an action that internally calls redirectBack(), the browser sends Referer: http://target.com//evil.com/login. The origin check passes, and the server responds with Location: //evil.com/login, causing the browser to redirect the user to the attacker's phishing domain under the current protocol. A functional POC script demonstrating the full response flow is included in the GHSA advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 06, 2026
Open redirect in h3 (h3js) before 2.0.1-rc.18 allows unauthenticated remote attackers to redirect victims to arbitrary external domains by crafting a Referer header containing a same-origin URL with a double-slash path segment (e.g., http://target.com//evil.com/phish). The redirectBack() utility passes the WHATWG origin check - because the parsed origin is correctly identified as the target domain - but emits the raw pathname //evil.com/phish as the Location header, which browsers interpret as a protocol-relative redirect to an attacker-controlled site. A proof-of-concept is included in the GHSA advisory; no active exploitation (CISA KEV) has been identified at time of analysis.
RemediationAI
Upgrade h3 to version 2.0.1-rc.18 or later. The upstream fix is available in commit 459a1c6593365b0810e9c502df7c3e82837321d7 on the h3js/h3 GitHub repository. Full vendor advisory at https://github.com/h3js/h3/security/advisories/GHSA-fp4x-ggrf-wmc6. If immediate upgrade is not possible, a specific compensating control is to add a pathname sanitization check immediately after the origin check: reject or normalize any pathname that begins with '//' before passing it to redirect(). Alternatively, disable or replace use of redirectBack() in endpoints where the Referer header is user-controlled, and implement explicit allow-list validation of redirect destinations. Be aware that patching just this utility does not protect against other open-redirect patterns if custom redirect logic shares the same flaw.
Affected VersionsENISA
Affected Packages
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
h3 is a minimal, high-performance HTTP framework for JavaScript used as the foundation of Nitro (the Nuxt server engine) and related SSR/SPA stacks. The vulnerability resides in src/utils/response.ts in the redirectBack() function (lines 89-97), which extracts the pathname from a parsed Referer URL after verifying that its origin matches the current request origin. The root cause (CWE-601) is a parsing discrepancy: the WHATWG URL parser correctly resolves new URL('http://target.com//evil.com/path').pathname as '//evil.com/path' - preserving the literal double-slash - while HTTP clients and browsers interpret a bare Location: //evil.com/path as a protocol-relative URL, causing them to redirect to the external host evil.com using the current page's scheme. The fix (commit 459a1c6593365b0810e9c502df7c3e82837321d7) sanitizes the pathname before using it as a Location value. Affected CPE: cpe:2.3:a:h3js:h3:*:*:*:*:*:*:*:*.
Know when H3 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
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
Network-reachable, no auth required, but user must follow crafted link; scope changes to external domain enabling phishing, yielding limited C and I.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
h3 versions before 2.0.1-rc.18 contain an open redirect vulnerability in the redirectBack() utility that fails to sanitize protocol-relative paths in the Referer header pathname. Attackers can craft a same-origin URL with a double-slash path segment that passes origin validation but produces a Location header interpreted by browsers as a protocol-relative redirect to an external domain.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
HTTP request smuggling in H3 framework versions before 1.15.5 allows remote attackers to bypass security controls by exp
Path traversal in h3's serveStatic() function on Node.js allows unauthenticated remote attackers to read arbitrary files
Denial of service in h3 (npm package h3js/h3, versions 2.0.0-beta.4 through 2.0.1-rc.17) allows unauthenticated remote a
Path traversal in h3's serveStatic utility (versions before 1.15.9) enables unauthenticated remote attackers to read arb
SSE event injection in the h3 JavaScript HTTP framework (npm package h3js/h3, versions before 1.15.9 stable and before 2
EUVD-2026-72105
GHSA-vhx4-2r84-67h4
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB