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

Fix vulnerability by updating mkdirp #855

Closed
wants to merge 1 commit into from
Closed

Fix vulnerability by updating mkdirp #855

wants to merge 1 commit into from

Conversation

jdh8
Copy link

@jdh8 jdh8 commented Mar 18, 2020

What's Changing and Why

There is a prototype pollution vulnerability in minimist 0.0.8, used by mkdirp 0.5.1.
https://www.npmjs.com/advisories/1179

I suggest updating mkdirp to ^1.0.3, the latest version, which does not depend on minimist at all.

What else might be affected

As the only thing we use from mkdirp is mkdirp.sync, and it is still seen in the latest mkdirp, I think it is safe to update mkdirp without breaking anything.

Tasks

  • Add tests
  • Update Documentation
  • Update jimp.d.ts
  • Add SemVer Label

There is a prototype pollution vulnerability in minimist 0.0.8, used by mkdirp 0.5.1.
https://www.npmjs.com/advisories/1179

As the only thing we use from mkdirp is `mkdirp.sync`, and it is still seen in the latest mkdirp, I think it is safe to update mkdirp without breaking anything.
@Den-dp
Copy link
Contributor

Den-dp commented Mar 18, 2020

I see this error

error mkdirp@1.0.3: The engine "node" is incompatible with this module. Expected version ">=10". Got "8.14.1"

@Den-dp
Copy link
Contributor

Den-dp commented Mar 18, 2020

As per isaacs/node-mkdirp#7 (comment) instead of 1.0.3 we can safely update to 0.5.3.

I did a separate PR #857 just to speed up this process, but got an error on test-types CI check 😕

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

Successfully merging this pull request may close these issues.

None yet

3 participants