CVE-2026-52846
MEDIUM 4.2CVSS 3.1Caddy: stripHTML template function bypass
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.
- Published
- 23 Jun 2026
- Last modified
- 24 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-116
- Also known as
- GHSA-vcc4-2c75-vc9vGO-2026-5660
- Sources
- NVDJSONOSV GHSA-vcc4-2c75-vc9vJSONOSV GO-2026-5660JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 4.2 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.2 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | caddyserver | caddycpe:2.3:a:caddyserver:caddy:*:*:*:*:*:*:*:* |
< 2.11.4 | 2.11.4 |
| OSV | Go | github.com/caddyserver/caddy/v2 | < 2.11.4 | 2.11.4 |
| OSV | Go | github.com/caddyserver/caddy | <= 1.0.5 |
References
- https://github.com/caddyserver/caddy/security/advisories/GHSA-vcc4-2c75-vc9v · Exploit, Third Party Advisory, WEB, ADVISORY
- https://github.com/caddyserver/caddy · PACKAGE
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 23 Jun 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 24 Jul 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 16 Jun 2026)