-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Security vulnerability in package tar #2061
Comments
Webpacker doesn't have a direct dependency on tar. The package that does is Relevant Info here: nodejs/node-gyp#1717 |
I think this issue has been closed on |
They have released v4 which fixes (i think 2) high vulnerabilities |
How does one actually update node-gyp? I try running
|
@chrismanderson, my understanding is But, if you really want to do this, here is a guide on updating the bundled node gyp: https://github.com/nodejs/node-gyp/wiki/Updating-npm's-bundled-node-gyp. If you are on Fair warning: updating library internals without waiting for a release can lead to breakage, good luck. Npm has fixed: https://github.com/npm/cli/blob/latest/package-lock.json#L6239 I am going to close this since there is nothing webpacker can do except wait for yarn to update, feel free to re-open if the situation changes. Plus, you're not going to be extracting tarballs with |
"I" don't need to install it - but looks like webpacker does have a dependency. Just set up a new Rails 6rc1 app with Webpacker 4 - (Freely admit that my knowledge of node packages is pretty limited, and boils down to doing what the |
Ok, rewind. You can try this for yourself with
It can be both. Think of your This is why I linked the lock files, it specifies what version each is using. In our case, You very well could ninja-swap the dependencies to be updated, but I would advise against it. The fix was released 14 days ago, I would wait at least 2 more weeks. |
That was a super helpful explanation - thank you! Will definitely avoid ninja swapping and just wait. |
webpacker uses a vulnerable version of
tar
, see https://www.npmjs.com/advisories/803 for more details on the security issue.tar >=4.4.2
is patched, but webpacker has yet to update its version oftar
Expected Behavior
Use the patched version of
tar
Current Behavior
Uses a vulnerable version of
tar
Possible Solution
Update
tar
The text was updated successfully, but these errors were encountered: