GO-2024-2618

    Dashboard / Vulnerabilities / GO-2024-2618

    GO-2024-2618

    Published: 11 Mar 2024Last Modified: 4 Feb 2026

    Summary: Authentication token leak in github.com/cloudevents/sdk-go/v2

    Details: Using cloudevents.WithRoundTripper to create a cloudevents.Client with an authenticated http.RoundTripper causes the go-sdk to leak credentials to arbitrary endpoints. When the transport is populated with an authenticated transport, http.DefaultClient is modified with the authenticated transport and will start to send Authorization tokens to any endpoint it is used to contact.

    Affected packages

    Package

    Name: github.com/cloudevents/sdk-go/v2

    Purl: pkg:golang/github.com/cloudevents/sdk-go/v2

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -2.15.2

    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