CVE-2026-52846 json
Caddy: stripHTML template function bypass
published 2026-06-16 4 mo ago modified 2026-07-24 3 mo ago also GHSA-vcc4-2c75-vc9v , GO-2026-5660 , EUVD-2026-38556
- cvss
- 4.2
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 16%
- public exploits
- 0
- none known
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.
Patch / fix
- go github.com/caddyserver/caddy/v2 2.11.4
- caddyserver caddy 2.11.4
- caddy Debian 12 2.6.2-5+deb12u1
- caddy Debian 13 2.6.2-12+deb13u1
- caddy Debian 14 2.11.4-1
debian advisories DEBIAN-CVE-2026-52846
- govulncheck-vulndb SLES 16.0, SLES for SAP applications 16.0 0.0.20260727T201416-160000.1.1
suse advisories SUSE-SU-2026:23216-1SUSE-SU-2026:23227-1
- govulncheck-vulndb openSUSE Leap 16.0 0.0.20260727T201416-160000.1.1
opensuse advisories openSUSE-SU-2026:21551-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-52846 updated cvss 4.2
github.com/caddyserver/caddy: Caddy: Client-side Cross-Site Scripting (XSS) due to incomplete HTML tag stripping
-
Red Hat Hardened Images caddynot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 4 mo ago
Exploit prediction
0.25% chance of exploitation in the next 30 days, higher than 16% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/caddyserver/caddy/security/advisories/GHSA-vcc4-2c75-vc9v referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 4.2 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N |
| GitHub | 3.1 | 4.2 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/caddyserver/caddy/v2 | <2.11.4 |
2.11.4 |
| go | github.com/caddyserver/caddy | <=1.0.5 |
no fix listed |
Affected products
- caddyserver caddy
Classification
- Weakness
-
- CWE-116 Improper Encoding or Escaping of Output
References
-
github.com
/caddyserver/caddy/security/advisories/GHSA-vcc4-2c75-vc9v
exploit, web, third-party-advisory, advisory
-
github.com
/caddyserver/caddy
package
Sources
- CVE List CVE-2026-52846
- GitHub Advisory GHSA-vcc4-2c75-vc9v
- NVD CVE-2026-52846
- OSV GO-2026-5660
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.