Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-72816: Authentication Bypass by Spoofing in go-chi chi

0
Medium
VulnerabilityCVE-2026-72816cvecve-2026-72816
Published: 08/14/2026 (08/14/2026, 11:35:28 UTC)
Source: CVE Database V5
Vendor/Project: go-chi
Product: chi

Description

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 verifying that the request originated from a trusted proxy. Attackers can supply arbitrary IP addresses in these headers to bypass IP-based access controls, evade rate limiting and geo-IP restrictions, and pollute audit logs. Fixed in 5.3.0.

CVSS v4.0

Score 6.9medium

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
Low
Vuln. Integrity
Low
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Affected software

github.com/go-chi/chi
pkg:golang/github.com/go-chi/chi
Affected versions
<=5.2.1

Run 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

AILast updated: 08/14/2026, 12:13:26 UTC

Technical Analysis

The go-chi/chi web framework through version 5.2.1 contains an IP spoofing vulnerability in its RealIP middleware (middleware/realip.go). The realIP() function accepts client-controlled headers such as True-Client-IP, X-Real-IP, and X-Forwarded-For and overwrites the request's RemoteAddr field without verifying that the request originated from a trusted proxy. This flaw enables attackers to supply arbitrary IP addresses in these headers, potentially bypassing IP-based access controls, evading rate limiting and geo-IP restrictions, and polluting audit logs. The vulnerability is addressed in version 5.3.0.

Potential Impact

Attackers can spoof IP addresses by manipulating client-controlled headers, allowing them to bypass IP-based access controls, evade rate limiting and geo-IP restrictions, and corrupt audit logs. This can undermine security policies relying on accurate client IP information.

Mitigation Recommendations

Upgrade to go-chi/chi version 5.3.0 or later, where this vulnerability is fixed. Until then, avoid relying solely on the RealIP middleware for IP-based security controls or implement additional verification of trusted proxies. Patch status is confirmed fixed in 5.3.0.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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: 6a7f0282bf8831d539fec768

Added to database: 08/14/2026, 11:56:50 UTC

Last enriched: 08/14/2026, 12:13:26 UTC

Last updated: 08/14/2026, 13:11:01 UTC

Views: 2

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses