-
Notifications
You must be signed in to change notification settings - Fork 92
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
Updating to svgo ^1.0.3 and synchronizing promise #35
base: master
Are you sure you want to change the base?
Conversation
Why was this never verified or merged? |
@@ -46,7 +46,8 @@ | |||
"babel-traverse": "^6.26.0", | |||
"babylon": "^6.18.0", | |||
"lodash.isplainobject": "^4.0.6", | |||
"promise-synchronizer": "^1.0.6", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is not a package i'm interested in using; making async things sync is a very dangerous choice to make in JS.
@Trainbird can this PR be updated to update svgo alone? |
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. |
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" |
@CarlosOlave it actually is zero severity since it’s a false positive for our use of svgo. |
Any update on this PR? I'd much rather not bundle known exploits. |
@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 Is there some public analysis that I can read which supports that conclusion? |
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. |
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. |
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. |
Any update about this PR? |
There won’t be any updates until svg/svgo#1015 is addressed. |
This is a fully working update to
svgo@^1.0.3
, closing #34 on the way.Closes #34. Closes #44. Closes #45.