Skip to main content
← All vulnerabilities
CVE-2026-52846GHSA-VCC4-2C75-VC9VGO-2026-5660

Caddy: stripHTML template function bypass

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.11.4
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • caddyserver caddy

    fixed in 2.11.4

  • github.com/caddyserver/caddy/v2Go

    fixed in 2.11.4

  • github.com/caddyserver/caddyGo

    through 1.0.5

References 1

GitHub · caddyserver/caddy