You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"Regular Expression Denial of Service" security issues on dependencies #4266
changed the title [-]"Regular Expression Denial of Service" security issue on dependencies[/-][+]"Regular Expression Denial of Service" security issues on dependencies[/+]on Oct 19, 2017
@montymxb yes, that's right. Anyways, since parse-server uses those modules, it will probably "inherit" the security issues. The fix should be simple: just need to upgrade the modules to their patched versions, which are:
mime >= 2.0.3
express >= 4.15.5
The mailgun-js dependency used in the parse-server-simple-mailgun-adapter package has also to be fixed, but it can't be upgraded because it doesn't have a published version with the fix yet (but it's fixed in their github repo, so I guess they should publish it soon).
I would also recommend to add nsp module (or similar) and add nsp check to posttest or pretest script to automatically verify that the dependencies used by the project don't have vulnerabilities.
@c3s4r thanks for the recommendation! We're looking into adding this (or an equivalent like snyk) into the flow as part of our CI. This will stay open until we've settled on a solution.
Activity
[-]"Regular Expression Denial of Service" security issue on dependencies[/-][+]"Regular Expression Denial of Service" security issues on dependencies[/+]montymxb commentedon Oct 20, 2017
@c3s4r am I correct in saying that it looks like all the potential issues you've found are in dependent projects, rather than parse-server itself?
c3s4r commentedon Oct 20, 2017
@montymxb yes, that's right. Anyways, since
parse-serveruses those modules, it will probably "inherit" the security issues. The fix should be simple: just need to upgrade the modules to their patched versions, which are:The
mailgun-jsdependency used in theparse-server-simple-mailgun-adapterpackage has also to be fixed, but it can't be upgraded because it doesn't have a published version with the fix yet (but it's fixed in their github repo, so I guess they should publish it soon).I would also recommend to add
nspmodule (or similar) and addnsp checktoposttestorpretestscript to automatically verify that the dependencies used by the project don't have vulnerabilities.Bumps mime, express, closes #4266
montymxb commentedon Oct 24, 2017
@c3s4r thanks for the recommendation! We're looking into adding this (or an equivalent like snyk) into the flow as part of our CI. This will stay open until we've settled on a solution.
montymxb commentedon Oct 25, 2017
Closing as #4285 has been merged in to resolve this. Thanks again!