getAlby / lightning-browser-extension

The Bitcoin Lightning Browser Extension that brings deep Lightning & Nostr integration to the web. Wallet interface to multiple lightning nodes and key signer for Nostr, Liquid and onchain use.
https://getalby.com/#extension
MIT License
539 stars 194 forks source link

🚨 [security] Update axios 0.27.2 → 1.7.2 (major) #3165

Closed depfu[bot] closed 3 months ago

depfu[bot] commented 5 months ago

🚨 Your current dependencies have known security vulnerabilities 🚨

This dependency update fixes known security vulnerabilities. Please see the details below and assess their impact carefully. We recommend to merge and deploy this as soon as possible!


Here is everything you need to know about this upgrade. Please take a good look at what changed and the test results before merging this pull request.

What changed?

✳️ axios (0.27.2 → 1.7.2) · Repo · Changelog

Security Advisories 🚨

🚨 Axios Cross-Site Request Forgery Vulnerability

An issue discovered in Axios 0.8.1 through 1.5.1 inadvertently reveals the confidential XSRF-TOKEN stored in cookies by including it in the HTTP header X-XSRF-TOKEN for every request made to any host allowing attackers to view sensitive information.

🚨 Axios Cross-Site Request Forgery Vulnerability

An issue discovered in Axios 0.8.1 through 1.5.1 inadvertently reveals the confidential XSRF-TOKEN stored in cookies by including it in the HTTP header X-XSRF-TOKEN for every request made to any host allowing attackers to view sensitive information.

Release Notes

Too many releases to show here. View the full release notes.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.


Depfu Status

Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase.

All Depfu comment commands
@​depfu rebase
Rebases against your default branch and redoes this update
@​depfu recreate
Recreates this PR, overwriting any edits that you've made to it
@​depfu merge
Merges this PR once your tests are passing and conflicts are resolved
@​depfu cancel merge
Cancels automatic merging of this PR
@​depfu close
Closes this PR and deletes the branch
@​depfu reopen
Restores the branch and reopens this PR (if it's closed)
@​depfu pause
Ignores all future updates for this dependency and closes this PR
@​depfu pause [minor|major]
Ignores all future minor/major updates for this dependency and closes this PR
@​depfu resume
Future versions of this dependency will create PRs again (leaves this PR as is)
socket-security[bot] commented 5 months ago

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/axios@1.7.2 network Transitive: environment, filesystem +5 2.2 MB jasonsaayman
npm/follow-redirects@1.15.6 network 0 29.4 kB rubenverborgh
npm/merge2@1.4.1 None 0 8.9 kB zensh
npm/micromatch@4.0.5 None 0 55.9 kB jonschlinkert
npm/mime-types@2.1.35 None 0 18.3 kB dougwilson
npm/mini-css-extract-plugin@2.7.6 unsafe +2 233 kB evilebottnawi
npm/minimalistic-assert@1.0.1 None 0 1.55 kB cwmma
npm/minimatch@3.1.2 None 0 34.9 kB isaacs
npm/minimist@1.2.6 None 0 33.2 kB substack
npm/ms@2.1.2 None 0 6.84 kB styfle
npm/msw@1.3.2 environment, filesystem, network, shell 0 2.07 MB kettanaito
npm/normalize-package-data@3.0.3 None 0 27.9 kB gar
npm/normalize-path@3.0.0 None 0 9.22 kB jonschlinkert
npm/nostr-tools@1.17.0 network 0 1.9 MB fiatjaf
npm/object-assign@4.1.1 None 0 5.49 kB sindresorhus
npm/object-inspect@1.12.3 None 0 94.8 kB ljharb
npm/object.assign@4.1.4 None +1 1.19 MB ljharb
npm/object.fromentries@2.0.7 None 0 15.6 kB ljharb
npm/object.values@1.1.7 None 0 30.9 kB ljharb
npm/once@1.4.0 None +1 7.01 kB isaacs
npm/onetime@5.1.2 None +1 14.4 kB sindresorhus
npm/p-limit@3.1.0 None 0 7.75 kB sindresorhus
npm/parse-json@5.2.0 None 0 5.41 kB sindresorhus
npm/path-key@3.1.1 None 0 4.55 kB sindresorhus
npm/picomatch@2.3.1 None 0 90 kB mrmlnc
npm/pirates@4.0.5 unsafe 0 13.4 kB danez
npm/postcss-cli@10.1.0 environment, filesystem +4 112 kB ryanzim
npm/postcss-loader@7.3.3 eval, unsafe 0 74.3 kB evilebottnawi
npm/postcss-value-parser@4.2.0 None 0 27.2 kB evilebottnawi
npm/postcss@8.4.31 environment, filesystem +1 202 kB ai
npm/pptr-testing-library@0.7.0 eval, filesystem Transitive: environment +5 3.85 MB patrickhulce
npm/prettier@3.0.3 environment, filesystem, unsafe 0 8.49 MB prettier-bot
npm/process@0.11.10 None 0 15.3 kB cwmma
npm/prop-types@15.8.1 environment +1 119 kB ljharb
npm/pubsub-js@1.9.4 None 0 112 kB mrgnrdrck
npm/puppeteer@21.4.1 environment 0 332 kB google-wombot
npm/react-confetti@6.1.0 None 0 224 kB alampros
npm/react-dom@18.2.0 environment 0 4.5 MB gnoff
npm/react-hot-toast@2.4.1 None 0 173 kB timolins
npm/react-i18next@14.1.0 None 0 331 kB adrai
npm/react-loading-skeleton@3.3.1 None 0 25.4 kB dvtng
npm/react-modal@3.16.1 environment 0 186 kB diasbruno
npm/react-qr-code@2.0.12 None 0 14 kB rtkhanas
npm/react-router-dom@6.22.3 environment 0 877 kB mjackson
npm/react@18.2.0 environment 0 316 kB gnoff
npm/readable-stream@3.6.0 environment 0 122 kB matteo.collina
npm/regenerator-runtime@0.13.11 None 0 27.8 kB benjamn
npm/regexp.prototype.flags@1.5.0 None 0 38.5 kB ljharb
npm/resolve-from@5.0.0 filesystem, unsafe 0 5.82 kB sindresorhus
npm/resolve-global@1.0.0 None 0 4.34 kB sindresorhus
npm/resolve@1.22.8 environment, filesystem +2 159 kB ljharb
npm/ripemd160@2.0.2 None +1 15.9 kB dcousens
npm/rxjs@7.5.7 None 0 4.48 MB blesh
npm/safe-buffer@5.2.1 None 0 32.1 kB feross
npm/semver@7.5.4 None 0 93.4 kB npm-cli-ops
npm/serialize-javascript@6.0.1 None +1 23.2 kB okuryu
npm/sha.js@2.4.11 None 0 31.1 kB dcousens
npm/signal-exit@3.0.7 None 0 9.96 kB isaacs
npm/slip77@0.2.0 None 0 7.14 kB tiero
npm/split2@3.2.2 None 0 17.2 kB matteo.collina
npm/stream-browserify@3.0.0 None 0 11.6 kB goto-bus-stop
npm/stream@0.0.2 None 0 12.1 kB juliangruber
npm/string_decoder@1.1.1 None 0 15.3 kB matteo.collina
npm/string-width@5.1.2 None +2 15.5 kB sindresorhus
npm/strip-ansi@6.0.1 None 0 4.03 kB sindresorhus
npm/swc-loader@0.2.3 None 0 7.67 kB kdy1
npm/tailwindcss-3d@1.0.2 None 0 121 kB sambauers
npm/tailwindcss@3.4.3 environment, filesystem +1 5.52 MB adamwathan
npm/tapable@2.2.0 None 0 46.9 kB sokra
npm/terser-webpack-plugin@5.3.9 Transitive: environment, shell +4 300 kB evilebottnawi
npm/terser@5.17.6 environment, eval Transitive: filesystem, shell, unsafe +2 2.32 MB fabiosantoscode
npm/through@2.3.8 None 0 12.5 kB dominictarr
npm/tsconfig-paths-webpack-plugin@4.1.0 Transitive: environment, filesystem, unsafe +2 481 kB jonaskello
npm/tslib@2.6.2 None 0 84 kB typescript-bot
npm/type-check@0.4.0 None +1 57.9 kB gkz
npm/type-fest@1.4.0 None 0 141 kB sindresorhus
npm/typeforce@1.18.0 None 0 19.1 kB dcousens
npm/typescript@5.2.2 None 0 40.6 MB typescript-bot
npm/util-deprecate@1.0.2 None 0 5.48 kB tootallnate
npm/uuid@9.0.1 None 0 123 kB ctavan
npm/webextension-polyfill@0.10.0 None 0 198 kB addons-robot
npm/webpack-bundle-analyzer@4.9.1 environment, filesystem, network Transitive: shell +5 1.48 MB valscion
npm/webpack-cli@5.1.4 environment, filesystem, unsafe Transitive: shell +8 306 kB evilebottnawi
npm/webpack-dev-server@4.15.1 environment, eval, network +2 752 kB evilebottnawi
npm/webpack-sources@3.2.3 None 0 91.3 kB sokra
npm/webpack@5.89.0 environment, filesystem, network, unsafe +4 5.04 MB thelarkinn
npm/wext-manifest-loader@3.0.0 environment, filesystem +2 142 kB abhijithvijayan
npm/wext-manifest-webpack-plugin@1.2.1 None 0 10.5 kB abhijithvijayan
npm/which-typed-array@1.1.11 None +3 66.5 kB ljharb
npm/wif@2.0.6 None 0 8.31 kB dcousens
npm/wrap-ansi@8.1.0 None +1 17.4 kB sindresorhus
npm/ws@8.13.0 environment, network 0 137 kB lpinca
npm/yaml@2.3.3 environment 0 661 kB eemeli
npm/yargs-parser@20.2.9 environment, filesystem 0 124 kB oss-bot
npm/yargs@17.7.1 environment, filesystem +1 421 kB oss-bot
npm/zustand@4.5.2 environment +4 1.72 MB daishi

🚮 Removed packages: npm/@discoveryjs/json-ext@0.5.7, npm/@types/estree@1.0.1, npm/@types/express-serve-static-core@4.17.27, npm/@types/express@4.17.13, npm/@types/serve-static@1.13.10, npm/@webassemblyjs/ast@1.11.6, npm/@webassemblyjs/wasm-parser@1.11.6, npm/accepts@1.3.8, npm/axios@0.27.2, npm/bl@4.1.0, npm/braces@3.0.2, npm/chokidar@3.5.3, npm/cookie@0.4.2, npm/domelementtype@2.3.0, npm/domhandler@4.2.0, npm/domutils@2.7.0, npm/end-of-stream@1.4.4, npm/enhanced-resolve@5.15.0, npm/entities@4.3.1, npm/fast-fifo@1.3.0, npm/follow-redirects@1.15.2, npm/iconv-lite@0.4.24, npm/is-docker@2.2.1, npm/is-generator-function@1.0.10, npm/json-parse-even-better-errors@2.3.1, npm/kind-of@6.0.3, npm/loose-envify@1.4.0

View full report↗︎

socket-security[bot] commented 5 months ago

🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎

To accept the risk, merge this PR and you will not be notified again.

Alert Package NoteSource
Install scripts npm/msw@1.3.2
  • Install script: postinstall
  • Source: node -e "try{require('./config/scripts/postinstall')}catch(e){}"
Install scripts npm/puppeteer@21.4.1

View full report↗︎

Next steps

What is an install script?

Install scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.

Packages should not be running non-essential scripts during install and there are often solutions to problems people solve with install scripts that can be run at publish time instead.

Take a deeper look at the dependency

Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.

Remove the package

If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.

Mark a package as acceptable risk

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of ecosystem/package-name@version specifiers. e.g. @SocketSecurity ignore npm/foo@1.0.0 or ignore all packages with @SocketSecurity ignore-all

  • @SocketSecurity ignore npm/msw@1.3.2
  • @SocketSecurity ignore npm/puppeteer@21.4.1
depfu[bot] commented 3 months ago

Closed in favor of #3221.