🔐 CVE Alert

CVE-2026-52846

MEDIUM 4.2

Caddy: stripHTML template function bypass

CVSS Score
4.2
EPSS Score
0.0%
EPSS Percentile
0th

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.

CWE CWE-116
Vendor caddyserver
Product caddy
Published Jun 23, 2026
Stay Ahead of the Next One

Get instant alerts for caddyserver caddy

Be the first to know when new medium vulnerabilities affecting caddyserver caddy are published — delivered to Slack, Telegram or Discord.

Get Free Alerts → Free · No credit card · 60 sec setup

CVSS v3 Breakdown

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N
Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None

Affected Versions

caddyserver / caddy
< 2.11.4

References

NVD ↗ CVE.org ↗ EPSS Data ↗
github.com: https://github.com/caddyserver/caddy/security/advisories/GHSA-vcc4-2c75-vc9v