golang-github-go-chi-chi — security advisory
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.
- Products
- golang-github-go-chi-chi
- Affected versions
- 5.0.7-1, 5.1.0-1, 5.2.0-1, 5.2.3-1, 5.2.5-1, 5.3.0-1
- Fixed versions
- 5.3.0-1
- CVEs
- CVE-2026-72816
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 28 Oct 2026, 11:07 UTC · Revision 1
Source evidence
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.
osv:DEBIAN-CVE-2026-72816
golang-github-go-chi-chi
Fixed versions: Not specified
golang-github-go-chi-chi
Fixed versions: Not specified
golang-github-go-chi-chi
Fixed versions: 5.3.0-1
Complete source record
{
"id": "e548407d317e66868bcd0ddfd138050c86d3cb0cabb145a8a707b946d641b625",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2026-72816",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2026-72816",
"summary": "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.",
"evidence": "osv:DEBIAN-CVE-2026-72816",
"products": [
{
"name": {
"value": "golang-github-go-chi-chi",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "5.0.7-1",
"evidence": "/affected/0/versions"
},
{
"value": "5.1.0-1",
"evidence": "/affected/0/versions"
},
{
"value": "5.2.0-1",
"evidence": "/affected/0/versions"
},
{
"value": "5.2.3-1",
"evidence": "/affected/0/versions"
},
{
"value": "5.2.5-1",
"evidence": "/affected/0/versions"
},
{
"value": "5.3.0-1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "golang-github-go-chi-chi",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "5.2.0-1",
"evidence": "/affected/1/versions"
},
{
"value": "5.2.3-1",
"evidence": "/affected/1/versions"
},
{
"value": "5.2.5-1",
"evidence": "/affected/1/versions"
},
{
"value": "5.3.0-1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "golang-github-go-chi-chi",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.3.0-1",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": [
{
"value": "5.2.0-1",
"evidence": "/affected/2/versions"
},
{
"value": "5.2.3-1",
"evidence": "/affected/2/versions"
},
{
"value": "5.2.5-1",
"evidence": "/affected/2/versions"
}
]
}
],
"severity": "medium",
"structured": {
"id": "DEBIAN-CVE-2026-72816",
"aliases": [
"DEBIAN-CVE-2026-72816"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "golang-github-go-chi-chi",
"purl": "pkg:deb/debian/golang-github-go-chi-chi?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"versions": [
"5.0.7-1",
"5.1.0-1",
"5.2.0-1",
"5.2.3-1",
"5.2.5-1",
"5.3.0-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-72816.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "golang-github-go-chi-chi",
"purl": "pkg:deb/debian/golang-github-go-chi-chi?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"versions": [
"5.2.0-1",
"5.2.3-1",
"5.2.5-1",
"5.3.0-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-72816.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "5.3.0-1"
}
]
}
],
"package": {
"name": "golang-github-go-chi-chi",
"purl": "pkg:deb/debian/golang-github-go-chi-chi?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"versions": [
"5.2.0-1",
"5.2.3-1",
"5.2.5-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-72816.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-09T09:47:24.682938388Z",
"provider": "osv",
"upstream": [
"CVE-2026-72816"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2026-72816"
]
},
"related_cves": [
{
"value": "CVE-2026-72816",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 111473,
"published_at": "2026-08-14T12:16:44.62+00:00"
}