一线运维实战手记 · 云计算 · 数据库 · 故障排查
2026年10月22日

CVE-2026-114437 [MEDIUM] – In the Golang Chi web framework, the ClientIPFromXFF middleware skips any X-Forwarded-For

未分类
📑 文章目录

In the Golang Chi web framework, the ClientIPFromXFF middleware skips any X-Forwarded-For entry in a configured trusted CIDR but never verifies that the direct TCP peer in http.Request.RemoteAddr belongs to that CIDR. A client that can reach the Go server directly can therefore append a trusted-looking proxy address and choose the client IP returned by middleware.GetClientIP.

This issue affects chi before 5.4.0.