Packages / debug / Security

HighVulnerabilityGHSA-9vvw-cc9w-f27hCVE-2017-20165Published 9 Jan 2023

debug Inefficient Regular Expression Complexity vulnerability

Your version

Affected releases · debug

  • 3.x3.0.0 – 3.0.1Fixed in 3.1.0
  • 2.x2.0.0 – 2.6.8Fixed in 2.6.9
  • 1.x and older0.0.1 – 1.0.5No fix, no longer updated

On 3.x, the newest line:

npm install debug@3.1.0
Every release on a timeline
4.x
  1. Not affected

    4.0.0 – 4.4.3

    17 releases, latest

3.x
  1. Affected

    3.0.0 – 3.0.1

    2 releases

  2. Fixed

    3.1.0 – 3.2.7

    9 releases

2.x
  1. Affected

    2.0.0 – 2.6.8

    28 releases

  2. Fixed

    2.6.9

    1 release

1.x
  1. Affected

    1.0.0 – 1.0.5

    6 releases

0.x
  1. Affected

    0.0.1 – 0.8.1

    15 releases

78 stable releases of debug, oldest to newest, one row per major.

What happens

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 c38a016. 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.