get icon indicating copy to clipboard operation
get copied to clipboard

Dependabot alerts: Got allows a redirect to a UNIX socket

Open el3um4s opened this issue 3 years ago • 3 comments

This warning appears in my projects:

Dependabot alerts: Got allows a redirect to a UNIX socket

The latest possible version that can be installed is 9.6.0 because of the following conflicting dependencies:

[email protected] requires got@^9.6.0 via @electron/[email protected]
[email protected] requires got@^9.6.0 via a transitive dependency on [email protected]
[email protected] requires got@^9.6.0 via a transitive dependency on [email protected]

Is there anything that can be done?

el3um4s avatar Jun 26 '22 10:06 el3um4s

Could anyone help me to fix this issue: Open Redirect [Medium Severity][https://snyk.io/vuln/SNYK-JS-GOT-2932019] in [email protected] introduced by @electron/[email protected] > [email protected] and 1 other path(s) This issue was fixed in versions: 11.8.5, 12.1.

shellatomic avatar Jun 26 '22 12:06 shellatomic

In my opinion this is not a high priority for @electron/get. In order to trigger this, it needs to either hijack the user's DNS or their environment variables. If either of those conditions happen, you have larger problems and the attacker might as well do other, less convoluted attacks.

That being said, it will eventually get fixed. However, due to the major version bump of got (which increases the minimum Node.js version), this will not affect any currently released version of the electron npm module, as changing the minimum Node.js version (even transitively) is considered a major breaking change.

malept avatar Jul 07 '22 16:07 malept

It would be nice to get this fixed by applying the already existing PR. I use Electron in a lot of my projects and it is a bit annoying to get audit warnings from NPM and from Github's dependabot all the time because of this got issue.

In my opinion it is not a good practice to rely on old dependencies which seems to be no longer supported upstream. If you have strong reasons to stay at version 9 then maybe ask the author of got to publish a new patched version 9 to get this issue out of the way?

kayahr avatar Jul 31 '22 15:07 kayahr

This is an incredibly annoying problem. The warning alone is an annoyance, but it becomes more annoying when your project's release was needlessly delayed because senior developers from the other team thought npm's warnings in the CI/CD logs implied your codebase was vulnerable. I don't know if the above PR fixed this issue but even on the latest versions of electron and electron-builder the warning is still present.

loukamb avatar Nov 14 '22 14:11 loukamb

Looks like this problem is already fixed since @electron/get v2 which is used in electron v22. Problem is, electron 22 is not yet released (but installable with npm i electron@beta). So we just have to wait. There is nothing else to do.

And I guess this ticket can be closed.

kayahr avatar Nov 14 '22 17:11 kayahr