CVSS 3.1
4.2 mediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:NMedium (4.2) in caddyserver caddy. EPSS 0.2% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/caddyserver/caddy/v2 2.11.4.
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:Ngithub.com/caddyserver/caddy/v2 (Go): fixed in 2.11.4Explain CVE-2026-52846 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-52846?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-52846?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-52846 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the NVD's CPE matches.
| Product | Affected |
|---|---|
| caddyserver:caddy | before 2.11.4 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-vcc4-2c75-vc9v | Go | github.com/caddyserver/caddy/v2 | <2.11.4 | 2.11.4 |
| GHSA-vcc4-2c75-vc9v | Go | github.com/caddyserver/caddy | <=1.0.5 | no fix published |
| GO-2026-5660 | Go | github.com/caddyserver/caddy/v2 | <2.11.4 | 2.11.4 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 12 | caddy | 2.6.2-5+deb12u1 | DEBIAN-CVE-2026-52846 DLA-4857-1 |
| Debian | 13 | caddy | 2.6.2-12+deb13u1 | DEBIAN-CVE-2026-52846 DSA-6429-1 |
| Debian | 14 | caddy | 2.11.4-1 | DEBIAN-CVE-2026-52846 |
| Ubuntu | 25.10, 26.10, Pro:24.04:LTS and 1 more | caddy | no fix listed | UBUNTU-CVE-2026-52846 |
| SUSE | Linux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0 | govulncheck-vulndb | 0.0.20260727T201416-160000.1.1 | SUSE-SU-2026:23216-1 SUSE-SU-2026:23227-1 |
| openSUSE | Leap 16.0 | govulncheck-vulndb | 0.0.20260727T201416-160000.1.1 | openSUSE-SU-2026:21551-1 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.
Red Hat rates this Moderate.
Caddy's stripHTML template function fails to reliably strip malformed HTML, which can lead to client-side XSS if untrusted input is rendered through Caddy's `templates` directive. Exploitation requires the `templates` directive to be enabled in a Caddyfile with a template that calls stripHTML on untrusted input; Caddy deployments that only use `file_server` for static asset serving never reach the vulnerable function. All investigated Red Hat Insights/console.redhat.com frontend services build and deploy through a shared Caddyfile-generation pipeline (insights-frontend-builder-common) or an equivalent static-file-only configuration that does not enable `templates`, and are therefore not affected. The general-purpose `caddy` package shipped by Fedora/EPEL may be configured with `templates` by downstream users and is marked affected.
Users who have enabled Caddy's `templates` directive with untrusted input passed through the stripHTML function should upgrade to Caddy 2.11.4 or later, or disable the `templates` directive if not required.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Hardened Images | caddy | Not affected |
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-52846.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.