maidsafe / sn_browser

Safe Network Browser Application
BSD 3-Clause "New" or "Revised" License
201 stars 55 forks source link

Run `npm audit` and upgrade identified vulnerable deps #386

Open hunterlester opened 5 years ago

hunterlester commented 5 years ago

yarn team is working on it's own command but it's not ready yet: https://github.com/yarnpkg/yarn/issues/5808

hunterlester commented 5 years ago

This task is more involved than appears:

hunterlester commented 5 years ago

Proposal to close this task. There are two possibly significant vulnerabilities identified, which should be resolved when we upgrade the electron version:

┌───────────────┬──────────────────────────────────────────────────────────────┐
│ high          │ Insufficient Entropy                                         │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ cryptiles                                                    │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=3.1.3 <4.0.0 || >=4.1.2                                    │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ electron                                                     │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ electron > electron-download > nugget > request > hawk >     │
│               │ cryptiles                                                    │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://nodesecurity.io/advisories/720                       │
└───────────────┴──────────────────────────────────────────────────────────────┘

┌───────────────┬──────────────────────────────────────────────────────────────┐
│ high          │ Insufficient Entropy                                         │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ cryptiles                                                    │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=3.1.3 <4.0.0 || >=4.1.2                                    │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ asar                                                         │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ asar > mksnapshot > request > hawk > cryptiles               │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://nodesecurity.io/advisories/720                       │
└───────────────┴──────────────────────────────────────────────────────────────┘
joshuef commented 5 years ago

Okay, let's mark this as blocked until the electron version is updated (and with that, we'd need to update spectron also, I suspect)