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

Vulnerability package dependency "defaults-deep" #4971

Closed
i62navpm opened this issue Feb 7, 2019 · 4 comments
Closed

Vulnerability package dependency "defaults-deep" #4971

i62navpm opened this issue Feb 7, 2019 · 4 comments

Comments

@i62navpm
Copy link

i62navpm commented Feb 7, 2019

Version

v2.4.3

Reproduction link

https://www.npmjs.com/advisories/778

Steps to reproduce

Please fix this vulnerability in your dependency tree:

nuxt > @nuxt/core > @nuxt/server > serve-placeholder > defaults-deep

What is expected ?

0 vulnerabilities found when audit packages.

As no patch is currently available for this vulnerability it is our recommendation to select another module that can provide this functionality.

What is actually happening?

All versions of defaults-deep are vulnerable to prototype pollution. Provided certain input defaults-deep can add or modify properties of the Object prototype. These properties will be present on all objects.

Additional comments?

https://hackerone.com/reports/380878

This bug report is available on Nuxt community (#c8618)
@ghost ghost added the cmty:bug-report label Feb 7, 2019
@pi0
Copy link
Member

pi0 commented Feb 7, 2019

Hi. Thanks for the report. This is being addressed fast.

@begueradj
Copy link

@pi0 Can you please explain shortly how you fixed that? (I followed the 2 links but ...)

@pi0
Copy link
Member

pi0 commented Feb 7, 2019

For clarification as also described in CVE-2018-16486 the impact is possibly more depending on the application. and no nuxt users are affected for sure because options to the middleware are not from user input but only from nuxt.config.

For general:

I submitted the fix to prevent accepting contructor.prototype key on defaults-deep but as it is unlikely to fast merge and publish, I created an alternative package that only does what we want.

@pi0 pi0 pinned this issue Feb 7, 2019
@pi0 pi0 self-assigned this Feb 7, 2019
pi0 pushed a commit to unjs/serve-placeholder that referenced this issue Feb 7, 2019
@manniL manniL unpinned this issue Feb 10, 2019
@stale
Copy link

stale bot commented Feb 28, 2019

Thanks for your contribution to Nuxt.js!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If you would like this issue to remain open:

  1. Verify that you can still reproduce the issue in the latest version of nuxt-edge
  2. Comment the steps to reproduce it

Issues that are labeled as 🕐Pending will not be automatically marked as stale.

@stale stale bot added the stale label Feb 28, 2019
@stale stale bot closed this as completed Mar 7, 2019
@danielroe danielroe added the 2.x label Jan 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants