Tenable disclosed a client IP spoofing vulnerability in the Go Chi web framework on October 21, 2026. Tracked as CVE-2026-114437, the issue affects the ClientIPFromXFF functionality, which processes the X-Forwarded-For HTTP header to determine a client's IP address.
The problem occurs because the middleware skips header entries that match configured trusted CIDR ranges without first verifying that the direct TCP peer connecting to the application is actually within a trusted proxy range. In deployments where a client can reach the Go server directly, this can allow the client to influence the IP address returned by the framework.
Tenable identified Chi version 5.4.0 or later as the fixed version.
Applications deployed behind reverse proxies often receive requests from the proxy rather than directly from the original client. The proxy may use the X-Forwarded-For header to preserve client-address information.
Because a client can potentially supply its own HTTP headers, this information is trustworthy only when the application establishes a reliable relationship with its proxy infrastructure.
A secure implementation must distinguish between data added by a trusted intermediary and data supplied by an untrusted remote client.
Tenable found that Chi's ClientIPFromXFF logic skipped entries in configured trusted CIDR ranges but did not verify that the direct peer's RemoteAddr belonged to one of those trusted ranges.
This is an important ordering issue. A configured trusted-proxy range is meaningful only if the application first establishes that the request actually arrived through an authorized proxy.
When the application is directly reachable, a client can supply a forwarded-header chain containing a trusted-looking address. The middleware may then return an IP address chosen through that header rather than the actual client address.
The vulnerability is therefore a trust-boundary failure in client IP derivation, not an arbitrary code execution flaw.
Tenable classified the vulnerability as Medium severity. Its advisory lists a CVSS v3.1 base score of 4.8 and a CVSS v4.0 base score of 6.3.
The practical consequences depend on how an application uses the IP address returned by the middleware.
Potentially affected decisions include:
IP-based access restrictions.
Request rate limits and abuse prevention.
Client-address logging and audit trails.
Security rules that distinguish trusted networks from external clients.
IP-based anomaly detection or attribution.
The advisory does not imply that all applications using Chi are automatically vulnerable to the same practical attack. Exposure is more relevant where untrusted clients can connect directly and where the resulting client IP is used as a security signal.
A forged IP in an application log can also affect investigations, but it does not mean that all source-address information in the surrounding network logs is necessarily forged.
Tenable's advisory documents the underlying validation gap and the affected version range. It does not establish that every deployment used unsafe networking or authorization configurations, nor does it provide evidence of widespread real-world exploitation.
The important assessment question for each organization is whether its application can be reached outside the expected proxy path and whether the middleware's output is relied upon for security decisions.
Upgrade to Go Chi version 5.4.0 or later. Confirm that the deployed dependency and any application modules that wrap or vendor the middleware contain the fix.
Restrict direct access to applications that are meant to receive traffic exclusively through reverse proxies. Firewall rules, load balancer configuration, and network segmentation can help ensure that clients cannot bypass the intended entry point.
Applications should verify that the direct remote peer is an approved proxy before trusting its forwarded-header information. Treat forwarded headers as untrusted input unless they originate from an authorized intermediary under a controlled configuration.
Review all uses of the client IP returned by the middleware. Where IP information influences authentication, authorization, throttling, or audit decisions, ensure that a client cannot override the value merely by supplying an HTTP header.
After upgrading, test both proxy-routed and direct-access scenarios in an authorized environment. Confirm that forwarded headers are processed according to the application's documented trust model and that untrusted clients cannot manufacture a trusted client address.
CVE-2026-114437 highlights the security risks of deriving client identity from HTTP headers without validating the connection's trust boundary. The Chi middleware issue can permit client IP spoofing where direct access to the server is possible and applications trust the returned address.
The immediate response is to upgrade to Chi 5.4.0 or later and review how proxy trust is enforced. Developers should verify the direct peer before relying on forwarded client-address data for security decisions.