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

High security warning #8068

Closed
erwanv opened this issue Aug 14, 2019 · 1 comment
Closed

High security warning #8068

erwanv opened this issue Aug 14, 2019 · 1 comment

Comments

@erwanv
Copy link

erwanv commented Aug 14, 2019

mongoose version : "mongoose": "^5.6.9"
path impacted : mongoose > async > lodash

A security warning is raised by npm.

Overview
Versions of lodash before 4.17.12 are vulnerable to Prototype Pollution. The function defaultsDeep allows a malicious user to modify the prototype of Object via {constructor: {prototype: {...}}} causing the addition or modification of an existing property that will exist on all objects.

Remediation
Update to version 4.17.12 or later.

@vkarpov15 vkarpov15 added this to the 5.6.10 milestone Aug 14, 2019
@vkarpov15
Copy link
Collaborator

You need to upgrade lodash in your package-lock.json. Mongoose depends on async@2.6.2, which in turn depends on lodash@^4.7.11, so a clean npm install without a lockfile should install lodash@4.17.15

@vkarpov15 vkarpov15 removed this from the 5.6.10 milestone Aug 16, 2019
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

No branches or pull requests

2 participants