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

Found 3 vulnerabilities #537

Open
caiusCitiriga opened this issue Jan 26, 2022 · 4 comments
Open

Found 3 vulnerabilities #537

caiusCitiriga opened this issue Jan 26, 2022 · 4 comments

Comments

@caiusCitiriga
Copy link

By installing the package I get the vulnerabilities found warning message from NPM. These seems not to be fixable by a simple npm audit fix, which returns:

# npm audit report

node-fetch  <=2.6.6
Severity: high
The `size` option isn't honored after following a redirect in node-fetch - https://github.com/advisories/GHSA-w7rc-rwvf-8q5r
node-fetch is vulnerable to Exposure of Sensitive Information to an Unauthorized Actor - https://github.com/advisories/GHSA-r683-j2x4-v87g
fix available via `npm audit fix --force`
Will install [email protected], which is a breaking change
node_modules/isomorphic-fetch/node_modules/node-fetch
  isomorphic-fetch  2.0.0 - 2.2.1
  Depends on vulnerable versions of node-fetch
  node_modules/isomorphic-fetch
    binance-api-node  >=0.0.1
    Depends on vulnerable versions of isomorphic-fetch
    node_modules/binance-api-node

3 vulnerabilities (2 low, 1 high)

To address all issues (including breaking changes), run:
  npm audit fix --force

I don't like the Idea of the --force flag, while the issue could be addressed by updating the packages on the main repo.

@balthazar
Copy link
Member

balthazar commented Jan 26, 2022

Agree that it's an issue, but would only be concerning if the lib was targeting untrusted sources which would use this redirect vuln. We could switch to got eventually, but I'd prefer to keep some client support too so rely on global fetch or a polyfill? tbd

@caiusCitiriga
Copy link
Author

I agree that it's not a dangerous issue for how it is being used. Just wanted to pin it up, so in the future might be addressed 😊

Btw, great job with this library 🚀

@evaleiraspollux
Copy link

When do you plan to fix these vulnerabilities?

@balthazar
Copy link
Member

@evaleiraspollux Care to make a PR if you're concerned?

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