NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
📦
📦 npm
Not in CISA KEV
HIGH severity

CVE-2017-20165 — debug

HIGHFix: debug-js/debug@c38a016

CVE-2017-20165 is a high-severity (CVSS 7.5) CWE-1333 vulnerability in debug. 2 public exploit or proof-of-concept references are indexed, so weaponization risk is real. A fix is available for debug — see the affected versions and patch details below.

debug Inefficient Regular Expression Complexity vulnerability

Also known asGHSA-9vvw-cc9w-f27h
Published
Updated
Affected
2 pkgs
Patched
2 / 2
Exploits
2 known
Exploitation data as of Oct 24, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

Exploitation Status

No confirmed exploitation observed yet

  • CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.

Exploitation and automatability from CISA’s SSVC triage for CVE-2017-20165.

EPSS Exploitation Probability

via FIRST.org ↗
2.1%probability of exploitation in next 30 days
Lower Risk+0.06%
Lower risk than most CVEs82th percentile — riskier than 82% of all scored CVEsHighest risk
1.08%1.59%2.10%2.60%1.6%2.1%Apr 26Aug 26Oct 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

Where this sits among everything scored

Real-World Exposure

2 pkgs affected

How broadly this vulnerability is actually deployed: weekly install volume shows current usage, and reverse-dependency count shows how many other packages break if it stays unpatched.

57Kother npm packages depend on this — each one inherits the vulnerability until it's patched upstream
debugnpm
458.6Mdownloads / week

Description

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 name of the patch is c38a0166c266a679c8de012d4eaccec3f944e685. It is recommended to upgrade the affected component. The identifier VDB-217665 was assigned to this vulnerability. The patch has been backported to the 2.6.x branch in version 2.6.9.

Affected Packages

2 total 2 fixed
EcosystemPackageVulnerable rangeFix
📦npmdebug≥ 3.0.0&&< 3.1.03.1.0npm install debug@3.1.0
📦npmdebugall versions2.6.9npm install debug@2.6.9

Affected Products

1 product · 2 configurations
Application
debugdebug_project
≥ 3.0.0 && < 3.1.0
range
Exploits & PoCs
2

Research use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for debug, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update debug to 3.1.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2017-20165 is resolved across your whole dependency graph.

  3. Workarounds

    If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.

Frequently Asked Questions

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 name of the patch is c38a0166c266a679c8de012d4eaccec3f944e685. It is recommended to upgrade the affected component. The identifier VDB-217665 was assigned to this vulnerability. The patch has been backported to the 2.6.x branch in version 2.6.9.
O3 Security · Impact-Aware SCA

Is CVE-2017-20165 in your dependencies?

Find it across npm, including transitive dependencies.

CVE-2017-20165: debug — Fixed in 3.1.0