dd-trace-py: Improper parsing of W3C baggage headers may lead to DoS
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-770.
Summary
Datadog dd-trace-py is the Datadog Python APM client. Prior to 4.8.2, Datadog tracing libraries that implement W3C baggage propagation parse incoming baggage HTTP headers without enforcing DD_TRACE_BAGGAGE_MAX_ITEMS or DD_TRACE_BAGGAGE_MAX_BYTES limits on the extract path. A remote, unauthenticated attacker can send a request whose baggage header contains an arbitrarily large number of comma-separated key-value pairs or a single very large value, causing unbounded CPU and memory consumption and enabling a remote denial of service against HTTP services with baggage propagation enabled. This issue is fixed in version 4.8.2.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| DataDog | dd-trace-py | before 4.8.2 | 4.8.2 | Patch available | CNA |
| — | ddtrace (PyPI) | before 4.8.2 | 4.8.2 | Patch available | GHSA-mw54-j2v2-42hr |
- dd-trace-py VendorDataDog Affected before 4.8.2 Fixed in 4.8.2 Patch available CNA
- ddtrace (PyPI) Vendor— Affected before 4.8.2 Fixed in 4.8.2 Patch available GHSA-mw54-j2v2-42hr
Remediation
- Fix · CNA dd-trace-py (DataDog) Fixed in 4.8.2
- Fix · GHSA-mw54-j2v2-42hr ddtrace (PyPI) Fixed in 4.8.2 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-50271
- 2026-10-03 Alias added: GHSA-mw54-j2v2-42hr
References
Other 5
- https://github.com/DataDog/dd-trace-py/security/advisories/GHSA-mw54-j2v2-42hr
- https://github.com/DataDog/dd-trace-py/pull/17926
- https://github.com/DataDog/dd-trace-py/commit/9c80faa3dcfe238d008c3b3cd0b8e5dfef0aa4cd
- https://github.com/DataDog/dd-trace-py/releases/tag/v4.8.2
- https://github.com/DataDog/dd-trace-py
More DataDog vulnerabilities
- TI-2026-32833 GuardDog: Blind GitHub URL rewrite in remote project scanning causes SSRF and `GH_TOKEN` exfiltration CVSS 3.1HIGH 8.2
- TI-2022-07587 GuardDog vulnerable to arbitrary file write when scanning a specially-crafted remote PyPI package CVSS 3.1MEDIUM 6.5
- TI-2026-26107 dd-trace-java: Unsafe deserialization in RMI instrumentation may lead to remote code execution CVSS 4.0CRITICAL 9.3
- TI-2026-81528 ReDoS in dd-trace URL query string obfuscation CVSS 4.0HIGH 8.7
- TI-2026-80927 ReDoS in Datadog dd-trace-py URL query string obfuscation CVSS 4.0HIGH 8.7
- TI-2023-20052 import-in-the-middle allows unsanitized user controlled input in module generation CVSS 3.1CRITICAL 9.8
Sources
- CVE-2026-50271 · CVE Program
- CVE-2026-50271 · NVD
- FIRST EPSS
- GHSA-mw54-j2v2-42hr · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences