Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/caddyserver/caddy/v2/modules/caddyhttp/reverseproxy
  4. ›
  5. CVE-2026-30851

CVE-2026-30851: Caddy forward_auth copy_headers Does Not Strip Client-Supplied Headers, Allowing Identity Injection and Privilege Escalation

March 6, 2026 (updated March 9, 2026)

Caddy’s forward_auth directive with copy_headers generates conditional header-set operations that only fire when the upstream auth service includes the named header in its response. No delete or remove operation is generated for the original client-supplied request header with the same name.

When an auth service returns 200 OK without one of the configured copy_headers headers, the client-supplied header passes through unchanged to the backend. Any requester holding a valid authentication token can inject arbitrary values for trusted identity headers, resulting in privilege escalation.

This is a regression introduced by PR #6608 in November 2024. All stable releases from v2.10.0 onward are affected.


References

  • github.com/advisories/GHSA-7r4p-vjf4-gxv4
  • github.com/caddyserver/caddy
  • github.com/caddyserver/caddy/issues/6610
  • github.com/caddyserver/caddy/pull/6608
  • github.com/caddyserver/caddy/pull/7545
  • github.com/caddyserver/caddy/security/advisories/GHSA-7r4p-vjf4-gxv4
  • nvd.nist.gov/vuln/detail/CVE-2026-30851

Code Behaviors & Features

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

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 2.10.0 before 2.11.2

Fixed versions

  • 2.11.2

Solution

Upgrade to version 2.11.2 or above.

Impact 8.1 HIGH

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

Learn more about CVSS

Weakness

  • CWE-287: Improper Authentication
  • CWE-345: Insufficient Verification of Data Authenticity

Source file

go/github.com/caddyserver/caddy/v2/modules/caddyhttp/reverseproxy/CVE-2026-30851.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:17:03 +0000.