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

- Severity: Medium 4.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 8% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-16T21:28:55.000Z
- Modified: 2026-07-24T19:11:47.063Z
- Also known as: GHSA-vcc4-2c75-vc9v, GO-2026-5660
- Weaknesses: CWE-116
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- caddyserver caddy: < 2.11.4; before 2.11.4
- github.com/caddyserver/caddy/v2 (Go): before 2.11.4
- github.com/caddyserver/caddy (Go): up to 1.0.5

## Every score

- GitHub_M: CVSS:3.1 4.2 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.1 4.2 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N`

## References

- <https://github.com/caddyserver/caddy/security/advisories/GHSA-vcc4-2c75-vc9v> (exploit, advisory, third-party-advisory, web)
- <https://github.com/caddyserver/caddy> (package)

## Sources

- CVE List: [CVE-2026-52846](https://www.cve.org/CVERecord?id=CVE-2026-52846), CVE Terms of Use, modified 2026-06-25
- GitHub Advisory Database: [GHSA-vcc4-2c75-vc9v](https://github.com/advisories/GHSA-vcc4-2c75-vc9v), CC-BY-4.0, modified 2026-07-24
- Go Vulnerability Database: [GO-2026-5660](https://pkg.go.dev/vuln/GO-2026-5660), CC-BY-4.0, modified 2026-07-24
- NVD: [CVE-2026-52846](https://nvd.nist.gov/vuln/detail/CVE-2026-52846), Public domain, modified 2026-06-29

---

Page: https://cve.day/CVE-2026-52846 · Whole record: https://cve.day/CVE-2026-52846.json · Rebuilt by cve.day 2026-11-25T22:59:25.503Z
