GO-2021-0052

    Dashboard / Vulnerabilities / GO-2021-0052

    GO-2021-0052

    Published: 14 Apr 2021Last Modified: 8 Jul 2026

    Summary: Inconsistent interpretation of HTTP Requests in github.com/gin-gonic/gin

    Details: 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.

    Affected packages

    Package

    Name: github.com/gin-gonic/gin

    Purl: pkg:golang/github.com/gin-gonic/gin

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -1.7.7

    Affected versions

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GO-2021-0052 | CVE-DB