Skip to content

security issue: old node-pre-gyp version #958

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

Closed
rogierschouten opened this issue Mar 28, 2018 · 3 comments
Closed

security issue: old node-pre-gyp version #958

rogierschouten opened this issue Mar 28, 2018 · 3 comments

Comments

@rogierschouten
Copy link

Solution: use node-pre-gyp version 0.9.0 or later

Problem:

Run these commands:

npm install -g nsp
cd my/module/that/uses/sqlite3
nsp check

Output: security vulnerability

$ nsp check
(+) 1 vulnerability found
┌────────────┬────────────────────────────────────────────────────────────────────┐
│            │ Prototype pollution attack                                         │
├────────────┼────────────────────────────────────────────────────────────────────┤
│ Name       │ hoek                                                               │
├────────────┼────────────────────────────────────────────────────────────────────┤
│ CVSS       │ 4 (Medium)                                                         │
├────────────┼────────────────────────────────────────────────────────────────────┤
│ Installed  │ 2.16.3                                                             │
├────────────┼────────────────────────────────────────────────────────────────────┤
│ Vulnerable │ <= 4.2.0 || >= 5.0.0 < 5.0.3                                       │
├────────────┼────────────────────────────────────────────────────────────────────┤
│ Patched    │ > 4.2.0 < 5.0.0 || >= 5.0.3                                        │
├────────────┼────────────────────────────────────────────────────────────────────┤
│ Path       │ my-module > [email protected] > [email protected] >     │
│            │ [email protected] > [email protected]                                           │
├────────────┼────────────────────────────────────────────────────────────────────┤
│ More Info  │ https://nodesecurity.io/advisories/566                             │
└────────────┴────────────────────────────────────────────────────────────────────┘
@rogierschouten
Copy link
Author

See also mapbox/node-pre-gyp/issues/346

@thom-nic
Copy link

thom-nic commented May 7, 2018

I think this can be closed: sqlite3 v4.0.0 uses [email protected] and no longer depends on hoek.

@rogierschouten
Copy link
Author

@thom-nic yes you are right

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