cve.bz

CVE-2026-52846

4.2 mediumEPSS 0.2%

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.

Severity

CVSS 3.1

4.2 medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N
EPSS
0.2% chance of exploitation in the next 30 days; higher than 16% of CVEs (scores of 2026-10-31)
CWE
CWE-116
Published
Modified
Record from
the NVD, synced

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-vcc4-2c75-vc9vGogithub.com/caddyserver/caddy/v2<2.11.42.11.4
GHSA-vcc4-2c75-vc9vGogithub.com/caddyserver/caddy<=1.0.5no fix published
GO-2026-5660Gogithub.com/caddyserver/caddy/v2<2.11.42.11.4

References

Check your stackJSON