question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

please update mkdirp due to prototype pollution in dependent package (CVE-2020-7598)

See original GitHub issue

Bug report

webpack currently depends on the old 0.5.1 version of “mkdirp” which depends on old vulnerable minimist package. The 0.5.x line of mkdirp from the original author is not developed any further and maintenance of this package was taken over by isaacs with the new 1.x versions.

see: https://github.com/substack/node-mkdirp/issues/166 CVE: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-7598

Please update “mkdirp” dependency to the latest 1.x version to fix this vulnerability. . What is the current behavior?

old “mkdirp” 0.5.1 fetches dependend package “minimist” 0.0.8 which triggers warning in security checkers blocking new builds.

If the current behavior is a bug, please provide the steps to reproduce.

What is the expected behavior?

Update dependency “mkdirp” to latest version 1.0.3 which has dropped dependency of “minimist” and does not trigger any security warnings anymore.

Other relevant information: webpack version: 4.42.0 Node.js version: 10.16 Operating System: linux Additional tools:

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:30 (6 by maintainers)

github_iconTop GitHub Comments

13reactions
alexander-akaitcommented, Mar 17, 2020

Sorry, we can’t do it, because it is breaking change

5reactions
jomi-secommented, Mar 18, 2020

The backport fix has been released in 0.5.3 🎉 https://github.com/isaacs/node-mkdirp/issues/7#issuecomment-600235119

Read more comments on GitHub >

github_iconTop Results From Across the Web

Prototype Pollution in minimist - Vulners
Affected versions of minimist are vulnerable to prototype pollution. Arguments are not properly sanitized, allowing an attacker to modify ...
Read more >
Prototype pollution vulnerability in minimist npm package - Snyk
This security vulnerability that manifests as prototype pollution, enables attackers to overwrite a JavaScript application object prototype.
Read more >
How to update mkdir in order to install express-generator ...
In this case, you can't. Because the mkdirp@0.5.1 is a dependency of express-generator package and when you install this package, npm will ...
Read more >
Help with npm install in RESTful Restaurants
I have tried to update the dependencies to the late… ... Prototype Pollution in minimist · CVE-2020-7598 · GitHub Advisory Database · GitHub...
Read more >
Security Bulletin 18 Mar 2020
CVE-2020-5259, In affected versions of dojox (NPM package), the jqMix method is vulnerable to Prototype Pollution. Prototype Pollution ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found