CVE-2026-52846 Caddy: stripHTML template function bypass
MediumCVSS 4.2
EPSS 0.25%
- Published
- Updated
- Exploit status
- No public exploit known
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.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| caddyserver github.com/caddyserver/caddy | = < 2.11.4 | No fix listed |
| caddyserver github.com/caddyserver/caddy(Go) | < 2.11.4 | 2.11.4 |
| caddyserver github.com/caddyserver/caddy(Go) | <= 1.0.5 | No fix listed |
| caddyserver github.com/caddyserver/caddy(Go) | <= 2.11.3 | No fix listed |
| debian/caddy(Debian:12) | < 2.6.2-5+deb12u1 | 2.6.2-5+deb12u1 |
| debian/caddy(Debian:12) | = 2.6.2-5 | No fix listed |
| debian/caddy(Debian:13) | < 2.6.2-12+deb13u1 | 2.6.2-12+deb13u1 |
| debian/caddy(Debian:13) | = 2.6.2-12 | No fix listed |
| debian/caddy(Debian:14) | < 2.11.4-1 | 2.11.4-1 |
| debian/caddy(Debian:14) | = 2.11.2-1 | No fix listed |
| debian/caddy(Debian:14) | = 2.11.2-1~bpo13+1 | No fix listed |
| debian/caddy(Debian:14) | = 2.6.2-12 | No fix listed |
| debian/caddy(Debian:14) | = 2.6.2-13 | No fix listed |
| debian/caddy(Debian:14) | = 2.6.2-14 | No fix listed |
| ubuntu/caddy(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/caddy(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/caddy(Ubuntu:26.10) | All versions | No fix listed |
| caddyserver github.com/caddyserver/caddy | < 2.11.4 | 2.11.4 |
References
- https://github.com/caddyserver/caddy/security/advisories/GHSA-vcc4-2c75-vc9v exploit third-party-advisory vendor-advisory
- github.com product
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2491908 issue-tracking
- www.cve.org
- nvd.nist.gov
- github.com
- Debian Security Tracker CVE-2026-52846 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- bugs.debian.org issue-tracking