CVE-2026-50276 dd-trace-rb: Improper parsing of W3C baggage headers may lead to DoS
Remote attackers can cause denial of service in Ruby applications using dd-trace-rb by sending oversized W3C baggage headers that bypass resource limits.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-50276?
CVE-2026-50276 is a high-severity denial of service vulnerability in DataDog dd-trace-rb, published on 14 Sep 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
dd-trace-rb is Datadog's client library for Ruby. Prior to 2.32.0, W3C baggage extraction does not enforce DD_TRACE_BAGGAGE_MAX_ITEMS, which defaults to 64, or DD_TRACE_BAGGAGE_MAX_BYTES, which defaults to 8192, although those limits apply during baggage injection. A remote unauthenticated attacker can send a baggage HTTP header containing many comma-separated key-value pairs or a single very large value. The extraction path allocates entries while parsing the attacker-controlled header on every request, causing unbounded CPU and memory consumption in an HTTP service where the baggage propagation style is enabled, which is the default for most affected tracers. This can cause denial of service. This issue is fixed in version 2.32.0.
Weakness: CWE-770
Which versions are affected by CVE-2026-50276?
2 open source packages ship an affected version, including datadog.
| Package | Affected | Fixed in |
|---|---|---|
datadog RubyGems | All versions | 2.32.0 |
datadog RubyGems | All versions | 2.32.0 |
How do I fix CVE-2026-50276?
Upgrade datadog to 2.32.0 or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2026-50276 being exploited?
There is no known exploitation of CVE-2026-50276 in the wild and no public exploit code.
Sources
Also known as GHSA-p5f6-rccc-jv98.