{"id":"GO-2023-1567","summary":"Open redirect in github.com/caddyserver/caddy/v2","details":"Due to improper request sanitization, a crafted URL can cause the static file handler to redirect to an attacker chosen URL, allowing for open redirect attacks.","aliases":["CVE-2022-28923","GHSA-qpm3-vr34-h8w8"],"modified":"2026-03-17T04:30:27.870557Z","published":"2023-02-16T18:37:09Z","related":["CGA-q9q7-j2hp-96g2"],"database_specific":{"review_status":"REVIEWED","url":"https://pkg.go.dev/vuln/GO-2023-1567"},"references":[{"type":"WEB","url":"https://lednerb.de/en/publications/responsible-disclosure/caddy-open-redirect-vulnerability/"},{"type":"FIX","url":"https://github.com/caddyserver/caddy/commit/78b5356f2b1945a90de1ef7f2c7669d82098edbd"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-qpm3-vr34-h8w8"}],"affected":[{"package":{"name":"github.com/caddyserver/caddy/v2","ecosystem":"Go","purl":"pkg:golang/github.com/caddyserver/caddy/v2"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.5.0-beta.1"}]}],"ecosystem_specific":{"imports":[{"symbols":["SanitizedPathJoin"],"path":"github.com/caddyserver/caddy/v2/modules/caddyhttp"},{"symbols":["FileServer.Provision","FileServer.ServeHTTP","FileServer.directoryListing","MatchFile.Match","MatchFile.UnmarshalCaddyfile","MatchFile.Validate","fileInfo.HumanModTime","fileInfo.HumanSize","statusOverrideResponseWriter.WriteHeader"],"path":"github.com/caddyserver/caddy/v2/modules/caddyhttp/fileserver"}]},"database_specific":{"source":"https://vuln.go.dev/ID/GO-2023-1567.json"}}],"schema_version":"1.7.5","credits":[{"name":"Mayank Mukhi (@Hunt2behunter)"}]}