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

Update axios to fix Cross-Site Request Forgery Vulnerability #269

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mozeryansky
Copy link

npm audit shows the version of axios is outdated and has a vulnerability:

axios  0.8.1 - 0.27.2
Severity: moderate
Axios Cross-Site Request Forgery Vulnerability - https://github.com/advisories/GHSA-wf5p-g6vw-rhxx
fix available via `npm audit fix --force`
Will install @alpacahq/[email protected], which is a breaking change
node_modules/axios
  @alpacahq/alpaca-trade-api  >=2.0.0
  Depends on vulnerable versions of axios
  node_modules/@alpacahq/alpaca-trade-api

I fixed this by upgrading the version and tested that everything still works:

  1. git clone ...
  2. npm i
  3. npm run pretest && npm run test Confirmed all tests pass
  4. npm i axios@latest
  5. npm run pretest && npm run test All tests pass

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

Successfully merging this pull request may close these issues.

1 participant