{"id":"GO-2021-0052","revision":"cf17a1951a24403087022c77cfb121f2","records":[{"revision":"cf17a1951a24403087022c77cfb121f2","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GO-2021-0052","aliases":["CVE-2020-28483","GHSA-h395-qcrw-5vmq","SNYK-GOLANG-GITHUBCOMGINGONICGIN-1041736"],"title":"Inconsistent interpretation of HTTP Requests in github.com/gin-gonic/gin","description":"Due to improper HTTP header sanitization, a malicious user can spoof their source IP address by setting the X-Forwarded-For header. This may allow a user to bypass IP based restrictions, or obfuscate their true source.","state":0,"publishedAt":"2021-04-14T20:04:52+00:00","modifiedAt":"2026-07-08T05:56:36.8951324+00:00","affected":[{"ecosystem":"Go","name":"github.com/gin-gonic/gin","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.7.7"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://github.com/gin-gonic/gin/issues/2862","https://github.com/gin-gonic/gin/issues/2473","https://github.com/gin-gonic/gin/issues/2232","https://github.com/gin-gonic/gin/pull/2844","https://github.com/gin-gonic/gin/commit/5929d521715610c9dd14898ebbe1d188d5de8937","https://github.com/gin-gonic/gin/pull/2632","https://github.com/gin-gonic/gin/commit/bfc8ca285eb46dad60e037d57c545cd260636711","https://github.com/gin-gonic/gin/pull/2675","https://github.com/gin-gonic/gin/commit/03e5e05ae089bc989f1ca41841f05504d29e3fd9","https://github.com/gin-gonic/gin/pull/2474"],"sourceUrl":"https://osv.dev/vulnerability/GO-2021-0052","license":"OSV · upstream source license applies","key":"osv:GO-2021-0052","identifiers":["GO-2021-0052","CVE-2020-28483","GHSA-h395-qcrw-5vmq","SNYK-GOLANG-GITHUBCOMGINGONICGIN-1041736"]},"retained":false,"historicalAffected":[]}],"coverage":[]}