Live threats

All CVEs / Caddyserver

CVE-2026-52846Caddyserver Caddy

Medium 4.2 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Caddy.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
caddyservercaddy< 2.11.4

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.