Skip to content
OpenAdvisories

Package · Go

github.com/go-chi/chi/v4/middleware

2 known vulnerabilities.

2 results · Clear filters · Feed

  • Medium 6.5

    go-chi chi 0.9.0 before 5.3.0 IP Spoofing via X-Forwarded-For

    go-chi/chi versions 0.9.0 before 5.3.0 contains an IP spoofing vulnerability in the RealIP middleware, which resolves the request source IP (Request.RemoteAddr) using the first IP in the X-Forwarded-For header without validating trusted proxies. A malicious c…

  • Medium 6.5

    go-chi chi before 5.3.0 IP Spoofing via RealIP Middleware

    go-chi/chi through 5.2.1 contains an IP spoofing vulnerability in the RealIP middleware (middleware/realip.go). The realIP() function reads client-controlled headers (True-Client-IP, X-Real-IP, and X-Forwarded-For) and overwrites r.RemoteAddr without verifyin…