GO-2024-2618

Source
https://pkg.go.dev/vuln/GO-2024-2618
Import Source
https://vuln.go.dev/ID/GO-2024-2618.json
JSON Data
https://api.osv.dev/v1/vulns/GO-2024-2618
Aliases
Published
2024-03-11T20:10:15Z
Modified
2024-05-20T16:03:47Z
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.

Database specific
{
    "review_status": "REVIEWED",
    "url": "https://pkg.go.dev/vuln/GO-2024-2618"
}
References
Credits
    • mattmoor
    • tcnghia

Affected packages

Go / github.com/cloudevents/sdk-go/v2

Package

Name
github.com/cloudevents/sdk-go/v2
View open source insights on deps.dev
Purl
pkg:golang/github.com/cloudevents/sdk-go/v2

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.15.2

Ecosystem specific

{
    "imports": [
        {
            "path": "github.com/cloudevents/sdk-go/v2/protocol/http",
            "symbols": [
                "New"
            ]
        }
    ]
}