# CVE-2026-52846: Caddy: stripHTML template function bypass

- Priority: **Routine**
- Reason: Not severe (CVSS 4.2, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-06-23 · Modified: 2026-06-25
- Aliases: UBUNTU-CVE-2026-52846, DEBIAN-CVE-2026-52846, GHSA-vcc4-2c75-vc9v, GO-2026-5660
- Record: https://cvemate.com/vulnerability/CVE-2026-52846 · JSON: https://cvemate.com/vulnerability/CVE-2026-52846/json

## 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.
```

## Signals

- CVSS: 4.2 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N
- EPSS: 0.189%, percentile 8.868%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- caddyserver caddy: \< 2.11.4
- debian caddy (Debian): All versions (No fix recorded) \| \< 2.6.2-5+deb12u1 \| \< 2.6.2-12+deb13u1 \| \< 2.11.4-1
- ubuntu caddy (Ubuntu): All versions (No fix recorded) \| \< 2.6.2-6ubuntu0.24.04.3+esm3 \| \< 2.6.2-14ubuntu0.26.04.1~esm2
- github.com/caddyserver caddy (Go): ≤ 1.0.5
- github.com/caddyserver/caddy v2 (Go): \< 2.11.4

## References

- <https://github.com/caddyserver/caddy/security/advisories/GHSA-vcc4-2c75-vc9v>
- <https://ubuntu.com/security/CVE-2026-52846>
- <https://www.cve.org/CVERecord?id=CVE-2026-52846>
- <https://security-tracker.debian.org/tracker/CVE-2026-52846>
- <https://github.com/caddyserver/caddy>
- <https://ubuntu.com/security/notices/USN-9260-1>

---

Data as of 2026-12-05T09:45:25.356Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
