npm audit finds 4 vulnerabilities in lodash
Running npm audit for a project with testcafe in the dependencies brings up vulnerability in lodash v.4.17.11.
What is your Test Scenario?
npm audit
What is the Current behavior?
found 4 high severity vulnerabilities
What is the Expected behavior?
npm audit finds 0 vulnerabilities
What is your web application and your TestCafe test code?
package.json: result of npm audit
Steps to Reproduce:
Create a directory and open it in terminal Create package.json with testcafe in dependency Execute "npm i && npm audit" See the message about vulnerability
Your Environment details:
- testcafe version: 1.3.1
- node.js version: v10.16.0
- command-line arguments: "npm i && npm audit"
- platform and version: "macOS 10.13.2"
- other: npm version: 6.10.0
Thank you for your inquiry. TestCafe specifies the latest lodash version as a dependency - 4.17.11. I can't find any CVE for this version. Likely you have the node_modules directory or the package-lock.json file in a parent directory. Try to find and remove all node_modules directories and package-lock.json files in all parent directories.
I apologize for closing the issue, actually lodash has a security vulnerability - https://github.com/lodash/lodash/issues/4348. Strange that my npm doesn't report it to me. But we can't do anything about it until a new lodash version is released.
lodash version 4.17.13 has been published with a fix. Any chance you can update to that version?
https://github.com/DevExpress/testcafe/pull/4012
This thread has been automatically locked since it is closed and there has not been any recent activity. Please open a new issue for related bugs or feature requests. We recommend you ask TestCafe API, usage and configuration inquiries on StackOverflow.