babel-plugin-inline-react-svg icon indicating copy to clipboard operation
babel-plugin-inline-react-svg copied to clipboard

Updating to svgo ^1.0.3 and synchronizing promise

Open Trainbird opened this issue 6 years ago • 14 comments

This is a fully working update to svgo@^1.0.3, closing #34 on the way.

Closes #34. Closes #44. Closes #45.

Trainbird avatar Dec 12 '17 09:12 Trainbird

Why was this never verified or merged?

michaeljonathanblack avatar Jun 22 '18 02:06 michaeljonathanblack

@Trainbird can this PR be updated to update svgo alone?

ljharb avatar Jun 22 '18 05:06 ljharb

Maybe Babel 7 solves the issue ... this PR in its original idea (synchronizing Promises with a 3rd party plugin) is (understandably) not compliant with package policy.

Trainbird avatar Mar 12 '19 17:03 Trainbird

Any chance that this PR gets merged or simply just update svgo alone?

The severity of the npm audit on js-yaml -> svgo is now updated to "High - Code Injection" from the "Moderate - Denial of Service"

mengqing avatar Apr 17 '19 07:04 mengqing

any updates on this PR?

Screen Shot 2019-09-12 at 10 10 21 AM ya'll

CarlosOlave avatar Sep 12 '19 14:09 CarlosOlave

@CarlosOlave it actually is zero severity since it’s a false positive for our use of svgo.

ljharb avatar Sep 12 '19 14:09 ljharb

Any update on this PR? I'd much rather not bundle known exploits.

darakian avatar Oct 04 '19 19:10 darakian

@darakian this is a babel transform, so it shouldn't be bundled in any case, nor is there any known exploit that actually applies to this package.

ljharb avatar Oct 08 '19 20:10 ljharb

@ljharb Is there some public analysis that I can read which supports that conclusion?

darakian avatar Oct 09 '19 16:10 darakian

The CVE itself. The attack vector here would have to be, you’re transpiling your own malicious svgs. When the solution is “don’t attack yourself”, it shouldn’t take much convincing that there’s no actual vulnerability.

ljharb avatar Oct 09 '19 16:10 ljharb

That does assume that all inputs are known to be good though. In my case that's fine, but as a general stance I don't think that's good.

darakian avatar Oct 09 '19 17:10 darakian

All inputs to any Babel transform are known to be good, or else it wouldn’t be safe to transform them.

To reiterate, I’d prefer to upgrade, but Babel transforms are sync and the latest version of svgo is async.

ljharb avatar Oct 09 '19 17:10 ljharb

Any update about this PR?

mverissimo avatar Sep 01 '20 13:09 mverissimo

There won’t be any updates until https://github.com/svg/svgo/issues/1015 is addressed.

ljharb avatar Sep 01 '20 15:09 ljharb