-
Notifications
You must be signed in to change notification settings - Fork 343
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
Several security alerts due to indirect outdated dependency #2389
Comments
A person created a fork (of a fork) of Perhaps web-ext can migrate to that. |
I'm really not that thrilled neither by how much we seem to have to keep moving the adbkit dependency from fork to fork, and so my preference is to remove it as a direct web-ext dependency too.
The adbkit dependency is completely unused for any user that is not actively using the support for running the extensions in Firefox for Android, the web-ext module that is using it is loaded lazily and so web-ext isn't going to load the modules from that dependency unless is going to be used. And so the ideal plan would be to:
|
Will this effectively make developers targeting Firefox for Android second-class users of |
That is definitely not the intention, I was really happy to introduce official support for Firefox for Android in web-ext and make that flow a bit less painful, I don't really have any intention to bring that workflow back to be all manual. I believe that we could achieve that kind of split in a way that can help to prevent leaving the other package behind. The current rough idea I have in mind (which I would like to confirm by at least putting together a quick prototype of the reworked npm packages) would be to have an additional npm package, let's call it
in both cases, to not stricly pinning the dependency to a minor or patch version, but just to a major version, to allow to use the package providing the Firefox for Android support over a number of minor and patch version of the web-ext package. |
@rpl but the security issues will still be there for Firefox for Android developers. I think that if Mozilla wants to support I think that the path of making a dependency important for a sub-set of users doesn't make it more secure. I mean, I guess that these warnings are probably false positives, but what if they are not? They are a sign of lack of maintenance, at least. I'm sorry for Firefox for Android developers, but if there aren't enough resources for dealing with security issues I can't see a sane alternative to feature dropping. (BTW, I think we are far 100km each other!) |
@mdesantis that is part of what I was mentioning in #2389 (comment), described as:
Whenever possible I preferred to contribute to the existing dependency, at least if there was enough activity to consider that a viable approach, in some other cases I just rewrote what we were using from the dependency in a smaller module part of web-ext itself. In this particular case I'm not sure yet about how small I may manage to make a replacement module that provides just the subset of features we actually use, and so I'm also considering other plans as I did mention in my previous comments.
Splitting a feature in a separate package doesn't solve the issue on its own, I'm very well aware of that and never implied that it was going to. Nonetheless, personally I think that splitting one big chain of dependencies into smaller ones and keep the core package lighter in terms of direct dependencies may at least help me to reduce the amount of "all at once" unplanned spikes of work needed to untangle issues in the dependencies chain (which based on my personal experience are more often affecting a package deep down into the dependency chain, then how often I had to handle one affecting a direct dependency).
Amazing, I didn't notice it until you mentioned it, we definitely are pretty near to each other :-D |
@rpl what about this? https://github.com/UrielCh/adbkit seems actively maintained right now. It might even work as-it-is |
I agree with Luca that we might not want to switch to/between random forks all the time. This is also a dependency risk mitigation issue. |
This is now fixed in the web-ext v7.0.0 (which we just released on npm).
|
… node-forge Updates the web-ext package to 7.0.0 See: - mozilla/web-ext#2389 - CVE-2022-24771
… node-forge Updates the web-ext package to 7.0.0 See: - mozilla/web-ext#2389 - CVE-2022-24771
… node-forge (#357) Updates the web-ext package to 7.0.0 See: - mozilla/web-ext#2389 - CVE-2022-24771
Is this a feature request or a bug?
It is a bug (somehow related to #2025)
What is the current behavior?
web-ext
depends on@devicefarmer/adbkit
, which in turn depends on an outdated version ofnode-forge
, which has several security issues:What is the expected or desired behavior?
The expected behavior is that adding
web-ext
as dependency shouldn't import security issues.I think
web-ext
shouldn't depend on@devicefarmer/adbkit
as it doesn't seem maintained, but I don't know how hard is the@devicefarmer/adbkit
dependency. Alternatively, work may be done on@devicefarmer/adbkit
in order to updatenode-forge
on their side.Version information (for bug reports)
The text was updated successfully, but these errors were encountered: