Advisory

GHSA-gxpj-cx7g-858c

Also known as: CVE-2017-16137

Summary

Regular Expression Denial of Service in debug

Details

Affected versions of debug are vulnerable to regular expression denial of service when untrusted user input is passed into the o formatter.

As it takes 50,000 characters to block the event loop for 2 seconds, this issue is a low severity issue.

This was later re-introduced in version v3.2.0, and then repatched in versions 3.2.7 and 4.3.1.

Recommendation

Version 2.x.x: Update to version 2.6.9 or later.
Version 3.1.x: Update to version 3.1.0 or later.
Version 3.2.x: Update to version 3.2.7 or later.
Version 4.x.x: Update to version 4.3.1 or later.

Severity

Low Basis: The source's own band: LOW

Dates

Published
2018-08-09 20:18 UTC
Modified
2026-09-10 03:47 UTC

Affected packages and fixes

debug

npm · All systems

Affected

  • introduced 0, fixed 2.6.9 (semver)

Fixed versions

2.6.9

Fix

debug

npm · All systems

Affected

  • introduced 3.0.0, fixed 3.1.0 (semver)

Fixed versions

3.1.0

Fix

debug

npm · All systems

Affected

  • introduced 3.2.0, fixed 3.2.7 (semver)

Fixed versions

3.2.7

Fix

debug

npm · All systems

Affected

  • introduced 4.0.0, fixed 4.3.1 (semver)

Fixed versions

4.3.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences