CVE-2026-72817: Insufficient Verification of Data Authenticity in go-chi chi
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 client can prepend a forged IP as the first value of the X-Forwarded-For header to spoof the request source IP, potentially bypassing access controls or falsifying request logs.
AI Analysis
Technical Summary
The go-chi/chi library, specifically versions 0.9.0 up to but not including 5.3.0, has an IP spoofing vulnerability in its RealIP middleware. This middleware determines the request source IP by taking the first IP address from the X-Forwarded-For HTTP header without verifying whether the proxy that added this header is trusted. An attacker can exploit this by inserting a forged IP as the first value in the X-Forwarded-For header, causing the application to incorrectly identify the source IP. This can lead to bypassing IP-based access controls or generating misleading request logs.
Potential Impact
The vulnerability allows an unauthenticated attacker to spoof the source IP address of HTTP requests. This can result in bypassing IP-based access restrictions or falsifying logs that rely on source IP information. The CVSS 4.0 base score is 6.9 (medium severity), indicating a significant but not critical risk. There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should avoid relying solely on the RealIP middleware for source IP validation or implement additional validation of trusted proxies before trusting the X-Forwarded-For header.
CVE-2026-72817: Insufficient Verification of Data Authenticity in go-chi chi
Description
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 client can prepend a forged IP as the first value of the X-Forwarded-For header to spoof the request source IP, potentially bypassing access controls or falsifying request logs.
CVSS v4.0
Score 6.9medium
Affected software
pkg:golang/github.com/go-chi/chiRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The go-chi/chi library, specifically versions 0.9.0 up to but not including 5.3.0, has an IP spoofing vulnerability in its RealIP middleware. This middleware determines the request source IP by taking the first IP address from the X-Forwarded-For HTTP header without verifying whether the proxy that added this header is trusted. An attacker can exploit this by inserting a forged IP as the first value in the X-Forwarded-For header, causing the application to incorrectly identify the source IP. This can lead to bypassing IP-based access controls or generating misleading request logs.
Potential Impact
The vulnerability allows an unauthenticated attacker to spoof the source IP address of HTTP requests. This can result in bypassing IP-based access restrictions or falsifying logs that rely on source IP information. The CVSS 4.0 base score is 6.9 (medium severity), indicating a significant but not critical risk. There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should avoid relying solely on the RealIP middleware for source IP validation or implement additional validation of trusted proxies before trusting the X-Forwarded-For header.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-08-10T15:12:16.754Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a7f0282bf8831d539fec76c
Added to database: 08/14/2026, 11:56:50 UTC
Last enriched: 08/14/2026, 12:13:20 UTC
Last updated: 08/14/2026, 13:16:15 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.