DataDog dd-trace-js
dd-trace: ReDOS in URL query string obfuscation
dd-trace is the Datadog APM client for Node.js. From 2.0.0 until 5.131.1 and 6.20.1, the default DD_TRACE_OBFUSCATION_QUERY_STRING_REGEXP can perform excessive backtracking on attacker-controlled URL query strings. The expression is applied synchronously while recording HTTP URL metadata, allowing a crafted request to consume excessive CPU, stall request processing, and make the instrumented application unavailable. This issue is fixed in versions 5.131.1 and 6.20.1.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS8.7high · scored by CNA · CWE-1333
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
DataDog dd-trace-js
- >= 2.0.0, < 5.131.1
- >= 6.0.0, < 6.20.1
Fixed in 5.131.1, 6.20.1
Mitigation
Upgrade dd-trace-js to 5.131.1 or 6.20.1 or later.
References
- Vendor advisory github.com/DataDog/dd-trace-js/security/adviso…
- Patch github.com/DataDog/dd-trace-js/pull/10675
- Patch github.com/DataDog/dd-trace-js/commit/5eeee790…
3 more
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.