Improper Encoding or Escaping of Output Affecting caddy package, versions <2.6.2-12+deb13u1


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.19% (9th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ECHOLATEST-CADDY-18601866
  • published10 Aug 2026
  • disclosed23 Jun 2026

Introduced: 23 Jun 2026

CVE-2026-52846  (opens in a new tab)
CWE-116  (opens in a new tab)

How to fix?

Upgrade Echo:latest caddy to version 2.6.2-12+deb13u1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream caddy package and not the caddy package as distributed by Echo. See How to fix? for Echo:latest relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1