# CVE-2026-46415: Caddy Defender trusted proxy client IP bypass

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.2
- **CVSS:** 8.2 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: Low; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.23% (percentile 9, 2026-11-26)
- **CWE:** CWE-284, CWE-348
- **Aliases:** GHSA-3h23-rrpc-3p87, GO-2026-5086
- **Published:** 2026-05-19T20:29:14.000Z
- **Modified:** 2026-10-24T20:10:00.137Z

## Who should check

- Projects that depend on Go package pkg.jsn.cam/caddy-defender (\< 0.10.1)
- Anyone running JasonLovesDoggo caddy-defender \< 0.10.1

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

## Affected and fixed versions

- Go `pkg.jsn.cam/caddy-defender`: affected \< 0.10.1; fixed 0.10.1 (osv)
- JasonLovesDoggo caddy-defender: \< 0.10.1 (cvelist)

## Mitigation

- Upgrade pkg.jsn.cam/caddy-defender to 0.10.1 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-46415. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-46415.md
Affected: pkg.jsn.cam/caddy-defender < 0.10.1
Fixed in: 0.10.1

Steps:
1. Search this machine and project for pkg.jsn.cam/caddy-defender (Go), JasonLovesDoggo caddy-defender: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-46415 being exploited?

There is no confirmed exploitation: CVE-2026-46415 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.23% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-46415?

High: CVSS 8.2 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-46415?

pkg.jsn.cam/caddy-defender \< 0.10.1.

### Is there a fix for CVE-2026-46415?

Yes. Fixed in 0.10.1. Upgrade pkg.jsn.cam/caddy-defender to 0.10.1 or later.

### How do I check if I'm affected by CVE-2026-46415?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/JasonLovesDoggo/caddy-defender/security/advisories/GHSA-3h23-rrpc-3p87>
- patch: <https://github.com/JasonLovesDoggo/caddy-defender/pull/139>
- other: <https://caddyserver.com/docs/caddyfile/matchers#client-ip>
- other: <https://caddyserver.com/docs/caddyfile/options#trusted-proxies>
- other: <https://github.com/JasonLovesDoggo/caddy-defender>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-46415>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-3h23-rrpc-3p87> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2026-5086> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-46415> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-46415>
