-
Notifications
You must be signed in to change notification settings - Fork 754
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
Dependency on specific version of ua-parser-js prevents vulnerabilities in downstream projects from being fixed #2009
Comments
Please fix this. My npm audit is complaining about high severity vulnerabilities. |
This can be closed since it was fixed by #2007. |
Fixed in |
The change made in #2007 doesn't address this problem because it just updates the dependency to a new specific version. Using a version range would allow consumers of this library to determine the exact version used, which would allow them to address security vulnerabilities in their own projects without waiting for projects in the middle of the dependency chain, like this one, to be updated. |
@mattwelke thanks! I was too eager in closing this - I saw 'ua-parser-js' title and looked no further, my apologies 🙏🏻 |
No problem. I think this is a controversial opinion I have here too. It's definitely something the maintainers should all think about and agree on. I see the resolution to this issue being either to close it with a new PR that switches to depending on a range of versions (usually patch), or to close it as a "won't fix" because the maintainers choose to continue pinning to an exact dependency. There are pros and cons to both approaches and both are valid. Either way, I'm glad people can address this immediate security vulnerability. Thanks! |
|
Issue details
I was addressing a Dependabot security vulnerability but it said that my project could not update to a fixed version of the dependency in question,
ua-parser-js
, becausebrowser-sync
requires a specific version of it:Steps to reproduce/test case
Create NPM project that uses browser-sync
Add dependency on
browser-sync@2.27.11
to project. Observe warning message:2 high severity vulnerabilities
Run
npm audit fix
. Observe error:Please specify which version of Browsersync, node and npm you're running
Affected platforms
Browsersync use-case
If CLI, please paste the entire command below
n/a
CLI is the way it's used in my project but this issue comes up before it is used as a CLI.
The text was updated successfully, but these errors were encountered: