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-27589: CWE-352: Cross-Site Request Forgery (CSRF) in caddyserver caddy

0
Medium
VulnerabilityCVE-2026-27589cvecve-2026-27589cwe-352
Published: Tue Feb 24 2026 (02/24/2026, 16:30:52 UTC)
Source: CVE Database V5
Vendor/Project: caddyserver
Product: caddy

Description

Caddy is an extensible server platform that uses TLS by default. Prior to version 2.11.1, the local caddy admin API (default listen `127.0.0.1:2019`) exposes a state-changing `POST /load` endpoint that replaces the entire running configuration. When origin enforcement is not enabled (`enforce_origin` not configured), the admin endpoint accepts cross-origin requests (e.g., from attacker-controlled web content in a victim browser) and applies an attacker-supplied JSON config. This can change the admin listener settings and alter HTTP server behavior without user intent. Version 2.11.1 contains a fix for the issue.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 03/04/2026, 18:50:17 UTC

Technical Analysis

CVE-2026-27589 is a CSRF vulnerability affecting the Caddy server platform, specifically its local administrative API that listens by default on 127.0.0.1:2019. The vulnerability exists in versions prior to 2.11.1 where the POST /load endpoint allows a client to replace the entire running configuration of the server. This endpoint is state-changing and intended for local administrative use. However, if the 'enforce_origin' configuration is not enabled, the admin API does not restrict cross-origin requests, allowing attacker-controlled web content loaded in a victim's browser to send malicious JSON configuration payloads. This can lead to unauthorized changes in the server’s configuration, including altering admin listener settings and HTTP server behavior, potentially compromising the server’s integrity and availability. The vulnerability does not require authentication or user interaction, making it easier to exploit if the victim visits a malicious website. The fix introduced in version 2.11.1 enforces origin checks to prevent cross-origin requests, mitigating the risk. Although no exploits are currently known in the wild, the vulnerability presents a significant risk for exposed Caddy admin interfaces without proper origin enforcement.

Potential Impact

The impact of this vulnerability is primarily on the integrity and availability of the Caddy server. An attacker exploiting this CSRF flaw can modify the server’s configuration arbitrarily, potentially disabling security features, redirecting traffic, or causing denial of service by misconfiguring listeners or server behavior. Since the admin API controls the entire server configuration, unauthorized changes could lead to persistent compromise or service disruption. Organizations running Caddy servers with exposed or accessible admin APIs without origin enforcement are at risk of remote configuration tampering. This could affect web services, internal applications, or any infrastructure relying on Caddy for TLS termination and HTTP serving. The vulnerability’s ease of exploitation without authentication increases the risk, especially in environments where users might be tricked into visiting malicious web pages. The absence of known exploits suggests limited current active threat, but the potential impact warrants prompt remediation.

Mitigation Recommendations

To mitigate this vulnerability, organizations should upgrade Caddy to version 2.11.1 or later, which includes the fix enforcing origin checks on the admin API. If immediate upgrade is not feasible, administrators should enable the 'enforce_origin' configuration option to restrict cross-origin requests to the admin endpoint. Additionally, restricting access to the admin API interface to trusted hosts only (e.g., via firewall rules or network segmentation) can reduce exposure. Monitoring and logging admin API access can help detect suspicious configuration changes. Avoid exposing the admin API to untrusted networks or the public internet. Implementing web application firewalls (WAFs) that can detect and block CSRF attempts targeting the admin API may provide additional protection. Finally, educating users about the risks of visiting untrusted websites while logged into systems with exposed admin APIs can reduce the likelihood of exploitation.

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-02-20T17:40:28.450Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 699e0f3cbe58cf853b290cd9

Added to database: 2/24/2026, 8:51:08 PM

Last enriched: 3/4/2026, 6:50:17 PM

Last updated: 4/10/2026, 5:40:24 PM

Views: 110

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 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