Skip to content
This repository has been archived by the owner on Mar 17, 2023. It is now read-only.

Update imagemin-svgo #337

Open
apennell opened this issue Apr 29, 2021 · 2 comments
Open

Update imagemin-svgo #337

apennell opened this issue Apr 29, 2021 · 2 comments

Comments

@apennell
Copy link

There's a reported ReDoS vulnerability with is-svg v4.2.1:

Vulnerable versions: >= 2.1.0, < 4.2.2
Patched version: 4.2.2

The is-svg package 2.1.0 through 4.2.1 for Node.js uses a regular expression that is vulnerable to Regular Expression Denial of Service (ReDoS). If an attacker provides a malicious string, is-svg will get stuck processing the input for a very long time.

is-svg is a dependency of imagemin-svgo, which is a dependency of image-webpack-loader. Current latest release of imagemin-svgo 9.0.0 ("imagemin-svgo": "^8.0.0" used here) is still using is-svgo 4.2.1, but there's an open issue and pr in that repo to bump the dependency up, so ideally image-webpack-loader would upgrade imagemin-svgo once that fix is in.

@ebongso
Copy link

ebongso commented Jun 21, 2022

Hello. Is there a plan to upgrade the dependency within the image-webpack-loader?
The issue mentioned above imagemin/imagemin-svgo#45 has been closed.

@sykaeh
Copy link

sykaeh commented Sep 4, 2022

imagemin-svgo was updated to version 9.0.0 in Release 8.0.0 (as visible in the CHANGELOG.md), so I think this issue can be closed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants