Skip to content
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

Yarn audit (possibly npm audit) reports a vulnerability. #36

Open
Kiran-B opened this issue Feb 13, 2019 · 1 comment
Open

Yarn audit (possibly npm audit) reports a vulnerability. #36

Kiran-B opened this issue Feb 13, 2019 · 1 comment

Comments

@Kiran-B
Copy link

Kiran-B commented Feb 13, 2019

I have a project in which karma-sonarqube-unit-reporter is a dev dependency. When executing the command yarn audit it reports a vulnerability due to this package. I believe this would also be the case if you use npm audit.

Below is the audit report:

❯ yarn audit 
yarn audit v1.13.0
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ low           │ Prototype Pollution                                          │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ lodash                                                       │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=4.17.5                                                     │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ karma-sonarqube-unit-reporter                                │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ karma-sonarqube-unit-reporter > xmlbuilder > lodash          │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://nodesecurity.io/advisories/577                       │
└───────────────┴──────────────────────────────────────────────────────────────┘
1 vulnerabilities found - Packages audited: 43979
Severity: 1 Low

Steps to regenerate:

  1. Add karma-sonarqube-unit-reporter as a dev dependency to a node based project. In my case it is an Angular 7.x project.
ng new testproj
yarn add --dev karma-sonarqube-unit-reporter
  1. Execute yarn audit

Possible fix:

Upgrade xmlbuilder dependency from 3.1.0 to at least 4.2.1.

@tztz
Copy link
Contributor

tztz commented Jul 29, 2019

This is also fixed in #39

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

No branches or pull requests

2 participants