Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft link with encoded tab/backslash on trusted host
-
ExploitDeliver phishing link to victim
-
ExecutionBrowser resolves 301 Location as protocol-relative URL
-
ImpactVictim redirected to attacker-controlled 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 | Exploitation requires that the target application actually enables chi's RedirectSlashes middleware - it is not triggered in default routing without that middleware. The attacker then needs a path containing a URL-encoded control character (tab, %09, per the description) or a backslash (%5C, per the vendor PoC) so the 301 Location becomes '/\evil.com' or equivalent. No authentication or prior privilege is needed (PR:N). Exploitation is LIMITED by required user interaction (the victim must click the crafted link, UI:A/UI:R) and by browser behavior: it only works in browsers such as Chrome and Firefox that transform the malformed Location into a protocol-relative URL, and explicitly does NOT work in Safari per the vendor advisory. |
| Impact | This is a genuinely medium/low-urgency issue rather than a top priority. The provided CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:A, score 5.1) and the vendor's GHSA 3.0 vector (AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N, 4.7) agree on the mechanism: network-reachable, no authentication, but requiring victim interaction (clicking a crafted link) and yielding only limited impact - an open redirect (CWE-601), not code execution. No EPSS score is provided in the input and the vulnerability is NOT in CISA KEV, so there is no signal of active exploitation; the vuln.today decision label is 'this_month', consistent with a real-but-not-emergency patch cadence. A working proof-of-concept is published in the vendor advisory, which raises practical reachability, but open redirects are phishing/social-engineering aids rather than direct-compromise bugs, and exploitation only works against users of browsers (Chrome, Firefox) that transform the malformed path into a protocol-relative URL - it explicitly does not work in Safari. Note a conflict in the input: the top-level Description claims the flaw affects 5.2.2 through 5.5.0 via URL-encoded tab characters that bypass the earlier CVE-2025-69725 fix, whereas the VulnCheck/GHSA package data states vulnerable '>= 5.2.2, < 5.2.4' with a backslash-based PoC - verify the exact affected range and trigger character with the vendor. |
| Exploit ScenarioDerived | An attacker crafts a URL on a legitimate site that uses chi's RedirectSlashes middleware, embedding a URL-encoded control character (a tab, %09, per the description, or a backslash, %5C, per the vendor PoC) such as https://trusted.example/%09/evil.com/. The victim, trusting the legitimate domain, clicks the link; the server returns a 301 whose Location is treated by Chrome/Firefox as a protocol-relative URL, silently redirecting the victim to the attacker's site for phishing or malware delivery. A complete working proof-of-concept is published in the vendor advisory (GHSA-mqqf-5wvp-8fh8). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 04, 2026
Open redirect in go-chi's RedirectSlashes middleware (chi 5.2.2 through 5.5.0) lets an attacker craft a link on a legitimate site whose 301 Location header is resolved by the browser as a protocol-relative URL to an attacker-controlled host, enabling phishing and credential theft. Exploitation requires that the application actually mounts middleware.RedirectSlashes, and it is further limited to victims who click the crafted link in browsers such as Chrome or Firefox that rewrite the malformed Location - the vendor advisory states Safari is not affected and no authentication or prior privilege is needed. The vendor advisory includes a minimal reproducible proof-of-concept and a public PoC reference exists, but it is not verified as working exploit code; no confirmed active exploitation (CISA KEV) or public exploit tooling was identified at time of analysis, and the issue is assessed as medium/low urgency.
RemediationAI
Upgrade the go/github.com/go-chi/chi/v5 module to 5.2.4 or later, the fixed version listed in GHSA-mqqf-5wvp-8fh8, which incorporates the upstream commit 6eb35881c0e438ffb663ddbad3a61babaa5e5d8a and pull request https://github.com/go-chi/chi/pull/1238; teams running versions above 5.2.4 should confirm their module actually contains that commit, because the CVE description lists 5.2.2 through 5.5.0 as affected. If an immediate upgrade is not possible, the practical compensating control is to stop using middleware.RedirectSlashes and handle trailing-slash normalization with a custom handler that rejects or refuses to redirect any path containing C0 control characters (such as %09), DEL, or backslashes before building the Location - the trade-off is that clients requesting double-slashed or backslash-containing paths will receive an error or 404 instead of a normalized redirect, which can change observable routing behavior for legacy clients. Removing the middleware entirely eliminates the redirect surface but also drops the canonical trailing-slash behavior that some clients and caches depend on. Full details and vendor guidance are in the advisory at https://github.com/go-chi/chi/security/advisories/GHSA-mqqf-5wvp-8fh8.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 6 packages in go, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
chi is a lightweight idiomatic HTTP router for Go, and the flaw sits in middleware/strip.go's RedirectSlashes handler, which issues 301 redirects to normalize trailing slashes. The handler prefixes a single '/' to strings.Trim(path, "/") but only trims forward slashes, leaving backslashes and other characters intact; separately, from version 5.2.2 onward the redirect intentionally omits the request Host (a change made to address GHSA-vrw8-fxc6-2r93), so the emitted Location is a bare path that the browser must resolve itself. The result is a Location such as '/\evil.com' (reachable via %5C encoding), which Chrome and Firefox normalize to '//evil.com' - a protocol-relative URL pointing at an external host - while the CVE description describes the equivalent abuse using a URL-encoded tab (%09) that browsers strip from the Location header. Both variants are class CWE-601 (URL Redirection to Untrusted Site / Open Redirect). The upstream fix in PR 1238 rejects request paths containing C0 control characters or DEL (returning 400 Bad Request) and replaces the manual string concatenation with a parsed url.URL{Path, RawQuery} value so the redirect target is a guaranteed same-origin reference; note that the CVE description frames the issue as covering 5.2.2 through 5.5.0 and the referenced v5.5.0 source (middleware/strip.go#L41-L69) still shows the pre-fix pattern, while the GHSA package metadata lists the vulnerable range as >= 5.2.2, < 5.2.4 with the fix in 5.2.4.
Know when Chi 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:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
Network-reachable with no auth (PR:N) but needs victim click (UI:R); redirect crosses to an attacker origin (S:C) with limited confidentiality impact via phishing (C:L) and no integrity/availability impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
go-chi chi 5.2.2 through 5.5.0 contains an open redirect vulnerability in the RedirectSlashes middleware that allows attackers to redirect victims to external hosts by embedding tab characters in request paths. Attackers can craft links with a URL-encoded tab, which browsers strip from the 301 Location header and resolve as a protocol-relative URL, bypassing the fix for CVE-2025-69725.
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
IP spoofing via the RealIP middleware in go-chi/chi (versions 5.2.1 through 5.2.x) allows unauthenticated remote attacke
IP spoofing in go-chi/chi's RealIP middleware through version 5.2.1 enables unauthenticated remote attackers to inject a
IP spoofing in go-chi's RealIP middleware allows unauthenticated network attackers to forge the apparent client source I
IP spoofing in Go Chi before 5.4.0 allows an unauthenticated client that can reach the Go server directly to forge its a
Open redirect in chi (go-chi/chi) versions before 5.2.2 allows Host header injection via the RedirectSlashes middleware,
EUVD-2026-117086
GHSA-27h9-x5w9-37mx
NVD
CVE.org
EPSS
Exploit-DB