Improper Encoding or Escaping of Output in Caddy - CVE-2026-27585
Published: April 27, 2026
Caddy
Detailed vulnerability description
The vulnerability allows a remote attacker to bypass path-related security protections.
The vulnerability exists due to improper sanitization of glob characters in the file matcher when expanding request paths into glob patterns for the try_files directive. A remote attacker can send a specially crafted request path containing backslashes to bypass path-related security protections.
It affects configurations where try_files is used with path-based filtering or upstream access restrictions, and directive ordering can influence whether the protection is bypassed.