CVE-2017-20165 · VulDB
debug-js debug node.js useColors redos
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.
Published 2023-01-09, last changed 2026-06-17. Weakness: CWE-1333.
How to fix
Upgrade to a fixed version: debug 2.6.9, 3.1.0 (npm) (each is the fix for its own release line). For the version that clears every advisory for your installed version, ask an agent for get_remediation.
Where the flaw is in the code
Fixed in debug-js/debug by c38a0166c2, pull request #504, f53962e944. Functions changed by the fix: o. Confidence: verified (a record names this commit as the fix, and it changed these functions).
Timeline
| 2023-01-09 | Published |
| 2023-01-09 | Package advisory GHSA-9vvw-cc9w-f27h |
| 2026-06-17 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 2.19% |
| 2026-12-02 | Code-level analysis added |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-9vvw-cc9w-f27h | debug (npm) | 3.1.0 |
| GHSA-9vvw-cc9w-f27h | debug (npm) | 2.6.9 |
Also known as: GHSA-9vvw-cc9w-f27h
Credited: VulDB GitHub Commit Analyzer (tool)
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2025-59144 | 2025-09-15 | 8.8 | debug@4.4.2 contains malware after npm account takeover |
| CVE-2017-16137 | 2018-06-07 | 5.3 | same package: debug (npm) |
| CVE-2026-133937 | 2026-11-20 | 5.3 | highlight highlight.js Language Grammar livescript.js hljs.highlight redos |
| CVE-2026-120217 | 2026-11-01 | 4.3 | Delgan loguru ANSI Color-Markup _colorizer.py AnsiParser.feed redos |
| CVE-2026-112300 | 2026-10-19 | 6.9 | DiffSK configobj __init__.py _sectionmarker redos |
| CVE-2026-92114 | 2026-09-15 | 6.9 | a2ui-project a2ui Basic Catalog safe_regex.ts redos |
| CVE-2026-11478 | 2026-06-08 | 3.3 | kokke tiny-regex-c Pattern re.c matchstar redos |
| CVE-2026-10692 | 2026-06-03 | 4.3 | johnhuang316 code-index-mcp search_code_advanced is_safe_regex_pattern redos |
Add it to your agent
One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.
claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp
Then ask for triage_cve CVE-2017-20165, or call /api/v1/vulnerabilities/CVE-2017-20165. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.