Skip to main content

go-chi chi EUVDEUVD-2026-117086

| CVE-2026-122132 MEDIUM
URL Redirection to Untrusted Site (Open Redirect) (CWE-601)
2026-11-04 VulnCheck GHSA-27h9-x5w9-37mx
5.1
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Craft link with encoded tab/backslash on trusted host
  2. Exploit
    Deliver phishing link to victim
  3. Execution
    Browser resolves 301 Location as protocol-relative URL
  4. Impact
    Victim 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).

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – 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

chi 5.2.2 ≤5.5.0

Affected Packages

go github.com/go-chi/chi no fix
go github.com/go-chi/chi/v2 no fix
go github.com/go-chi/chi/v3 no fix
go github.com/go-chi/chi/v4 no fix
go github.com/go-chi/chi/v5 fix: 5.2.4
euvd chi no fix

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

Vendor (VulnCheck) PRIMARY 5.1 MEDIUM
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
vuln.today AI 4.7 MEDIUM

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.

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
Red Hat 6.1 MEDIUM

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

EPSS Score
0.3%
Top 81% exploitable
Prevalence
Medium
popular Go HTTP router library, common in Go web services
Data Quality
5 sources
Confidence: Medium

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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

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

Vendor StatusVendor

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