Header Injection Affecting github.com/caddyserver/caddy/v2/modules/caddyhttp package, versions >=2.7.5 <2.11.2


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.4% (32nd 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-GOLANG-GITHUBCOMCADDYSERVERCADDYV2MODULESCADDYHTTP-15440557
  • published10 Mar 2026
  • disclosed6 Mar 2026
  • creditSam.An

Introduced: 6 Mar 2026

CVE-2026-30852  (opens in a new tab)
CWE-74  (opens in a new tab)

How to fix?

Upgrade github.com/caddyserver/caddy/v2/modules/caddyhttp to version 2.11.2 or higher.

Overview

Affected versions of this package are vulnerable to Header Injection in the vars_regexp matcher. An attacker can access sensitive environment variables, file contents, or system information by injecting specially crafted placeholders such as {env.*} or {file.*} into HTTP request headers, which are then expanded and leaked in server responses.

CVSS Base Scores

version 4.0
version 3.1