testcafe icon indicating copy to clipboard operation
testcafe copied to clipboard

npm audit finds 4 vulnerabilities in lodash

Open r-s-sandbox opened this issue 7 years ago • 5 comments

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

r-s-sandbox avatar Jul 05 '19 22:07 r-s-sandbox

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.

AndreyBelym avatar Jul 06 '19 10:07 AndreyBelym

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.

AndreyBelym avatar Jul 06 '19 10:07 AndreyBelym

lodash version 4.17.13 has been published with a fix. Any chance you can update to that version?

r-s-sandbox avatar Jul 10 '19 06:07 r-s-sandbox

https://github.com/DevExpress/testcafe/pull/4012

miherlosev avatar Jul 10 '19 08:07 miherlosev

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.

lock[bot] avatar Jul 20 '19 10:07 lock[bot]