---
id: GHSA-xcvf-46f4-xwxf
title: >-
  Duplicate Advisory: chi Allows Host Header Injection which Leads to Open
  Redirect in RedirectSlashes
summary: >-
  Duplicate Advisory: chi Allows Host Header Injection which Leads to Open
  Redirect in RedirectSlashes
severity: medium
cwe:
  - CWE-601
vendor: go-chi
product: github.com/go-chi/chi
ecosystem: go
affected:
  - github.com/go-chi/chi <= 5.2.1
published: '2026-08-14'
updated: '2026-10-02'
sourceUpdated: '2026-10-02T23:17:36Z'
source: GHSA
sourceUrl: 'https://github.com/advisories/GHSA-xcvf-46f4-xwxf'
references:
  - url: 'https://github.com/go-chi/chi/security/advisories/GHSA-vrw8-fxc6-2r93'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2025-71405'
  - url: >-
      https://www.vulncheck.com/advisories/go-chi-chi-before-open-redirect-via-redirectslashes
  - url: 'https://github.com/advisories/GHSA-xcvf-46f4-xwxf'
tags:
  - ghsa
  - go
ingestedAt: '2026-10-02T23:34:57.389Z'
---

## Overview

## Duplicate Advisory

This advisory has been withdrawn because it is a duplicate of GHSA-vrw8-fxc6-2r93. This link is maintained to preserve external references.

## Original 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 packages

- `github.com/go-chi/chi <= 5.2.1`

## Remediation

Refer to the advisory for the patched release.
