CVE-2026-52846
Description
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.
How to fix
- caddyserver caddy2.11.4 or later
- github.com/caddyserver/caddy/v22.11.4 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| caddyserver caddy | v < 2.11.4 | 2.11.4 |
| github.com/caddyserver/caddy/v2Go | v < 2.11.4 | 2.11.4 |
| github.com/caddyserver/caddyGo | v ≤ 1.0.5 | — |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.