CVE-2026-52846: Caddy: stripHTML template function bypass
Vulnerability summary
CVE-2026-52846 is a medium (CVSS 4.2) Improper Encoding or Escaping of Output vulnerability in caddyserver caddy. EPSS estimates a 0.19% chance of exploitation in the next 30 days, higher than 8.8% of scored vulnerabilities. 1 public exploit is recorded.
Not severe (CVSS 4.2, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 6 · Related 4Timeline
- 23-06-2026PublishedVulnerability first disclosed.
- 25-06-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 5 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated4.2MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N
- OSV · DebianEcosystem advisory · calculated4.2MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N
- OSV · GoEcosystem advisory · calculated4.2MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N
- NVDNIST4.2MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N
EPSS trend
Probability
0.19%
Chance of exploitation in the next 30 days
Percentile
9%
Versus all other CVEs
30-day change
Decrease -0.06 pp
From 0.25% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundCaddy
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Caddyserver1 product
- caddy< 2.11.4
Debian1 product
- caddyAll versions (No fix recorded) | < 2.6.2-5+deb12u1 | < 2.6.2-12+deb13u1 | < 2.11.4-1
Github.com/caddyserver1 product
- caddy≤ 1.0.5
Github.com/caddyserver/caddy1 product
- v2< 2.11.4
Ubuntu1 product
- caddyAll versions (No fix recorded) | < 2.6.2-6ubuntu0.24.04.3+esm3 | < 2.6.2-14ubuntu0.26.04.1~esm2
5 vendors · 5 products
References
6 links- github.com/caddyserver/caddy/security/advisories/GHSA-vcc4-2c75-vc9vX Refsource CONFIRMWEBAdvisoryExploitThird Party Advisory
- github.com/caddyserver/caddyPACKAGE