MEDIUM6.5
GO-2026-4535
Improper sanitization of glob characters in github.com/caddyserver/caddy/v2
Quick fix
GO-2026-4535 — github.com/caddyserver/caddy/v2: upgrade to the fixed version with the command below.
go get github.com/caddyserver/caddy/v2@v2.11.1Details
Improper sanitization of glob characters in github.com/caddyserver/caddy/v2
Are you affected?
Enter the version of the package you're using.
Affected packages
Go/github.com/caddyserver/caddy/v2
Introduced in:
0Fixed in: 2.11.1Fix
go get github.com/caddyserver/caddy/v2@v2.11.1References
- https://github.com/caddyserver/caddy/security/advisories/GHSA-4xrr-hq4w-6vf4[ADVISORY]
- https://caddyserver.com/docs/caddyfile/directives#directive-order[WEB]
- https://github.com/caddyserver/caddy/blob/68d50020eef0d4c3398b878f17c8092ca5b58ca0/modules/caddyhttp/fileserver/matcher.go#L361[WEB]
- https://github.com/caddyserver/caddy/blob/68d50020eef0d4c3398b878f17c8092ca5b58ca0/modules/caddyhttp/fileserver/matcher.go#L398[WEB]
- https://github.com/caddyserver/caddy/releases/tag/v2.11.1[WEB]