PT-2026-50162 · Caddy · Caddy

·

CVE-2026-52846

·

Published

2026-06-16

·

Updated

2026-08-10

CVSS v3.1

4.2

Medium

VectorAV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N
Name of the Vulnerable Software and Affected Versions Caddy versions prior to 2.11.4
Description Caddy is an extensible server platform that uses TLS by default. The stripHTML template function, specifically within the funcStripHTML() function, cannot reliably remove all HTML tags from input strings. Certain malformed HTML can bypass the tag-stripping logic, potentially leaving dangerous content in the output. If this output is later rendered as HTML, it may allow client-side Cross-Site Scripting (XSS), where an attacker can execute arbitrary JavaScript in the user's browser.
Recommendations Update Caddy to version 2.11.4. As a temporary workaround, restrict the use of the stripHTML function for processing untrusted strings until the update is applied.

Exploit

Fix

DoS

Improper Encoding or Escaping of Output

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-52846
GHSA-VCC4-2C75-VC9V
GO-2026-5660
OPENSUSE-SU-2026:21551-1
SUSE-SU-2026:23216-1
SUSE-SU-2026:23227-1

Affected Products

Caddy