site-performance-tracker icon indicating copy to clipboard operation
site-performance-tracker copied to clipboard

Update package.json to newer, secure versions

Open mehigh opened this issue 2 years ago • 3 comments

https://github.com/xwp/site-performance-tracker/security/dependabot

mehigh avatar Mar 14 '22 11:03 mehigh

@mehigh Here are my initial findings:

Regular expression denial of service (https://github.com/xwp/site-performance-tracker/security/dependabot/3):

Uncontrolled Resource Consumption in markdown-it (https://github.com/xwp/site-performance-tracker/security/dependabot/1):

Would should be my approach? I've seen ways to force dependency versions but that doesn't seem like a very stable way to handle these vulnerabilities.

loganwisniewski avatar Mar 16 '22 23:03 loganwisniewski

@loganwisniewski please contribute a PR which updates all of the dependencies to the latest versions. If there are libraries still relying on a vulnerable version we can create a ticket in their repositories and contribute a fix there, as it happens with the wordpress/scripts.

We don't need to spend a lot of time on this, but at least do our due diligence in at least passing (or contributing too, as it is not too much of an ask for a npm dependency) the information and improving security in the tools we're using.

mehigh avatar Mar 17 '22 12:03 mehigh

The result of npm audit fix should be enough. The only dependency we're actually using outside of dev-dependencies is:

https://github.com/xwp/site-performance-tracker/blob/6be53c6225f9c8954a5a04b4dcbeb77488a682bb/package.json#L65-L67

so we can ignore any dev-dependency related warnings.

kasparsd avatar Mar 17 '22 12:03 kasparsd