{"cve":"CVE-2026-46415","nvd":{"published":"2026-07-20T16:17:01.163","modified":"2026-10-24T20:10:00.137","status":"Deferred","description":"The Caddy Defender plugin is a middleware for Caddy that allows users to block or manipulate requests based on the client's IP address. Prior to version 0.10.1, Caddy Defender used `r.RemoteAddr` when evaluating whether a request should be blocked. `RemoteAddr` is the address of the immediate peer connected to Caddy. In deployments where Caddy is behind a trusted proxy, CDN, or load balancer, the immediate peer is usually the proxy, not the original client. Caddy resolves the original client address into its `client_ip` request variable after applying the configured `trusted_proxies` policy, but Defender did not use that value. As a result, clients from blocked IP ranges could bypass Defender when accessing Caddy through a trusted proxy whose own IP address was not blocked. This affects deployments that use Defender behind trusted proxies and expect it to enforce blocking based on the real client IP. The issue is fixed in version 0.10.1 by making Defender prefer Caddys resolved `client_ip` request variable when it is available. Defender falls back to `RemoteAddr` only when Caddy has not provided a resolved client IP. There is no complete workaround in affected Defender versions for deployments that rely on Caddy's trusted proxy client IP resolution. Until upgrading, affected users should enforce equivalent IP blocking at the trusted proxy, CDN, load balancer, firewall, or other edge layer before traffic reaches Caddy. Deployments where Caddy receives traffic directly from clients, without an intermediate trusted proxy, are not affected by this bypass.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N","score":8.2},"cwes":["CWE-284","CWE-348"],"references":["https://caddyserver.com/docs/caddyfile/matchers#client-ip","https://caddyserver.com/docs/caddyfile/options#trusted-proxies","https://github.com/JasonLovesDoggo/caddy-defender/pull/139","https://github.com/JasonLovesDoggo/caddy-defender/security/advisories/GHSA-3h23-rrpc-3p87"],"products":[],"source":"nvd","synced_at":"2026-10-25T17:50:08.599881581+00:00"},"epss":{"cve":"CVE-2026-46415","score":0.00234,"percentile":0.14222,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-3h23-rrpc-3p87","url":"https://osv.dev/vulnerability/GHSA-3h23-rrpc-3p87","summary":"Caddy Defender trusted proxy client IP bypass","modified":"2026-06-25T18:56:31.224877912Z","packages":[{"ecosystem":"Go","name":"pkg.jsn.cam/caddy-defender","purl":"pkg:golang/pkg.jsn.cam/caddy-defender","ranges":["<0.10.1"],"fixed":["0.10.1"]}]},{"id":"GO-2026-5086","url":"https://osv.dev/vulnerability/GO-2026-5086","summary":"Caddy Defender trusted proxy client IP bypass in pkg.jsn.cam/caddy-defender","modified":"2026-06-25T18:45:19.528643091Z","packages":[{"ecosystem":"Go","name":"pkg.jsn.cam/caddy-defender","purl":"pkg:golang/pkg.jsn.cam/caddy-defender","ranges":["<0.10.1"],"fixed":["0.10.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}