-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[Security] Vulnerability in tar
#2625
Comments
Dealing with the same issue. Tried |
Anyone who's looking for a temporary workaround until this gets fixed, I managed to update You need to remove Then replace the version in the
Then delete your node_modules and run |
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
You might have several transitive dependencies on multiple versions of |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
package-lock.json
↓
↓
|
@osushi-desushi Your solution has worked, no vulnerabilities. Thanks a ton! |
This comment has been minimized.
This comment has been minimized.
|
Watch this space: Once node-gyp 3.8.1 comes out, node-sass can update the dependency. |
Fixing last high-severity warning, modifying the package-lock file by hand as per sass/node-sass#2625
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Manually removed vulnerability by upgrading 'tar' package from 2.2.1 to 4.4.8 (https://stackoverflow.com/questions/55635378/angular-devkit-build-angular-arbitrary-file-overwrite). angular-devkit and node-sass issues are still open. (angular/angular-cli#14138, sass/node-sass#2625). Will permanently be fixed once above 2 issues are addressed by Angular and node-sass teams.
This comment has been minimized.
This comment has been minimized.
If node-gyp releases a 3.8.1 (or 3.9) there will be no need for a node-sass release as that is in the version range in the package.json already. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Locking the thread, since this is going off topic |
For those following along. There's a lot of moving pieces that slowing down resolving this issue. As stated my @meszaros-lajos-gyorgy in #2625 (comment) the node-gyp are currently blocked from creating a patch because they're using an older version of node-tar to maintain support for older Node versions. Updating node-tar to address this vulnerability would mean breaking support for older versions on Node. There is a good summary of the node-gyp issue in nodejs/node-gyp#1718 (comment). The ideal solution would be to patch the version of node-tar being used by node-gyp. There's an issue tracking that request at isaacs/node-tar#212. |
Please stop opening PRs. We know node-gyp has a new release. That's not enough for our needs. We appreciate the enthusiasm and we're considering our options. |
A new version of node-tar@2.x has been released with the security patch back ported from 3.x. the security advisory will be updated in the next 24hrs at which |
Advisory has been updated and |
Do not open a PR. We appreciate the enthusiasm but the fix is more complicated than it appears. We're considering our options.
See https://www.npmjs.com/advisories/803
Caused by
node-gyp
. I guess this depends on nodejs/node-gyp#1714 being fixed first. As far as I can tell, to fix thisnode-sass
needs to to upgrade tonode-gyp@4.x.x
once they've resolved the issue on their part.Output from
yarn audit
:The text was updated successfully, but these errors were encountered: