CVE-2026-30852: Caddy is an extensible server platform that uses TLS by default.
High CVSS 7.5
- CVE id
- CVE-2026-30852
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| Caddy Runtimes and servers |
>= 2.7.5, < 2.11.2 | 2.11.2 |
How to fix it
Upgrade Caddy to 2.11.2 or later.
caddy version
- Upgrade Caddy (the caddy image tag or binary) to the patched release.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
Caddy is an extensible server platform that uses TLS by default. From version 2.7.5 to before version 2.11.2, the varsregexp matcher in vars.go:337 double-expands user-controlled input through the Caddy replacer. When varsregexp matches against a placeholder like {http.request.header.X-Input}, the header value gets resolved once (expected), then passed through repl.ReplaceAll() again (the bug). This means an attacker can put {env.DATABASE_URL} or {file./etc/passwd} in a request header and the server will evaluate it, leaking environment variables, file contents, and system info. This issue has been patched in version 2.11.2.
References
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.