Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This version of debug is vulnerable to ReDos attacks #124

Open
epg323 opened this issue Feb 18, 2020 · 3 comments
Open

This version of debug is vulnerable to ReDos attacks #124

epg323 opened this issue Feb 18, 2020 · 3 comments

Comments

@epg323
Copy link

epg323 commented Feb 18, 2020

This project uses the debug package

Debug has been tagged by the audit package as having low severity vulnerabilities.

Debug should be updated, unless there is a reason not to update it.

https://www.npmjs.com/advisories/534

@derricktang94
Copy link

Yes, I'm having the same issue

@iamle0pard
Copy link

We are seeing this issue as well because we include 'serverless' which has child dependencies that use this.

yarn audit v1.22.4
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ low │ Regular Expression Denial of Service │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package │ debug │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in │ >= 2.6.9 < 3.0.0 || >= 3.1.0
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ serverless │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path │ serverless > @serverless/components > │
│ │ @serverless/platform-client-china > @serverless/utils-china │
│ │ > socket.io-stream > debug
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info │ https://www.npmjs.com/advisories/534
└───────────────┴──────────────────────────────────────────────────────────────┘
1 vulnerabilities found - Packages audited: 1652
Severity: 1 Low
Done in 3.22s.

The solution is to update the package.json to a newer version of 'debug' (>= 2.6.9 < 3.0.0 || >= 3.1.0 )

@iamle0pard
Copy link

By the way, for anyone who is hitting this issue due to it being a child dependency of serverless, you can update your existing package.json to include this:

"resolutions": {
   "@serverless/utils-china": "^0.1.15"
}

to fix the issue. After doing this the vulnerability goes away.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants