Open Redirect Affecting github.com/go-chi/chi/v5/middleware package, versions >=5.2.2


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.27% (20th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Open Redirect vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMGOCHICHIV5MIDDLEWARE-22382482
  • published9 Nov 2026
  • disclosed4 Nov 2026
  • creditUnknown

Introduced: 4 Nov 2026

NewCVE-2026-122132  (opens in a new tab)
CWE-601  (opens in a new tab)

How to fix?

There is no fixed version for github.com/go-chi/chi/v5/middleware.

Overview

Affected versions of this package are vulnerable to Open Redirect in the RedirectSlashes middleware in middleware/strip.go. An attacker can redirect a user to an external site with a link whose path ends in a slash and contains a tab character before a hostname, which the middleware passes into the 301 Location header and the browser strips to leave a protocol-relative //host target. Only applications that install middleware.RedirectSlashes are affected, and the redirect is performed by the victim's browser, so it requires the user to follow the link.

Workaround

This vulnerability can be avoided by rejecting request paths that contain control characters (tab, carriage return, line feed) at a reverse proxy or in a net/http wrapper before they reach RedirectSlashes.

Note: This is a bypass of the fix for the vulnerability described in CVE-2025-69725.

CVSS Base Scores

version 4.0
version 3.1