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

Address lodash security vulnerabilities #85

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

robotfelix
Copy link

@robotfelix robotfelix commented Jan 31, 2021

I can see a number of forks that have attempted to simply update the version dependence, and the same strategy is also applied in the existing PR #82

Simply updating the dependency version appears to lead to errors (at least in my usage) due to a breaking change between lodash 3.x and 4.x, so this PR adds a further update to change usages of _.contains to _.includes to restore working behaviour with lodash >=4.17.19 (older versions have at least one security vulnerability).

I've also taken the opportunity to change the version requirement to a ">=", since this package doesn't get many updates and this will allow users of this package to update lodash to address future security vulnerabilities more easily (even if they may run into incompatibilities due to breaking changes). It would appear that lodash 3.x had no breaking changes that affected this package, so the version requirement has been needlessly strict.

This addresses numerous security vulnerabilities present in the previous requirement of "^2.4.1":
* CVE-2018-3721
* CVE-2018-16487
* CVE-2019-10744
* CVE-2019-1010266
* CVE-2020-8203

The change to a ">=" dependency version is intended to allow users of this package to update lodash to address security vulnerabilities more easily in future, even if they *may* run into incompatibilities due to breaking changes, as this package doesn't appear to get updated regularly.
This is required due to a breaking change in the upgrade from lodash 3.x to 4.x.
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

Successfully merging this pull request may close these issues.

1 participant