Open Kiran-B opened 5 years ago
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.
karma-sonarqube-unit-reporter
yarn audit
npm audit
❯ 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
ng new testproj yarn add --dev karma-sonarqube-unit-reporter
Upgrade xmlbuilder dependency from 3.1.0 to at least 4.2.1.
xmlbuilder
This is also fixed in https://github.com/tornaia/karma-sonarqube-unit-reporter/pull/39
I have a project in which
karma-sonarqube-unit-reporter
is a dev dependency. When executing the commandyarn audit
it reports a vulnerability due to this package. I believe this would also be the case if you usenpm audit
.Below is the audit report:
Steps to regenerate:
karma-sonarqube-unit-reporter
as a dev dependency to a node based project. In my case it is an Angular 7.x project.yarn audit
Possible fix:
Upgrade
xmlbuilder
dependency from 3.1.0 to at least 4.2.1.