{"id":"CVE-2026-52846","published":"2026-06-23T17:47:30Z","modified":"2026-06-25T12:42:16Z","title":"Caddy: stripHTML template function bypass","vendor":"caddyserver","product":"caddy","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.2,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00248,"percentile":0.16437,"provenance":"source"},"cwes":[{"id":"CWE-116","name":"Improper Encoding or Escaping of Output"}],"references":[{"url":"https://github.com/caddyserver/caddy/security/advisories/GHSA-vcc4-2c75-vc9v","tags":["x_refsource_CONFIRM"]}],"priority":{"score":6.2,"factors":[{"name":"EPSS percentile","points":3.29},{"name":"CVSS severity","points":2.94}]},"vendorSlug":"caddyserver","affectedVersions":[{"vendor":"caddyserver","product":"caddy","versions":["< 2.11.4"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-06-25T12:42:12.083385Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/caddyserver/caddy/v2","vulnerableRanges":["<2.11.4"],"patched":["2.11.4"],"from":["GHSA-vcc4-2c75-vc9v","GO-2026-5660"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/caddyserver/caddy","vulnerableRanges":["<=1.0.5"],"patched":[],"from":["GHSA-vcc4-2c75-vc9v"],"provenance":"source"}],"summary":{"text":"A flaw in the stripHTML template function of Caddy, the extensible TLS-by-default server platform from caddyserver, fails to reliably remove all HTML tags from input strings before version 2.11.4, so malformed markup can survive stripping. An attacker who can supply untrusted input, with a victim interacting with the rendered page and no authentication required, could leave executable script in the output and achieve client-side cross-site scripting where that output is later rendered as HTML unsafely.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:18:49Z"},"euvd":{"id":"EUVD-2026-38556","exploited":false,"provenance":"source"}}