CVE-2017-16137
Regular Expression Denial of Service in debug
Description
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.
Affected Maven artifacts (3)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.mvnpm » debugvia npm debug | < 2.6.9>= 3.0.0, < 3.1.0>= 3.2.0, < 3.2.7>= 4.0.0, < 4.3.1 | 2.6.9, 3.1.0, 3.2.7, 4.3.1 |
| org.webjars » debugvia npm debug | < 2.6.9>= 3.0.0, < 3.1.0>= 3.2.0, < 3.2.7>= 4.0.0, < 4.3.1 | 2.6.9, 3.1.0, 3.2.7, 4.3.1 |
| org.webjars.npm » debugvia npm debug | < 2.6.9>= 3.0.0, < 3.1.0>= 3.2.0, < 3.2.7>= 4.0.0, < 4.3.1 | 2.6.9, 3.1.0, 3.2.7, 4.3.1 |
Blast radius
27% of the dependent artifacts (10) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 71 |
| 2 hops | 29 |
| 3 hops | 7 |
Most used dependents
- org.webjars.npm » express38 usages
- org.webjars.npm » body-parser16 usages
- org.webjars.npm » connect14 usages
- org.webjars.npm » mocha11 usages
- org.webjars.npm » socket.io-client9 usages
- org.webjars.npm » serve-static8 usages
- org.webjars.npm » karma7 usages
- org.webjars.npm » browser-sync7 usages
- org.webjars.npm » extract-zip7 usages
- org.webjars.npm » send6 usages
- org.webjars.npm » socket.io5 usages
- org.webjars.npm » finalhandler4 usages
- org.webjars.npm » openlayers4 usages
- org.mvnpm » mocha4 usages
- org.webjars.npm » engine.io3 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
Other ecosystems
Also affects npm (1 package) . See all on OSV
References
| Advisory | NVD CVE-2017-16137 | nvd.nist.gov |
| Package | visionmedia/debug | github.com |
| Web | debug-js/debug issue #797 | github.com |
| Web | visionmedia/debug issue #501 | github.com |
| Web | visionmedia/debug pull request #504 | github.com |
| Web | debug-js/debug commit 4e21502 | github.com |
| Web | debug-js/debug commit 7116906 | github.com |
| Web | debug-js/debug commit b6d12fd | github.com |
| Web | debug-js/debug commit f53962e | github.com |
| Web | thread.html/r8ba4c628fba7181af58817d452119481adce4ba92e889c643e4c7dd3@<commits.netbeans.ap ... | lists.apache.org |
| Web | thread.html/rb5ac16fad337d1f3bb7079549f97d8166d0ef3082629417c39f12d63@<notifications.netbe ... | lists.apache.org |
