All vulnerabilities

Servers and applications

GHSA-6365-7ppr-5r92

Connection created for the wrong upstream for forward_auth + reverse_proxy

Severity
Medium
Published
10 Jul 2026
Last changed
10 Jul 2026
Added to UpHeron
3 Nov 2026
Fixed in
2.11.5
Sources
Project advisories (GitHub)

Description

We have found an issue where Caddy is using the wrong connection when a handler has both forward_auth and reverse_proxy. Occasionally users were mentioning requests returning with 404 for not apparent reason. Unfortunately enabling detailed Caddy logs did not help as these were not correct, insisting their upstreams were returning 404 for endpoints which are known to exist. Only tcpdump showed the real issue; the request meant for the forward_auth endpoint was being sent on the wrong connection which did not have the expected endpoints and thus replied with 404.

For our setup we have downgraded to 2.10.2 which is not affected.

Commit 8aca108d2c9d9e9ff3a39ff00684ea58df1338f6 seems to be the cause as the parent 156ce99d3a46be8cefe8502b2c30b757e4deb79f does not exhibit this behavior.

This seems pretty severe, it randomly breaks the forward_auth behavior depending on timing. You could pass a foward_auth check unexpectedly if the raced connection happens to have the same endpoints and…

From caddyserver/caddy's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
CaddyServers and applications · github:caddyserver/caddy
  • Every version before 2.11.5

About Caddy

open source web server

From Wikidata, CC0 1.0.
Share of websites with a known web server
1.3%W3Techs, Nov 2026
Docker Hub pulls
770,668,265Docker Hub, 15 Nov 2026
GitHub stars
79,049GitHub, 15 Nov 2026
Forks
5,264GitHub, 15 Nov 2026
Latest release
v2.11.9GitHub, 15 Nov 2026
Released
5 Nov 2026GitHub
License
Apache Software License 2.0Wikidata
Written in
GoWikidata
First published on GitHub
13 Jan 2015GitHub

Release lines

ReleaseLatestSecurity fixes
22.11.9Yes
11.0.5Ended 1 Jul 2020

From endoflife.date.

References