KeygraphLabs · CVE MCP

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.

CVSS
7.5
high, from NVD
EPSS
2.19%
percentile 83.1%, chance of exploitation in 30 days
Exploitation
None known
no KEV listing or public exploit in our indexes

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-09Published
2023-01-09Package advisory GHSA-9vvw-cc9w-f27h
2026-06-17Record last changed
2026-11-30EPSS when our history starts: 2.19%
2026-12-02Code-level analysis added

Affected packages

AdvisoryPackageFixed in
GHSA-9vvw-cc9w-f27hdebug (npm)3.1.0
GHSA-9vvw-cc9w-f27hdebug (npm)2.6.9

Also known as: GHSA-9vvw-cc9w-f27h

Credited: VulDB GitHub Commit Analyzer (tool)

Related

CVEPublishedCVSSSummary
CVE-2025-591442025-09-158.8debug@4.4.2 contains malware after npm account takeover
CVE-2017-161372018-06-075.3same package: debug (npm)
CVE-2026-1339372026-11-205.3highlight highlight.js Language Grammar livescript.js hljs.highlight redos
CVE-2026-1202172026-11-014.3Delgan loguru ANSI Color-Markup _colorizer.py AnsiParser.feed redos
CVE-2026-1123002026-10-196.9DiffSK configobj __init__.py _sectionmarker redos
CVE-2026-921142026-09-156.9a2ui-project a2ui Basic Catalog safe_regex.ts redos
CVE-2026-114782026-06-083.3kokke tiny-regex-c Pattern re.c matchstar redos
CVE-2026-106922026-06-034.3johnhuang316 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.

NVD · CVE.org