---
id: CVE-2025-71405
title: >-
  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
summary: >-
  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 ho…
severity: medium
cwe:
  - CWE-601
vendor: go-chi
product: github.com/go-chi/chi/v5
affected:
  - github.com/go-chi/chi/v5 < 5.2.2
patched:
  - github.com/go-chi/chi/v5 5.2.2
published: '2026-08-14'
updated: '2026-09-24'
sourceUpdated: '2026-09-24T20:06:30.133'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-71405'
references:
  - url: 'https://github.com/go-chi/chi/security/advisories/GHSA-vrw8-fxc6-2r93'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/go-chi-chi-before-open-redirect-via-redirectslashes
    label: disclosure@vulncheck.com
  - url: 'https://github.com/go-chi/chi/security/advisories/GHSA-vrw8-fxc6-2r93'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: >-
      https://github.com/go-chi/chi/commit/1be7ad938cc9c5b39a9dea01a5c518848928ab65
  - url: 'https://github.com/go-chi/chi'
tags:
  - nvd
  - osv
  - go
epss: 0.00421
epssPercentile: 0.33743
aliases:
  - GHSA-vrw8-fxc6-2r93
  - GO-2025-3770
ecosystem: go
ingestedAt: '2026-08-15T19:19:53.859Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2025-71405)

Affected packages:

- `github.com/go-chi/chi/v5 < 5.2.2`

Patched in:

- `github.com/go-chi/chi/v5 5.2.2`

Source: https://osv.dev/vulnerability/GHSA-vrw8-fxc6-2r93
