CVE-2025-71405: chi Allows Host Header Injection which Leads to Open Redirect in RedirectSlashes

CVE-2025-71405 · Severity: medium · CVSS 4 · Published 2026-08-14

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.

Technologies: github.com/go-chi/chi/v5 (Go). Vendors: Go.

Quick answers

Is CVE-2025-71405 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2025-71405 being exploited in the wild.
How severe is CVE-2025-71405?
Medium severity, with a CVSS score of 4, published 14 August 2026.
Which products and versions are affected?
github.com/go-chi/chi/v5 (Go) <= 5.2.1, SEMVER:introduced=0,fixed=5.2.2, SEMVER:introduced=5.2.1,fixed=5.2.2.
Is there a fix for CVE-2025-71405?
Yes. github.com/go-chi/chi/v5 (Go): upgrade to 5.2.2 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2025-71405?
Check whether you run github.com/go-chi/chi/v5 (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • github.com/go-chi/chi/v5 (Go): upgrade to 5.2.2 or later
    go get github.com/go-chi/chi/v5@v5.2.2

Affected products

  • github.com/go-chi/chi/v5 (Go) <= 5.2.1, SEMVER:introduced=0,fixed=5.2.2, SEMVER:introduced=5.2.1,fixed=5.2.2

Identifiers

  • CVE-2025-71405
  • GHSA-vrw8-fxc6-2r93
  • GO-2025-3770

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.