Insufficient verification of data authenticity in Caddy - CVE-2026-30851

 

Insufficient verification of data authenticity in Caddy - CVE-2026-30851

Published: April 27, 2026


Vulnerability identifier: #VU128034
CSH Severity: Medium
CVSS v4: 8.6 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-30851
CWE-ID: CWE-345
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote user to inject trusted identity headers and escalate privileges.

The vulnerability exists due to insufficient verification of data authenticity in the forward_auth copy_headers handling in modules/caddyhttp/reverseproxy/forwardauth/caddyfile.go when processing requests for which the upstream auth service returns 200 OK without one of the configured copy_headers headers. A remote user can send a specially crafted request with forged identity headers to inject trusted identity headers and escalate privileges.

Exploitation requires a valid authentication token, and affects deployments where the auth service validates credentials without returning the configured identity headers in its response.


Affected software

Caddy

How to mitigate CVE-2026-30851

Install security update from vendor's website.

Caddy - update to 2.11.2

External References

Related Security Bulletins