High · 8.7 Node.js & npm GHSA-x94g-w73q-hpcw CVE-2026-116693
ReDoS Vulnerability in dd-trace Node.js Library Can Stall Instrumented Applications
A regular expression denial-of-service (ReDoS) flaw in dd-trace, the Datadog APM client for Node.js, allows a crafted request to cause excessive CPU usage via the default query string obfuscation regex, stalling instrumented applications. Fixed versions are available.
By PatchBriefing · ·
Produced automatically from official sources with the help of AI. How we work →
AI summary
A vulnerability has been disclosed in dd-trace, the Datadog Application Performance Monitoring (APM) client library for Node.js. The issue involves the default regular expression used to obfuscate sensitive data in URL query strings, which can be exploited to cause a denial of service on applications instrumented with the affected library. Fixed versions have been released.
What Happened
A vulnerability identified as CVE-2026-116693 (GHSA-x94g-w73q-hpcw) was disclosed in dd-trace, the Datadog APM client for Node.js. The default regular expression used by the DD_TRACE_OBFUSCATION_QUERY_STRING_REGEXP setting to obfuscate sensitive data in URL query strings can suffer from excessive backtracking when processing attacker-controlled input, a pattern known as Inefficient Regular Expression Complexity (CWE-1333).
Technical Cause
The vulnerable regular expression is applied synchronously while dd-trace records HTTP URL metadata for tracing purposes. Because the expression can be made to backtrack excessively on certain crafted query strings, a single malicious request can consume disproportionate amounts of CPU time during this synchronous processing step.
Why It Matters
Since the affected regex processing happens synchronously on the request path, a crafted HTTP request with a malicious query string can stall request processing for the entire instrumented application, effectively causing a denial of service. No authentication or user interaction is required to trigger the issue, as it is driven entirely by data in an incoming request's query string.
Affected Versions
dd-trace versions from 2.0.0 up to (but not including) 5.131.1 are affected, as are versions from 6.0.0 up to (but not including) 6.20.1.
Fixes and Mitigation
The issue is fixed in dd-trace versions 5.131.1 and 6.20.1. Users of the 5.x line should upgrade to 5.131.1, and users of the 6.x line should upgrade to 6.20.1.
Recommended Action
Update dd-trace to version 5.131.1 (for the 5.x release line) or 6.20.1 (for the 6.x release line) as soon as possible, particularly for any application that processes untrusted HTTP requests while instrumented with this library.
PatchBriefing score
8.7 / 10 · High
Official CVSS: 8.7
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
EPSS 0.0058 (41 percentile)
Why this score
The PatchBriefing score equals the official CVSS score; when this article covers several vulnerabilities, the highest one. Signals such as known exploitation and EPSS are listed separately and do not change the score.
Affected versions
- dd-trace >= 6.0.0, < 6.20.1
- vulnerable
- dd-trace ≥ 6.0.0 < 6.20.1
- vulnerable
- ≥ 5.131.1
- patched
- ≥ 6.20.1
- patched
Reported fixes
The issue is fixed in dd-trace versions 5.131.1 and 6.20.1. Users of the 5.x line should upgrade to 5.131.1, and users of the 6.x line should upgrade to 6.20.1.
How this was built
3 source records were collected, matched and used to prepare the report above.
-
GitHub Advisory Database database
-
OSV.dev database
-
NVD (NIST) database
Revision history
- Published
- Generated
- Published
- Generated
- Merged
- Published
- Generated