css icon indicating copy to clipboard operation
css copied to clipboard

stylelint-config-airbnb package's dep includes high priority vulnerability

Open ux-engineer opened this issue 6 years ago • 12 comments

Could you please update stylelint-config-airbnb package's dependencies, as these include high priority vulnerabilities?

npm audit

  High            Prototype Pollution                                           

  Package         lodash                                                        

  Patched in      >=4.17.11                                                     

  Dependency of   stylelint-config-airbnb [dev]                                 

  Path            stylelint-config-airbnb > editorconfig-tools > lodash         

  More info       https://npmjs.com/advisories/782                              


  High            Prototype Pollution                                           

  Package         lodash                                                        

  Patched in      >=4.17.12                                                     

  Dependency of   stylelint-config-airbnb [dev]                                 

  Path            stylelint-config-airbnb > editorconfig-tools > lodash         

  More info       https://npmjs.com/advisories/1065                             


  Moderate        Regular Expression Denial of Service                          

  Package         underscore.string                                             

  Patched in      >=3.3.5                                                       

  Dependency of   stylelint-config-airbnb [dev]                                 

  Path            stylelint-config-airbnb > editorconfig-tools > argparse >     
                  underscore.string                                             

  More info       https://npmjs.com/advisories/745     

ux-engineer avatar Aug 17 '19 11:08 ux-engineer

There is zero risk here, since editorconfig-tools is a dev dep and only ran by devs of the package, so there’s nothing that needs doing.

It could be updated to use eclint, but that would only impact the < 3 developers who touch this project.

ljharb avatar Aug 17 '19 15:08 ljharb

@ljharb couldn't you just upgrade editorconfig-tools dependency's version to a higher one (if it has this lodash dep version upgraded to higher also)...?

A couple or so months ago many packages were giving this kind of high vuln alert because of an unpatched Lodash version dep...but those seem to have vanished now that packages have been updated.

When doing enterprise level application development with high security requirements, we are not happy to get notified of this kind of vulns even it's about only-dev-time dependency.

Neither does version tag "0.0.0" look trusthworthy considering the potential popularity of this package, so that's an another reason to do a dep upgrades update :)

ux-engineer avatar Aug 20 '19 08:08 ux-engineer

FYI: It's actually a dependency, not a devDependency, but thats moot IMHO.

@envision from what I've looked at this stylelint config is no longer maintained, so the "potential popularity" of this package is also moot.

If you like the rules currently used, then fork the package as it is MIT licensed and you can tweak it to your personal preferences.

I'd also suggest taking a look at either of these widely used stylelint configs: https://www.npmjs.com/package/stylelint-config-recommended https://www.npmjs.com/package/stylelint-config-standard

ntwb avatar Aug 20 '19 09:08 ntwb

Given that it's a runtime dep, then sure, we could switch it to eclint.

ljharb avatar Aug 29 '19 17:08 ljharb

npm audit is also reporting this moderate issue https://www.npmjs.com/advisories/745 from this package

ashleyryan avatar Sep 05 '19 12:09 ashleyryan

Given that it's a runtime dep, then sure, we could switch it to eclint.

look forward to switch it

jasonxxp avatar Aug 21 '20 08:08 jasonxxp

Hi, any updates on this ? Github Dependabot is spamming with alert about underscore.string version < 3.3.5, and only this package depends on it.

oprudkyi avatar Nov 21 '20 17:11 oprudkyi

Nope, no updates. You can tell GitHub to stop complaining about the warning in the meantime :-)

ljharb avatar Nov 21 '20 17:11 ljharb

@ljharb I don't understand this approach, just update the deps or open merging requests to community.

dzienisz avatar Aug 04 '22 12:08 dzienisz

@dzienisz merging of what? Nobody’s sent a PR, which suggests it’s not important.

ljharb avatar Aug 04 '22 15:08 ljharb

I don't know how to answer that. You have 10 PRs that are not merged. Do you want another one to have a bigger pile of PRs?

dzienisz avatar Aug 08 '22 12:08 dzienisz

Most of those are for translations, and two of them I just closed because they were unexplained changes. PR counts are irrelevant; even if there were 10,000 open PRs, you should still send a PR to a project if you want something prioritized.

ljharb avatar Aug 08 '22 17:08 ljharb