CVE-2026-27589: Caddy vulnerable to cross-origin config application via local admin API /load (caddy)

Published Feb 24, 2026
·
Updated

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 (enforceorigin 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.

Other sources

commit: e0f8d9b2047af417d8faf354b675941f3dac9891 (as-of 2026-02-04) channel: GitHub security advisory (per SECURITY.md)

summary

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 (enforceorigin 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.

Severity

Medium

Justification: - The attacker can apply an arbitrary caddy config (integrity impact) by driving a victim’s local admin API. - Exploitation requires a victim running caddy with the admin API enabled and visiting an attacker-controlled page (or otherwise issuing the request from an untrusted local client).

Affected component

- caddyconfig/load.go: adminLoad.handleLoad (/load admin endpoint) - Pinned callsite: https://github.com/caddyserver/caddy/blob/e0f8d9b2047af417d8faf354b675941f3dac9891/caddyconfig/load.go#L73

Reproduction

Attachment: poc.zip (integration harness) with canonical and control runs.

bash unzip -q -o poc.zip -d poc cd poc/poc-F-CADDY-ADMIN-LOAD-001 make test

Expected output (excerpt):

[CALLSITEHIT]: adminLoad.handleLoad [PROOFMARKER]: httpcode=200 adminmoved=true responsepwned=true

Control output (excerpt):

[NCMARKER]: httpcode=403 loadblocked=true adminmoved=false responsepwned=false

Impact

An attacker can replace the running caddy configuration via the local admin API. Depending on the deployed configuration/modules, this can: - Change admin listener settings (e.g., move the admin listener to a new address) - Change HTTP server behavior (e.g., alter routes/responses)

Suggested remediation

Ensure cross-origin web content cannot trigger POST /load on the local admin API by default, for example by: - Enabling origin enforcement by default for unsafe methods, and/or - Requiring an unguessable token for /load (and other state-changing admin endpoints).

poc.zip PRDESCRIPTION.md

GitHub

Affected Software

3 affected componentsFixes available
Caddy<2.11.1
go/github.com/caddyserver/caddy/v2<2.11.1
2.11.1
caddyserver Caddy<2.11.1

Event History

Feb 24, 2026
CVE Published
via MITRE·04:30 PM
Data Sourced
via MITRE·04:30 PM
DescriptionWeakness
Data Sourced
via NVD·05:29 PM
DescriptionSeverityWeaknessAffected Software
Advisory Published
via GitHub·08:37 PM
Data Sourced
via GitHub·08:37 PM
DescriptionWeaknessAffected Software
Jan 24, 58126
Event
via FIRST·02:20 AM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-27589?

CVE-2026-27589 is considered a medium severity vulnerability due to its potential for state changes in configuration without proper origin enforcement.

2

How do I fix CVE-2026-27589?

To fix CVE-2026-27589, upgrade to Caddy version 2.11.1 or later to ensure the local admin API is secured.

3

What parts of Caddy are affected by CVE-2026-27589?

CVE-2026-27589 affects Caddy versions prior to 2.11.1, specifically impacting the local Caddy admin API.

4

What is the impact of CVE-2026-27589?

The impact of CVE-2026-27589 allows unauthorized users to change the running configuration if origin enforcement is not enabled.

5

Is Origin Enforcement relevant to CVE-2026-27589?

Yes, origin enforcement is crucial in mitigating the risks associated with CVE-2026-27589 by preventing unauthorized POST requests.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203
CVE-2026-27589 - Caddy vulnerable to cross-origin config application via local admin API /load (caddy) - SecAlerts