Go SDK for CloudEvents's use of WithRoundTripper to create a Client leaks credentials
Go SDK for CloudEvents is the official CloudEvents SDK to integrate applications with CloudEvents. Prior to version 2.15.2, 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, then http.DefaultClient is modified with the authenticated transport and will start to send Authorization tokens to any endpoint it is used to contact. Version 2.15.2 patches this issue.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2024-28110
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 6 Nov 2026, 04:11 UTC · Revision 1
Source evidence
Go SDK for CloudEvents's use of WithRoundTripper to create a Client leaks credentials
core-osv · Original sourcePublished 6 Mar 2024, 21:12 UTC
Go SDK for CloudEvents is the official CloudEvents SDK to integrate applications with CloudEvents. Prior to version 2.15.2, 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, then http.DefaultClient is modified with the authenticated transport and will start to send Authorization tokens to any endpoint it is used to contact. Version 2.15.2 patches this issue.
osv:CVE-2024-28110
Complete source record
{
"id": "869497fcc09990c4fbb339576efafc978820fbba68ce3217bdf6e000ee214d47",
"url": "https://osv.dev/vulnerability/CVE-2024-28110",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Go SDK for CloudEvents's use of WithRoundTripper to create a Client leaks credentials",
"summary": "Go SDK for CloudEvents is the official CloudEvents SDK to integrate applications with CloudEvents. Prior to version 2.15.2, 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, then http.DefaultClient is modified with the authenticated transport and will start to send Authorization tokens to any endpoint it is used to contact. Version 2.15.2 patches this issue.",
"evidence": "osv:CVE-2024-28110",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2024-28110",
"aliases": [
"CVE-2024-28110",
"GHSA-5pf6-2qwx-pxm2",
"GO-2024-2618"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/cloudevents/sdk-go",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "de2f28370b0d2a0f64f92c0c6139fa4b8a7c3851"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:cloudevents:go_sdk:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "2.15.1"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "de2f28370b0d2a0f64f92c0c6139fa4b8a7c3851"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"v2.15.1",
"v2.15.0",
"v2.14.0",
"v2.13.0",
"v2.12.0",
"v2.11.0",
"v2.10.0",
"v2.9.0",
"v2.8.0",
"v2.7.0",
"v<nil>",
"v2.6.0",
"v2.4.0",
"v2.3.0",
"protocol/stan/v2.3.0",
"protocol/pubsub/v2.3.0",
"protocol/nats/v2.3.0",
"protocol/kafka_sarama/v2.3.0",
"protocol/amqp/v2.3.0",
"v2.2.0",
"protocol/stan/v2.2.0",
"protocol/pubsub/v2.2.0",
"protocol/nats/v2.2.0",
"protocol/kafka_sarama/v2.2.0",
"protocol/amqp/v2.2.0",
"v2.0.0",
"protocol/stan/v2.0.0",
"protocol/pubsub/v2.0.0",
"protocol/nats/v2.0.0",
"protocol/kafka_sarama/v2.0.0",
"protocol/amqp/v2.0.0",
"v2/protocol/stan/v2.0.0-RC5",
"v2/protocol/stan/v1.0.0-RC5",
"v2/protocol/kafka_sarama/v1.0.0-RC5",
"v2.0.0-RC5",
"v2.0.0-RC4",
"v2.0.0-RC3",
"v2.0.0-RC2",
"v2.0.0-RC1",
"v2.0.0-preview8",
"v2.0.0-preview7",
"v2.0.0-prevew7",
"v2.0.0-preview6",
"v2.0.0-preview5",
"v2.0.0-preview4",
"v2.0.0-preview3",
"v2.0.0-preview2",
"v2.0.0-preview1",
"v1.1.1",
"v1.1.0",
"v1.0.0",
"v0.11.0",
"v0.10.2",
"v0.10.1",
"0.10.1",
"v0.10.0",
"v0.9.2",
"v0.9.1",
"v0.9.0",
"v0.8.0",
"0.7.0",
"0.6.0",
"0.5.0",
"0.4.4",
"0.4.3",
"0.4.2",
"0.4.1",
"0.4.0",
"0.3.0",
"0.2.0",
"0.2"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-28110.json"
}
}
],
"modified": "2026-10-28T02:30:46.748882197Z",
"provider": "osv",
"references": [
"https://github.com/cloudevents/sdk-go/blob/67e389964131d55d65cd14b4eb32d57a47312695/v2/protocol/http/protocol.go#L104-L110",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/28xxx/CVE-2024-28110.json",
"https://github.com/cloudevents/sdk-go/security/advisories/GHSA-5pf6-2qwx-pxm2",
"https://nvd.nist.gov/vuln/detail/CVE-2024-28110",
"https://github.com/cloudevents/sdk-go/commit/de2f28370b0d2a0f64f92c0c6139fa4b8a7c3851"
],
"provider_metadata": {
"cwe_ids": [
"CWE-522"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/28xxx/CVE-2024-28110.json"
}
},
"related_cves": [
{
"value": "CVE-2024-28110",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 514579,
"published_at": "2024-03-06T21:12:26.991+00:00"
}