airbnb / babel-plugin-inline-react-svg

A babel plugin that optimizes and inlines SVGs for your React Components.
MIT License
473 stars 92 forks source link

Upgrade to latest version of svgo #45

Closed michaeljonathanblack closed 3 years ago

michaeljonathanblack commented 6 years ago

There's a PR open now: https://github.com/airbnb/babel-plugin-inline-react-svg/pull/35

It closes https://github.com/airbnb/babel-plugin-inline-react-svg/pull/34

It also closes https://github.com/airbnb/babel-plugin-inline-react-svg/issues/44

jkrehm commented 5 years ago

It will also resolve a security vulnerability that was found in js-yaml.

https://www.npmjs.com/advisories/788

alex-born commented 5 years ago

It will also resolve a code injection vulnerability:

https://nodesecurity.io/advisories/813

ljharb commented 5 years ago

Since no user yaml code is used as input, neither of these are actually vulnerabilities here - they’re just false positives.

michaeljonathanblack commented 5 years ago

That's true, but does create noise around npm vulnerabilities and should be fixed.

OZZlE commented 5 years ago

helloooo, should be pretty easy to fix right? I want to use this module since it's like half the size of react-svg-loader :)

ljharb commented 5 years ago

No, it’s not easy to fix, nor is it necessary except to avoid false-positive audit warnings.

lencioni commented 5 years ago

@OZZlE I think the next step to fixing this would be to expose a synchronous API from svgo: https://github.com/svg/svgo/issues/1015

Chengxuan commented 4 years ago

Any outlook on fixing this?

lencioni commented 4 years ago

@Chengxuan please see https://github.com/airbnb/babel-plugin-inline-react-svg/issues/45#issuecomment-544570324

cmonacaps commented 4 years ago

the maintainer of svgo couldn't respond to a reasonable request for nearly a year?

it's like a zombie, why not fork or reproduce svgo which isn't even that critical since it sounds like the svg will render the same after as before svgo is used to "optimize" it

samgermain commented 3 years ago

No, it’s not easy to fix, nor is it necessary except to avoid false-positive audit warnings.

@ljharb It's necessary for convincing your boss to let you use this module

ljharb commented 3 years ago

Since most CVEs are false positives for most people, if that's the situation you're in, you're going to find yourself unable to use a lot of useful modules, unfortunately :-/