Vulnerability
CVE-2026-27585
Caddy is an extensible server platform that uses TLS by default. Prior to version 2.11.1, the path sanitization routine in file matcher doesn't sanitize backslashes which can lead to bypassing path related security protections. It affects users with specific Caddy and environment configurations. Version 2.11.1 fixes the issue.
12 advisories report this vulnerability, across 6 ecosystems.
Advisories in Go
-
GHSA-4xrr-hq4w-6vf4
Caddy: Improper sanitization of glob characters in file matcher may lead to bypassing security protections
-
GO-2026-4535
Improper sanitization of glob characters in github.com/caddyserver/caddy/v2
References
- https://github.com/caddyserver/caddy/blob/68d50020eef0d4c3398b878f17c8092ca5b58ca0/modules/caddyhttp/fileserver/matcher.go#L361
- https://github.com/caddyserver/caddy/blob/68d50020eef0d4c3398b878f17c8092ca5b58ca0/modules/caddyhttp/fileserver/matcher.go#L398
- https://github.com/caddyserver/caddy/releases/tag/v2.11.1
- https://github.com/caddyserver/caddy/security/advisories/GHSA-4xrr-hq4w-6vf4