GO-2022-0619

    Dashboard / Vulnerabilities / GO-2022-0619

    GO-2022-0619

    Published: 15 Aug 2022Last Modified: 4 Feb 2026

    Summary: Authorization bypass in github.com/emicklei/go-restful, go-restful/v2 and go-restful/v3

    Details: CORS filters that use an AllowedDomains configuration parameter can match domains outside the specified set, permitting an attacker to avoid the CORS policy. The AllowedDomains configuration parameter is documented as a list of allowed origin domains, but values in this list are applied as regular expression matches. For example, an allowed domain of "example.com" will match the Origin header "example.com.malicious.domain".

    Affected packages

    Package

    Name: github.com/emicklei/go-restful

    Purl: pkg:golang/github.com/emicklei/go-restful

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -2.16.0+incompatible

    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-2022-0619 | CVE-DB