-
Notifications
You must be signed in to change notification settings - Fork 222
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
Upgrade to svgo@^2.x since svgo@^1.x contains a vulnerable dependency #147
Comments
Could you test if svgo 2 would just work? Maybe we can just update our docs? |
Unfortunately, we cannot simply upgrade to version 2.0, since the default configuration of image-optimizer/src/OptimizerChainFactory.php Lines 42 to 44 in 9c85625
But this flag was removed from CLI since svgo 2.0: svg/svgo#1356 (comment) Thus, the Because of this, there will be a BC break between the new standard configuration in |
Hi, Any news on this issue ? Thanks for this great package and in advance :) |
Hi, I understand that there is no clear cut solution to this issue. Could I ask what would happen if we do not install SVGO v1 on our server? In my usecase optimizing SVG is not that important. It's more the JPGs, PNGs and WEBP files that are problematic. Would image-optimizer still work if SVGO is not installed? Do we need to explicitly skip SVG files or will the libary do this automatically? Thanks for your views. |
would something like this fix your issues @StudioMaX ?
|
We now suggest the latest version of svgo |
svgo@^1.3
has an indirect dependency onnth-check
:Information about the vulnerability in
nth-check
was recently published: GHSA-rp65-9cf3-cjxrThis vulnerability was fixed in
nth-check@2.0.1
. But our dependencies use the versionnth-check@^1.0.2
, which most likely will not be updated due to large changes.svgo@^1.3
is also not supported since October 2019.Therefore, in my opinion, it is necessary to prepare some plan for upgrading to
svgo@^2.x
.The text was updated successfully, but these errors were encountered: