{"id":"CVE-2026-116693","kind":"vulnerability","aliases":["CVE-2026-116693","GHSA-x94g-w73q-hpcw"],"related":[],"title":"dd-trace: ReDOS in URL query string obfuscation","description":"### Summary\n\nA regular expression used to obfuscate URL query strings can consume excessive CPU when processing certain attacker-controlled input. This can stall request processing and cause denial of service in applications using affected HTTP tracing integrations.\n\n### Details\n\nThe default query-string obfuscation pattern can exhibit excessive backtracking. The pattern is applied synchronously when recording HTTP URL metadata, allowing query-string processing to occupy application resources for an extended period.\n\nAs a workaround, set DD_TRACE_OBFUSCATION_QUERY_STRING_REGEXP to the fixed regex below, then restart the application.\n\n```\nDD_TRACE_OBFUSCATION_QUERY_STRING_REGEXP='(?:(?:\"|%22)?)(?:(?:old[-_]?|new[-_]?)?p(?:ass)?w(?:or)?d(?:1|2)?|pass(?:[-_]?phrase)?|secret|(?:api[-_]?|private[-_]?|public[-_]?|access[-_]?|secret[-_]?|app(?:lication)?[-_]?)key(?:[-_]?id)?|token|consumer[-_]?(?:id|key|secret)|sign(?:ed|ature)?|auth(?:entication|orization)?)(?:(?:\\s|%20)*(?:=|%3D)[^&]+|(?:\"|%22)(?:\\s|%20)*(?::|%3A)(?:\\s|%20)*(?:\"|%22)(?:%2[^2]|%[^2]|[^\"%])+(?:\"|%22))|(?:bearer(?:\\s|%20)+[a-z0-9._\\-]+|token(?::|%3A)[a-z0-9]{13}|gh[opsu]_[0-9a-zA-Z]{36}|(?:(?<![\\w-])|(?<=%[0-9a-f]{2}))ey[I-L][\\w-]+(?:=|%3D)*\\.ey[I-L][\\w-]+(?:=|%3D)*(?:\\.(?:[\\w.+/=-]|%3D|%2F|%2B)+)?|-{5}BEGIN(?:[a-z\\s]|%20)+PRIVATE(?:\\s|%20)KEY-{5}[^\\-]+-{5}END(?:[a-z\\s]|%20)+PRIVATE(?:\\s|%20)KEY(?:-{5})?(?:\\n|%0A)?|(?:ssh-(?:rsa|dss)|ecdsa-[a-z0-9]+-[a-z0-9]+)(?:\\s|%20|%09)+(?:[a-z0-9/.+]|%2F|%5C|%2B){100,}(?:=|%3D)*(?:(?:\\s|%20|%09)+[a-z0-9._-]+)?)'\n```\n\n### Proof of concept\n\nDetailed triggering inputs and reproduction steps are omitted from this advisory. The patched version includes regression coverage for the affected behavior.\n\n### Impact\n\nRegular expression denial of service (ReDoS) affecting applications that process attacker-controlled URL query strings through the vulnerable obfuscation pattern. Successful exploitation can cause excessive CPU consumption, prolonged request latency, and service unavailability.\n\nThe vulnerable processing is enabled by default for affected HTTP integrations that include query strings in URL span tags.","summary":"dd-trace is Datadog's Node.js tracing library, and its default regex that obfuscates URL query strings can backtrack excessively on crafted input. An attacker who sends such requests can drive CPU use up and make the application slow or unavailable.","severity":"high","cvss":8.7,"epss":null,"exploited":false,"exploited_at":null,"products":[{"name":"dd-trace","fixed":["5.131.1"],"affected":">= 2.0.0, < 5.131.1","ecosystem":"npm"},{"name":"dd-trace","fixed":["6.20.1"],"affected":">= 6.0.0, < 6.20.1","ecosystem":"npm"}],"ecosystems":["npm"],"tags":["apm","cwe-1333","datadog","dd-trace","node.js","npm","package","self-hosted"],"not_affected_if":["no-http-tracing","patched-version"],"how_to_check":"- Run `npm ls dd-trace` in each Node.js project to find the installed version.\n- Check whether `DD_TRACE_OBFUSCATION_QUERY_STRING_REGEXP` is set in the environment or deployment config.\n- Confirm the application uses the dd-trace HTTP integration, which records URL query strings in span tags.","fix":"- Upgrade dd-trace to `5.131.1` on the 5.x line, or to `6.20.1` on the 6.x line.\n- As a workaround, set `DD_TRACE_OBFUSCATION_QUERY_STRING_REGEXP` to the fixed regex from the advisory and restart the application.","status":"open","published_at":"2026-10-27T21:07:25+00:00","first_seen_at":"2026-10-27T21:09:20+00:00","triaged_at":"2026-10-27T21:09:40+00:00","updated_at":"2026-10-27T21:29:21+00:00","category":"package","confidence":0.8,"triage":{"at":"2026-10-27T21:09:40Z","model":"claude-haiku-5-5","output":{"fix":"- Upgrade dd-trace to `5.131.1` on the 5.x line, or to `6.20.1` on the 6.x line.\n- As a workaround, set `DD_TRACE_OBFUSCATION_QUERY_STRING_REGEXP` to the fixed regex from the advisory and restart the application.","reach":"internet","title":"dd-trace: regex flaw lets crafted URL query strings stall Node.js requests","impact":"medium","summary":"dd-trace is Datadog's Node.js tracing library, and its default regex that obfuscates URL query strings can backtrack excessively on crafted input. An attacker who sends such requests can drive CPU use up and make the application slow or unavailable.","category":"package","nicknames":[],"who_cares":["node.js","npm","datadog","dd-trace","self-hosted","apm"],"confidence":0.8,"needs_auth":"no","worst_case":"Request processing stalls and the service becomes unavailable under load","analyst_note":"","how_to_check":"- Run `npm ls dd-trace` in each Node.js project to find the installed version.\n- Check whether `DD_TRACE_OBFUSCATION_QUERY_STRING_REGEXP` is set in the environment or deployment config.\n- Confirm the application uses the dd-trace HTTP integration, which records URL query strings in span tags.","needs_analyst":false,"not_affected_if":["patched-version","no-http-tracing"],"who_is_affected":"Applications that run dd-trace 2.0.0 up to 5.131.1, or 6.0.0 up to 6.20.1, with the HTTP tracing integration enabled. The vulnerable pattern runs by default on query strings in URL span tags, so default configurations are exposed. Teams that do not use dd-trace, or run a patched version, can skip it.","user_interaction":"no","needs_special_setup":"no","severity_if_unknown":"unknown"},"cost_usd":0.000774,"input_tokens":4428,"output_tokens":662,"severity_before":"high"},"analyst_status":null,"analyst_note":null,"search":"'-116693':12A,20A '-1333':29B '-2026':11A,19A '-9':244C,252C '0':243C,251C '09':313C,325C '0a':298C '1':188C '100':321C '13':240C '2':189C,223C,224C,225C,256C '20':214C,218C,221C,229C,279C,282C,291C,294C,312C,324C '22':180C,216C,222C,226C '2b':272C,320C '2f':271C,318C '36':249C '3a':219C,235C '3d':215C,262C,268C,270C,322C '5':273C,284C,285C,296C '5c':319C '9':233C,239C,306C,310C,317C,329C 'a-f':253C 'a-z':275C,287C 'a-z0':230C,236C,303C,307C,314C,326C 'a-za-z':245C 'access':196C 'advisori':343C 'affect':116C,352C,361C,397C 'allow':142C 'api':193C 'apm':27B 'app':198C 'appli':135C 'applic':78B,114C,149C,173C,362C 'ass':184C 'attack':65B,100C,366C 'attacker-control':99C,365C 'atur':209C 'auth':210C 'backtrack':59B,131C 'bearer':227C 'begin':274C 'behavior':353C 'caus':109C,379C 'certain':98C 'concept':332C 'consum':93C,203C 'consumpt':382C 'control':101C,367C 'coverag':349C 'cpu':72B,95C,381C 'craft':62B 'cve':10A,18A 'cwe':28B 'd':187C 'datadog':30B,44B 'dd':2A,22A,25A,32B,41B,159C,174C 'dd-trace':1A,21A,24A,31B,40B 'default':51B,122C,395C 'denial':110C,357C 'detail':120C,333C 'drive':71B 'dss':301C 'ecdsa':302C 'ed':208C 'enabl':393C 'end':286C 'entic':211C 'excess':60B,94C,130C,380C 'exhibit':129C 'exploit':377C 'express':85C,356C 'extend':153C 'ey':257C,263C 'f':255C 'fix':167C 'gh':241C 'ghsa':14A 'ghsa-x94g-w73q-hpcw':13A 'host':39B 'hpcw':17A 'http':117C,139C,398C 'i-l':258C,264C 'id':201C,204C 'impact':354C 'includ':347C,401C 'input':63B,102C,335C 'integr':119C,399C 'key':200C,205C,283C,295C 'l':260C,266C 'latenc':385C 'librari':48B 'licat':199C 'make':76B 'metadata':141C 'n':297C 'new':182C 'node.js':34B,46B 'npm':35B 'obfusc':9A,54B,88C,126C,161C,176C,374C 'occupi':148C 'old':181C 'omit':340C 'opsu':242C 'oriz':212C 'p':183C 'packag':36B 'pass':190C 'patch':345C 'pattern':127C,133C,375C 'period':154C 'phrase':191C 'privat':194C,280C,292C 'process':97C,107C,146C,364C,391C 'prolong':383C 'proof':330C 'public':195C 'queri':7A,56B,90C,124C,144C,162C,177C,369C,402C 'query-str':123C,143C 'record':138C 'redo':4A,360C 'regex':52B,168C 'regexp':164C,179C 'regress':348C 'regular':84C,355C 'reproduct':337C 'request':69B,106C,384C 'resourc':150C 'restart':171C 'rsa':300C 'secret':192C,197C,206C 'self':38B 'self-host':37B 'send':67B 'servic':112C,359C,387C 'set':158C 'sign':207C 'slow':79B 'span':406C 'ssh':299C 'stall':105C 'step':338C 'string':8A,57B,91C,125C,145C,163C,178C,370C,403C 'success':376C 'summari':82C 'synchron':136C 'tag':407C 'token':202C,234C 'trace':3A,23A,26A,33B,42B,47B,118C,160C,175C 'trigger':334C 'unavail':81B,388C 'url':6A,55B,89C,140C,368C,405C 'use':73B,86C,115C 'version':346C 'vulner':373C,390C 'w':185C,250C,261C,267C,269C 'w73q':16A 'workaround':157C 'x94g':15A 'z':248C,277C,289C 'z0':232C,238C,305C,309C,316C,328C 'za':247C","nicknames":[],"mitigations":[],"who_affected":"Applications that run dd-trace 2.0.0 up to 5.131.1, or 6.0.0 up to 6.20.1, with the HTTP tracing integration enabled. The vulnerable pattern runs by default on query strings in URL span tags, so default configurations are exposed. Teams that do not use dd-trace, or run a patched version, can skip it.","tier":"B","verified":{},"analyst_revisit_at":null,"first_public_at":"2026-10-27T21:07:25+00:00","kev":null,"cvss_vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","cvss_by":"security-advisories@github.com","poc_count":0,"sources":[{"source":"ghsa","external_id":"GHSA-x94g-w73q-hpcw","url":"https://github.com/advisories/GHSA-x94g-w73q-hpcw","severity":"high","published_at":"2026-10-27T21:07:25+00:00","modified_at":"2026-10-27T21:07:27+00:00","first_seen_at":"2026-10-27T21:09:20+00:00","fetched_at":"2026-10-27T21:29:43+00:00","note":null},{"source":"nvd","external_id":"CVE-2026-116693","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-116693","severity":null,"published_at":"2026-10-27T21:18:05+00:00","modified_at":"2026-10-27T21:18:05+00:00","first_seen_at":"2026-10-27T21:29:21+00:00","fetched_at":"2026-10-27T21:29:22+00:00","note":null}],"documents":[],"notice":"Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai"}