{"answers":{"affected":"4 open source packages ship an affected version, including debug. It affects 1 product.","exploited":"There is no known exploitation of CVE-2017-20165 in the wild and no public exploit code.","fix":"Upgrade debug to a fixed version for your release line: 2.6.9 or 3.1.0.","what":"CVE-2017-20165 is a low-severity denial of service vulnerability in debug-js debug, published on 9 Jan 2023. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2017-20165 and fix it if it is affected.\n\nWhat it is: CVE-2017-20165 is a low-severity denial of service vulnerability in debug-js debug, published on 9 Jan 2023. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2017-20165 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- debug (npm): affected all versions; fixed in 2.6.9\n- debug (npm): affected all versions; fixed in 2.6.9\n- debug (npm): affected from 3.0.0; fixed in 3.1.0\n- debug (npm): affected from 3.0.0; fixed in 3.1.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2017-20165/ (Markdown: https://insights.sbomify.com/CVE-2017-20165/index.md)","id":"CVE-2017-20165","markdown":"https://insights.sbomify.com/CVE-2017-20165/index.md","name":"CVE-2017-20165","record":{"aliases":["CLSA-2026-1772928826","CLSA-2026-1773101692","CLSA-2026-1777077475","CLSA-2026-1777077476","CLSA-2026-1777077478","CLSA-2026-1777077479","CLSA-2026-1781484845","CLSA-2026-1784596327","CLSA-2026-1784682965","CLSA-2026-1784683087","CLSA-2026-1784769528","DEBIAN-CVE-2017-20165","GHSA-9vvw-cc9w-f27h","ROOT-APP-NPM-CVE-2017-20165","UBUNTU-CVE-2017-20165"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Node.js debug library","requires_auth":"low_privilege","summary":"An attacker can cause a denial of service in the debug-js library by triggering inefficient regular expression complexity in the useColors function.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"VulDB","cpe":[{"product":"debug","vendor":"debug_project"}],"cvss":{"score":3.5,"severity":"low","source":"cna","vector":"CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L","version":"3.1"},"cwes":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"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 identifier of the patch is c38a0166c266a679c8de012d4eaccec3f944e685. It is recommended to upgrade the affected component. The identifier VDB-217665 was assigned to this vulnerability.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":"2023-01-11","github_poc":1,"max_poc_stars":15,"metasploit":0,"nuclei":0,"refs":[{"date":"2023-01-11T10:20:27Z","kind":"github_poc","ref":"https://github.com/fastify/send","stars":15,"title":"Fork of the send module to deal with CVE-2017-20165"}],"tier":"poc_unverified"},"has_fix":true,"headline":"debug-js debug node.js useColors redos","id":"CVE-2017-20165","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"denial_of_service","year":"2017"},"n_packages":4,"n_references":5,"next":{"headline":"Ecto missing `is_nil` requirement","id":"CVE-2017-20166"},"packages":[{"ecosystem":"npm","fixed":["2.6.9"],"introduced":["0"],"last_affected":[],"package":"debug","purl":null,"source":"GHSA-9vvw-cc9w-f27h"},{"ecosystem":"npm","fixed":["2.6.9"],"introduced":["0"],"last_affected":[],"package":"debug","purl":"pkg:npm/debug","source":"GHSA-9vvw-cc9w-f27h"},{"ecosystem":"npm","fixed":["3.1.0"],"introduced":["3.0.0"],"last_affected":[],"package":"debug","purl":null,"source":"GHSA-9vvw-cc9w-f27h"},{"ecosystem":"npm","fixed":["3.1.0"],"introduced":["3.0.0"],"last_affected":[],"package":"debug","purl":"pkg:npm/debug","source":"GHSA-9vvw-cc9w-f27h"}],"prev":{"headline":"Symbiote Seed Login SecurityLoginExtension.php onBeforeSecurityLogin redirect","id":"CVE-2017-20164"},"products":["debug"],"published":"2023-01-09","related":[{"cvss_score":5.3,"headline":"Regular Expression Denial of Service in debug","id":"CVE-2017-16137","kev_date_added":null,"published":"2018-06-07"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-08-05","vendors":["debug-js"]},"summary":"An attacker can cause a denial of service in the debug-js library by triggering inefficient regular expression complexity in the useColors function.","url":"https://insights.sbomify.com/CVE-2017-20165/"}