Skip to content
OpenAdvisories

Description

chi versions before v5.2.2 contain an open redirect vulnerability in the RedirectSlashes middleware function that uses the Host header to construct redirect URLs. Attackers can manipulate the Host header to redirect users to arbitrary hosts, enabling phishing attacks and credential theft.

Affected products

VendorProductAffectedFixed
go-chi chi < 5.2.2 5.2.2

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 golang-github-go-chi-chi 5.2.3-1 —
Debian 13 golang-github-go-chi-chi No fix yet —
Debian 12 golang-github-go-chi-chi No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 golang-github-go-chi-chi No fix yet —
Ubuntu 26.04 LTS golang-github-go-chi-chi No fix yet —
Ubuntu 24.04 LTS golang-github-go-chi-chi No fix yet —
Ubuntu 22.04 LTS golang-github-go-chi-chi No fix yet —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling buf 1.55.1-r1 —
Wolfi rolling caddy +2 2.10.0-r2 —
Wolfi rolling cloudflared 2025.6.1-r1 —
Wolfi rolling gitness 3.2.0-r2 —
Wolfi rolling gogatekeeper +1 3.5.0-r0 —
Wolfi rolling karma 0.121-r3 —
Wolfi rolling kyverno-policy-reporter-ui +1 2.3.10-r2 —
Wolfi rolling rclone +1 1.70.1-r1 —
Wolfi rolling sftpgo 2.6.6-r6 —
Wolfi rolling step 0.28.6-r5 —
Wolfi rolling step-ca 0.28.3-r5 —
Wolfi rolling step-issuer +1 0.9.8-r5 —
Wolfi rolling tkn 0.41.0-r2 —

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/go-chi/chi/v5 < 5.2.2 5.2.2 GHSA-vrw8-fxc6-2r93
Go github.com/go-chi/chi/v5 >= 5.2.1, < 5.2.2 5.2.2 GO-2025-3770

References