CVE-2026-52846CWE-116

Caddy: stripHTML template function bypass

Medium · published June 23, 2026

CVSS v3.1
4.2
EPSS
0%
Percentile
15.2
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
4.2 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N
CVSS v4.0
Not supplied
EPSS
0.00248 · 15.2th percentile
Weakness
CWE-116 · Improper Encoding or Escaping of Output
Published
2026-06-23T17:47Z
EPSS history
Timeline
  • 23 JUN 17:47Z
    Caddy: stripHTML template function bypass
    cvelistv5