Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-30851: CWE-287: Improper Authentication in caddyserver caddy

0
High
VulnerabilityCVE-2026-30851cvecve-2026-30851cwe-287cwe-345
Published: Sat Mar 07 2026 (03/07/2026, 16:28:37 UTC)
Source: CVE Database V5
Vendor/Project: caddyserver
Product: caddy

Description

Caddy is an extensible server platform that uses TLS by default. From version 2.10.0 to before version 2.11.2, forward_auth copy_headers does not strip client-supplied headers, allowing identity injection and privilege escalation. This issue has been patched in version 2.11.2.

AI-Powered Analysis

AILast updated: 03/07/2026, 17:01:04 UTC

Technical Analysis

CVE-2026-30851 affects the Caddy web server, an extensible platform that defaults to TLS for secure communications. The vulnerability exists in versions from 2.10.0 up to but excluding 2.11.2 within the forward_auth module, specifically in the copy_headers functionality. This feature is intended to forward authentication headers from an upstream identity provider to downstream services. However, the implementation fails to properly sanitize or strip headers supplied by clients before forwarding them. As a result, an attacker can craft requests with malicious headers that impersonate legitimate user identities, effectively injecting unauthorized identity information. This improper authentication (CWE-287) combined with insufficient validation of client-supplied data (CWE-345) allows privilege escalation, potentially granting attackers access to protected resources or administrative functions. The vulnerability is remotely exploitable over the network with low complexity and does not require user interaction. Although no known exploits are currently reported in the wild, the high CVSS score of 8.1 reflects the significant risk posed by this flaw. The issue was addressed and patched in Caddy version 2.11.2 by ensuring that client-supplied headers are properly stripped before forwarding, restoring the integrity of authentication mechanisms.

Potential Impact

The vulnerability can lead to unauthorized access to sensitive information and administrative capabilities by allowing attackers to impersonate authenticated users. This compromises confidentiality and integrity of systems relying on Caddy's forward_auth module for authentication. Organizations using affected versions may face data breaches, unauthorized configuration changes, and potential lateral movement within their networks. Since Caddy is often used as a reverse proxy or web server in modern cloud-native and microservices environments, exploitation could undermine the security of multiple downstream services. The lack of availability impact means services remain operational, but attackers gain stealthy access. The ease of exploitation over the network with low privileges increases the threat level, especially in environments where Caddy servers are internet-facing or exposed to untrusted networks.

Mitigation Recommendations

The primary mitigation is to upgrade all affected Caddy server instances to version 2.11.2 or later, where the vulnerability is patched. Until upgrade is possible, organizations should disable or avoid using the forward_auth copy_headers feature to prevent header injection. Implement strict validation and sanitization of all incoming authentication headers at the network perimeter or within upstream identity providers. Employ network segmentation and access controls to limit exposure of Caddy servers to untrusted clients. Monitor logs for suspicious authentication header anomalies or unexpected privilege escalations. Conduct thorough security reviews of authentication flows involving Caddy to ensure no other header manipulation vulnerabilities exist. Consider deploying Web Application Firewalls (WAFs) with custom rules to detect and block malformed or unauthorized authentication headers targeting Caddy servers.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-03-05T21:27:35.341Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 69ac564fc48b3f10ffb12c1e

Added to database: 3/7/2026, 4:46:07 PM

Last enriched: 3/7/2026, 5:01:04 PM

Last updated: 3/8/2026, 3:31:46 AM

Views: 8

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses