CVE-2026-52846

Medium

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.

SeverityMedium
CVSS4.2
Exploit probability—
ProductCaddy
PublishedJun 23, 2026
First seenJun 23, 2026
Weakness typeCWE-116CWE-116

How to fix

Update
  • caddyserver caddy2.11.4 or later
  • github.com/caddyserver/caddy/v22.11.4 or later

Affected products

ProductAffected versionsFixed in
caddyserver caddyv < 2.11.42.11.4
github.com/caddyserver/caddy/v2Gov < 2.11.42.11.4
github.com/caddyserver/caddyGov ≤ 1.0.5—

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2026-52846 · Caddy · Dark Radar