{"id":"CVE-2017-20165","published":"2023-01-09T09:33:18Z","modified":"2024-08-05T21:45:26Z","title":"debug-js debug node.js useColors redos","vendor":"debug-js","product":"debug","tier":"tail","description":{"text":"A vulnerability classified as problematic has been found in debug-js debug up to 3.0.x. This affects the function useColors of the file src/node.js. The manipulation of the argument str leads to inefficient regular expression complexity. Upgrading to version 3.1.0 is able to address this issue. The identifier of the patch is c38a0166c266a679c8de012d4eaccec3f944e685. It is recommended to upgrade the affected component. The identifier VDB-217665 was assigned to this vulnerability.","provenance":"source","from":"CVE.org"},"cvss":{"score":3.5,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02187,"percentile":0.82852,"provenance":"source"},"cwes":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"references":[{"url":"https://vuldb.com/?id.217665","tags":["vdb-entry","technical-description"]},{"url":"https://vuldb.com/?ctiid.217665","tags":["signature","permissions-required"]},{"url":"https://github.com/debug-js/debug/pull/504","tags":["issue-tracking"]},{"url":"https://github.com/debug-js/debug/commit/c38a0166c266a679c8de012d4eaccec3f944e685","tags":["patch"]},{"url":"https://github.com/debug-js/debug/releases/tag/3.1.0","tags":["patch"]}],"priority":{"score":24.0,"factors":[{"name":"EPSS percentile","points":16.57},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":2.45}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2023-01-11","earliestUrl":"https://github.com/fastify/send","repos":[{"name":"fastify/send","url":"https://github.com/fastify/send","stars":16,"created":"2023-01-11"}]},"first":{"date":"2023-01-11","source":"PoC-in-GitHub","url":"https://github.com/fastify/send"},"provenance":"source"},"vendorSlug":"debug-js","affectedVersions":[{"vendor":"debug-js","product":"debug","versions":["3.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-07-18T18:05:03.282364Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"debug","vulnerableRanges":[">=3.0.0, <3.1.0","<2.6.9"],"patched":["3.1.0","2.6.9"],"from":["GHSA-9vvw-cc9w-f27h"],"provenance":"source"}],"summary":{"text":"The debug-js debug package (up to 3.0.x) has an inefficient regular expression complexity flaw in the useColors function of src/node.js, where manipulation of the str argument triggers excessive processing time. An attacker with adjacent network access and low-privileged authentication, requiring no user interaction, can cause a denial of service by supplying crafted input, and the issue is fixed in version 3.1.0.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:36:26Z"},"euvd":{"id":"EUVD-2023-0434","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-hackerone-debug-node-module-cve-2017-16137","parents":[{"from":"CVE-2017-16137","to":"CVE-2017-20165","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/node.js"],"commits":["https://github.com/debug-js/debug/commit/4e2150207c568adb9ead8f4c4528016081c88020","https://github.com/debug-js/debug/commit/71169065b5262f9858ac78cc0b688c84a438f290","https://github.com/debug-js/debug/commit/c38a0166c266a679c8de012d4eaccec3f944e685","https://github.com/debug-js/debug/commit/f53962e944a87e6ca9bb622a2a12dffc22a9bb5a"],"basis":"shared function","functions":["useColors"]}]}]}}