CVE-2026-52846Caddyserver Caddy
Medium 4.2 No auth needed
Follow: this CVE · Caddyserver · Caddyserver Caddy We alert you by email or Slack (account required).
- Priority
- 40
- CVSS 3.1
- 4.2
- EPSS
- —
- Auth required
- No
- Published
- Jun 23, 2026
- Updated
- Jun 29, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-116
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N
What happens
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.
What to do
- Apply the vendor's security update for Caddy.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/caddyserver/caddy |
≤ 1.0.5 |
no fixed version | — |
| Go | github.com/caddyserver/caddy/v2 |
< 2.11.4 |
2.11.4 |
go get github.com/caddyserver/caddy/v2@v2.11.4 |
| Go | github.com/caddyserver/caddy/v2 |
< 2.11.4 |
2.11.4 |
go get github.com/caddyserver/caddy/v2@v2.11.4 |
Per OSV / GitHub Advisories (GHSA-vcc4-2c75-vc9v, GO-2026-5660). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| caddyserver | caddy | < 2.11.4 |
Official advisories
- Security update for govulncheck-vulndb · SUSE · openSUSE-SU-2026:21551-1 · Aug 10, 2026 Critical
- Security update for govulncheck-vulndb · SUSE · SUSE-SU-2026:23216-1 · Aug 10, 2026 Critical
- Security update for govulncheck-vulndb · SUSE · SUSE-SU-2026:23227-1 · Aug 10, 2026 Critical
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Exploit Third Party Advisory