CVE-2017-20165debug-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.
What to do
Fixed builds are available from Debian, npm: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | node-debug | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | node-debug | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | node-debug | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | node-debug | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | node-debug | Not affected vulnerable_code_not_present | ||
| Ubuntu 18.04 | node-debug | Fix pending | UBUNTU-CVE-2017-20165 | |
| Ubuntu 16.04 | node-debug | Fix pending | UBUNTU-CVE-2017-20165 | |
| Ubuntu 14.04 | node-debug | Fix pending | ||
| Debian 14 | node-debug | Fixed | 3.1.0-1 | DEBIAN-CVE-2017-20165 |
| Debian 13 | node-debug | Fixed | 3.1.0-1 | DEBIAN-CVE-2017-20165 |
| Debian 12 | node-debug | Fixed | 3.1.0-1 | DEBIAN-CVE-2017-20165 |
| npm library | debug | Fixed | 3.1.0 | GHSA-9vvw-cc9w-f27h |
What the vendor says
As published in the CVE record by VulDB, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- debug-js debug: affected: 3.0
Vendor advisories:
- https://github.com/debug-js/debug/commit/c38a0166c266a679c8de012d4eaccec3f944e685 (patch)
- https://github.com/debug-js/debug/releases/tag/3.1.0 (patch)
References
- https://vuldb.com/?id.217665
- https://vuldb.com/?ctiid.217665
- https://github.com/debug-js/debug/pull/504
- https://github.com/debug-js/debug/commit/c38a0166c266a679c8de012d4eaccec3f944e685
- https://github.com/debug-js/debug/releases/tag/3.1.0
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.