HighGHSA-9vvw-cc9w-f27hCVE-2017-20165

debug Inefficient Regular Expression Complexity vulnerability

Published 9 Jan 2023 · Updated 8 Nov 2023

Affected packages

Affected
>=3.0.0 <3.1.0
Fixed in
3.1.0
Update to the fixed version for your release line, for example:npm install debug@3.1.0
Affected
<2.6.9
Fixed in
2.6.9
Update to the fixed version for your release line, for example:npm install debug@2.6.9

Details

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.

Is GHSA-9vvw-cc9w-f27h in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected debug, and gives you the command that fixes it.

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.