<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:webfeeds="http://webfeeds.org/rss/1.0"><channel><title>Cpe:2.3:a:go-Chi:chi:*:*:*:*:*:*:*:* - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/cpes/cpe2.3ago-chichi/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata. Fed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Thu, 10 Sep 2026 02:08:07 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/cpes/cpe2.3ago-chichi/feed.xml" rel="self" type="application/rss+xml"/><image><url>https://feed.craftedsignal.io/favicon-32x32.png</url><title>CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/</link><width>32</width><height>32</height></image><webfeeds:icon>https://feed.craftedsignal.io/favicon.svg</webfeeds:icon><item><title>IP Spoofing Vulnerability in go-chi/chi middleware.RealIP</title><link>https://feed.craftedsignal.io/briefs/2026-09-chi-middleware-spoofing/</link><pubDate>Thu, 10 Sep 2026 02:08:07 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-09-chi-middleware-spoofing/</guid><description>The go-chi/chi middleware.RealIP component contains a vulnerability (CVE-2026-72815) that allows attackers to bypass IP-based ACLs and rate limits by forging the X-Forwarded-For header.</description><content:encoded><![CDATA[<p>The go-chi/chi Go library, specifically the <code>middleware.RealIP</code> component, is vulnerable to an IP spoofing flaw tracked as CVE-2026-72815. The middleware insecurely parses the <code>X-Forwarded-For</code> HTTP header, trusting the leftmost value provided by the client to populate <code>http.Request.RemoteAddr</code>. Because the <code>X-Forwarded-For</code> header is user-controllable, an attacker can supply a forged header (e.g., <code>X-Forwarded-For: 127.0.0.1</code>) to trick the application into believing the request originates from a trusted source, such as the local loopback or a privileged IP range.</p>
<p>This flaw effectively facilitates the bypass of security controls that rely exclusively on IP-based authentication, authorization, or rate limiting. The issue affects go-chi/chi versions 5.2.1 up to, but not including, 5.3.0. While version 5.3.0 introduces secure alternatives, the vulnerable <code>middleware.RealIP</code> remains for backward compatibility, requiring manual code changes by developers to switch to the new <code>ClientIPFrom*</code> middleware series.</p>
<h2 id="impact">Impact</h2>
<p>Successful exploitation allows unauthenticated attackers to bypass IP-based ACLs and rate-limiting policies. This can lead to unauthorized access to administrative endpoints or services restricted to specific IP addresses. Given the ubiquity of go-chi in Go-based web applications, the impact on security services relying on source IP identification is significant.</p>
<h2 id="recommendation">Recommendation</h2>
<p>Prioritized actions for development and security engineering teams:</p>
<ul>
<li>Update <code>go-chi/chi</code> to version 5.3.0 or later immediately.</li>
<li>Audit existing middleware implementations to replace <code>middleware.RealIP</code> with the appropriate <code>ClientIPFrom*</code> variants (e.g., <code>ClientIPFromXFF</code>) that account for trusted proxy chains.</li>
<li>Implement infrastructure-level security to ensure that reverse proxies (e.g., Nginx, Envoy, AWS ALB) correctly strip or overwrite incoming <code>X-Forwarded-For</code> headers from untrusted clients before the request reaches the Go application.</li>
<li>De-prioritize IP-based ACLs for critical authentication or authorization flows, favoring robust identity-based authentication mechanisms.</li>
</ul>
]]></content:encoded><category domain="severity">medium</category><category domain="type">advisory</category></item></channel></rss>