CVE-2026-52846: Caddy is an extensible server platform that uses TLS by default.
Medium CVSS 4.2
- CVE id
- CVE-2026-52846
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| Caddy Runtimes and servers |
< 2.11.4 | 2.11.4 |
How to fix it
Upgrade Caddy to 2.11.4 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. Prior to 2.11.4, Caddy’s stripHTML template function cannot reliably remove all HTML tags from input strings. Certain malformed HTML, such as <<>img src=x onerror=alert()>, can bypass the tag-stripping logic, potentially leaving dangerous content in the output if it is later rendered as HTML. This may allow client-side XSS in cases where untrusted strings are rendered unsafely. This vulnerability is fixed in 2.11.4.
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.