Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/caddyserver/caddy
  4. ›
  5. CVE-2026-52846

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

June 16, 2026

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.


References

  • github.com/advisories/GHSA-vcc4-2c75-vc9v
  • github.com/caddyserver/caddy/security/advisories/GHSA-vcc4-2c75-vc9v
  • nvd.nist.gov/vuln/detail/CVE-2026-52846

Code Behaviors & Features

Detect and mitigate CVE-2026-52846 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 1.0.5

Solution

Unfortunately, there is no solution available yet.

Impact 4.2 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-116: Improper Encoding or Escaping of Output

Source file

go/github.com/caddyserver/caddy/CVE-2026-52846.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 23 Jun 2026 12:23:30 +0000.