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

Running "npm install" generates: 6 vulnerabilities (3 high, 3 critical) #78

Open
ossama-nvis opened this issue Mar 29, 2023 · 3 comments

Comments

@ossama-nvis
Copy link

This is the output of "npm audit report":

# npm audit report

dicer  *
Severity: high
Crash in HeaderParser in dicer - https://github.com/advisories/GHSA-wm7h-9275-46v2
No fix available
node_modules/dicer
  busboy  <=0.3.1
  Depends on vulnerable versions of dicer
  node_modules/multer/node_modules/busboy
    multer  <=2.0.0-rc.3
    Depends on vulnerable versions of busboy
    node_modules/multer

nedb  *
Severity: critical
Prototype Pollution - https://github.com/advisories/GHSA-339j-hqgx-qrrx
Depends on vulnerable versions of binary-search-tree
Depends on vulnerable versions of underscore
No fix available
node_modules/nedb

underscore  1.3.2 - 1.12.0
Severity: critical
Arbitrary Code Execution in underscore - https://github.com/advisories/GHSA-cf4h-3jhx-xvhq
No fix available
node_modules/underscore
  binary-search-tree  *
  Depends on vulnerable versions of underscore
  node_modules/binary-search-tree

6 vulnerabilities (3 high, 3 critical)

Some issues need review, and may require choosing
a different dependency.

Please help. Thank you.

@ossama-nvis
Copy link
Author

$ node -v
v18.15.0
$ npm -v
9.6.2

@sangulukani1999
Copy link

Does anyone has a solution for the above problem cause am also facing the same problem

@M-Uzair25
Copy link

Step1: npm uninstall nedb
Step2: npm i @seald-io/nedb
Step3: Go to api folder and replace
const Datastore = require( "nedb" );
to
const Datastore = require( "@seald-io/nedb" );
in all files (mean change all imports)
Step4: npm uninstall sweetalert2
Step5: npm i sweetalert2
Step6: npm i multer@latest

This removed the errors from my project and the project started. But it does not add any data

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

3 participants