CVE-2026-116693: dd-trace: ReDoS in query string obfuscation causes DoS
HIGHdd-trace, the Datadog APM client for Node.js, ships a default query-string obfuscation regular expression that backtracks catastrophically on crafted URLs (CWE-1333). The regex runs synchronously on the Node.js event loop, so a single unauthenticated HTTP request can pin the CPU and make the instrumented service unavailable. The blast radius is wide because tracing libraries sit in front of nearly every request path, including AI inference gateways and agent backends. No CVSS score, EPSS data, KEV listing, public exploit or scanner template exists yet, so the likelihood of active exploitation is currently low, but exploitation needs only a long crafted query string. Upgrade dd-trace to 5.131.1 or 6.20.1, and until then consider overriding DD_TRACE_OBFUSCATION_QUERY_STRING_REGEXP with a safe pattern or capping query string length at the proxy or WAF.
What is the risk?
Moderate risk. Exploitation is remote and unauthenticated, requires no user interaction, and has availability impact only; there is no confidentiality or integrity impact. Severity and EPSS are not yet scored, and no public exploit, Nuclei template or KEV listing exists. Exposure depends on whether dd-trace is loaded in internet-facing Node.js services. Because the event loop is blocked, one request can stall all concurrent requests on that process, so the effective impact on an affected service is high.
How does the attack unfold?
How severe is it?
What should I do?
1 step1) Upgrade dd-trace to 5.131.1 or 6.20.1 or later across all Node.js services, including transitive and containerized deployments. 2) As a temporary workaround, set DD_TRACE_OBFUSCATION_QUERY_STRING_REGEXP to a simplified, non-backtracking pattern, or disable query string reporting. 3) Enforce a maximum URL and query string length at the reverse proxy, API gateway or WAF. 4) Detect with alerts on sustained single-core CPU saturation, event loop lag spikes and health check timeouts correlated with unusually long query strings in access logs. 5) Inventory dd-trace versions with SBOM or npm ls scans.
How is it classified?
Which compliance frameworks are affected?
This CVE is relevant to:
Frequently Asked Questions
What is CVE-2026-116693?
dd-trace, the Datadog APM client for Node.js, ships a default query-string obfuscation regular expression that backtracks catastrophically on crafted URLs (CWE-1333). The regex runs synchronously on the Node.js event loop, so a single unauthenticated HTTP request can pin the CPU and make the instrumented service unavailable. The blast radius is wide because tracing libraries sit in front of nearly every request path, including AI inference gateways and agent backends. No CVSS score, EPSS data, KEV listing, public exploit or scanner template exists yet, so the likelihood of active exploitation is currently low, but exploitation needs only a long crafted query string. Upgrade dd-trace to 5.131.1 or 6.20.1, and until then consider overriding DD_TRACE_OBFUSCATION_QUERY_STRING_REGEXP with a safe pattern or capping query string length at the proxy or WAF.
Is CVE-2026-116693 actively exploited?
No confirmed active exploitation of CVE-2026-116693 has been reported, but organizations should still patch proactively.
How to fix CVE-2026-116693?
1) Upgrade dd-trace to 5.131.1 or 6.20.1 or later across all Node.js services, including transitive and containerized deployments. 2) As a temporary workaround, set DD_TRACE_OBFUSCATION_QUERY_STRING_REGEXP to a simplified, non-backtracking pattern, or disable query string reporting. 3) Enforce a maximum URL and query string length at the reverse proxy, API gateway or WAF. 4) Detect with alerts on sustained single-core CPU saturation, event loop lag spikes and health check timeouts correlated with unusually long query strings in access logs. 5) Inventory dd-trace versions with SBOM or npm ls scans.
What systems are affected by CVE-2026-116693?
This vulnerability affects the following AI/ML architecture patterns: Model serving, Agent frameworks, LLM API gateways, RAG pipelines, MCP servers.
What is the CVSS score for CVE-2026-116693?
No CVSS score has been assigned yet.
What is the AI security impact?
Affected AI Architectures
MITRE ATLAS Techniques
AML.T0029Denial of AI ServiceAML.T0049Exploit Public-Facing ApplicationCompliance Controls Affected
What are the technical details?
Original Advisory
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.
Exploitation Scenario
An attacker finds a public Node.js endpoint that fronts an LLM or agent service instrumented with dd-trace. They send a request with a long query string built to trigger catastrophic backtracking in the default obfuscation regex. The tracer evaluates the regex synchronously while recording HTTP URL metadata, blocking the event loop. The attacker repeats the request at low volume to keep the service unresponsive, which disrupts inference, agent workflows and monitoring health checks.
Weaknesses (CWE)
CWE-1333Inefficient Regular Expression ComplexityPrimaryCWE-1333Inefficient Regular Expression ComplexityCWE-1333 — Inefficient Regular Expression Complexity: The product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential.
- [Architecture and Design] Use regular expressions that do not support backtracking, e.g. by removing nested quantifiers.
- [System Configuration] Set backtracking limits in the configuration of the regular expression implementation, such as PHP's pcre.backtrack_limit. Also consider limits on execution time for the process.
Source: MITRE CWE corpus.
References
- github.com/DataDog/dd-trace-js/commit/5eeee790c93036a50549056fc890028cb4c86b1b
- github.com/DataDog/dd-trace-js/commit/cf4e68a45fa1442c9850f2086c81901258e821b8
- github.com/DataDog/dd-trace-js/pull/10675
- github.com/DataDog/dd-trace-js/releases/tag/v5.131.1
- github.com/DataDog/dd-trace-js/releases/tag/v6.20.1
- github.com/DataDog/dd-trace-js/security/advisories/GHSA-x94g-w73q-hpcw
Timeline
Related Vulnerabilities
CVE-2026-3366010.0TensorFlow: type confusion NPD in tensor conversion
Same attack type: DoSCVE-2023-256689.8TensorFlow: unauthenticated RCE via heap buffer overflow
Same attack type: DoSCVE-2022-235879.8TensorFlow: integer overflow in Grappler enables RCE
Same attack type: DoSCVE-2022-359399.8TensorFlow: ScatterNd OOB write enables RCE/crash
Same attack type: DoSCVE-2022-419009.8TensorFlow: heap OOB RCE in FractionalMaxPool op
Same attack type: DoS