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

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

Closed
wants to merge 1 commit into from

Conversation

depfu[bot]
Copy link
Contributor

@depfu depfu bot commented May 28, 2024


🚨 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)

@depfu depfu bot added the dependencies Pull requests that update a dependency file label May 28, 2024
Copy link

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

Package New capabilities Transitives Size Publisher
npm/[email protected] network Transitive: environment, filesystem +5 2.2 MB jasonsaayman
npm/[email protected] network 0 29.4 kB rubenverborgh
npm/[email protected] None 0 8.9 kB zensh
npm/[email protected] None 0 55.9 kB jonschlinkert
npm/[email protected] None 0 18.3 kB dougwilson
npm/[email protected] unsafe +2 233 kB evilebottnawi
npm/[email protected] None 0 1.55 kB cwmma
npm/[email protected] None 0 34.9 kB isaacs
npm/[email protected] None 0 33.2 kB substack
npm/[email protected] None 0 6.84 kB styfle
npm/[email protected] environment, filesystem, network, shell 0 2.07 MB kettanaito
npm/[email protected] None 0 27.9 kB gar
npm/[email protected] None 0 9.22 kB jonschlinkert
npm/[email protected] network 0 1.9 MB fiatjaf
npm/[email protected] None 0 5.49 kB sindresorhus
npm/[email protected] None 0 94.8 kB ljharb
npm/[email protected] None +1 1.19 MB ljharb
npm/[email protected] None 0 15.6 kB ljharb
npm/[email protected] None 0 30.9 kB ljharb
npm/[email protected] None +1 7.01 kB isaacs
npm/[email protected] None +1 14.4 kB sindresorhus
npm/[email protected] None 0 7.75 kB sindresorhus
npm/[email protected] None 0 5.41 kB sindresorhus
npm/[email protected] None 0 4.55 kB sindresorhus
npm/[email protected] None 0 90 kB mrmlnc
npm/[email protected] unsafe 0 13.4 kB danez
npm/[email protected] environment, filesystem +4 112 kB ryanzim
npm/[email protected] eval, unsafe 0 74.3 kB evilebottnawi
npm/[email protected] None 0 27.2 kB evilebottnawi
npm/[email protected] environment, filesystem +1 202 kB ai
npm/[email protected] eval, filesystem Transitive: environment +5 3.85 MB patrickhulce
npm/[email protected] environment, filesystem, unsafe 0 8.49 MB prettier-bot
npm/[email protected] None 0 15.3 kB cwmma
npm/[email protected] environment +1 119 kB ljharb
npm/[email protected] None 0 112 kB mrgnrdrck
npm/[email protected] environment 0 332 kB google-wombot
npm/[email protected] None 0 224 kB alampros
npm/[email protected] environment 0 4.5 MB gnoff
npm/[email protected] None 0 173 kB timolins
npm/[email protected] None 0 331 kB adrai
npm/[email protected] None 0 25.4 kB dvtng
npm/[email protected] environment 0 186 kB diasbruno
npm/[email protected] None 0 14 kB rtkhanas
npm/[email protected] environment 0 877 kB mjackson
npm/[email protected] environment 0 316 kB gnoff
npm/[email protected] environment 0 122 kB matteo.collina
npm/[email protected] None 0 27.8 kB benjamn
npm/[email protected] None 0 38.5 kB ljharb
npm/[email protected] filesystem, unsafe 0 5.82 kB sindresorhus
npm/[email protected] None 0 4.34 kB sindresorhus
npm/[email protected] environment, filesystem +2 159 kB ljharb
npm/[email protected] None +1 15.9 kB dcousens
npm/[email protected] None 0 4.48 MB blesh
npm/[email protected] None 0 32.1 kB feross
npm/[email protected] None 0 93.4 kB npm-cli-ops
npm/[email protected] None +1 23.2 kB okuryu
npm/[email protected] None 0 31.1 kB dcousens
npm/[email protected] None 0 9.96 kB isaacs
npm/[email protected] None 0 7.14 kB tiero
npm/[email protected] None 0 17.2 kB matteo.collina
npm/[email protected] None 0 11.6 kB goto-bus-stop
npm/[email protected] None 0 12.1 kB juliangruber
npm/[email protected] None 0 15.3 kB matteo.collina
npm/[email protected] None +2 15.5 kB sindresorhus
npm/[email protected] None 0 4.03 kB sindresorhus
npm/[email protected] None 0 7.67 kB kdy1
npm/[email protected] None 0 121 kB sambauers
npm/[email protected] environment, filesystem +1 5.52 MB adamwathan
npm/[email protected] None 0 46.9 kB sokra
npm/[email protected] Transitive: environment, shell +4 300 kB evilebottnawi
npm/[email protected] environment, eval Transitive: filesystem, shell, unsafe +2 2.32 MB fabiosantoscode
npm/[email protected] None 0 12.5 kB dominictarr
npm/[email protected] Transitive: environment, filesystem, unsafe +2 481 kB jonaskello
npm/[email protected] None 0 84 kB typescript-bot
npm/[email protected] None +1 57.9 kB gkz
npm/[email protected] None 0 141 kB sindresorhus
npm/[email protected] None 0 19.1 kB dcousens
npm/[email protected] None 0 40.6 MB typescript-bot
npm/[email protected] None 0 5.48 kB tootallnate
npm/[email protected] None 0 123 kB ctavan
npm/[email protected] None 0 198 kB addons-robot
npm/[email protected] environment, filesystem, network Transitive: shell +5 1.48 MB valscion
npm/[email protected] environment, filesystem, unsafe Transitive: shell +8 306 kB evilebottnawi
npm/[email protected] environment, eval, network +2 752 kB evilebottnawi
npm/[email protected] None 0 91.3 kB sokra
npm/[email protected] environment, filesystem, network, unsafe +4 5.04 MB thelarkinn
npm/[email protected] environment, filesystem +2 142 kB abhijithvijayan
npm/[email protected] None 0 10.5 kB abhijithvijayan
npm/[email protected] None +3 66.5 kB ljharb
npm/[email protected] None 0 8.31 kB dcousens
npm/[email protected] None +1 17.4 kB sindresorhus
npm/[email protected] environment, network 0 137 kB lpinca
npm/[email protected] environment 0 661 kB eemeli
npm/[email protected] environment, filesystem 0 124 kB oss-bot
npm/[email protected] environment, filesystem +1 421 kB oss-bot
npm/[email protected] environment +4 1.72 MB daishi

🚮 Removed packages: npm/@discoveryjs/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@webassemblyjs/[email protected], npm/@webassemblyjs/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected]

View full report↗︎

Copy link

🚨 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/[email protected]
  • Install script: postinstall
  • Source: node -e "try{require('./config/scripts/postinstall')}catch(e){}"
Install scripts npm/[email protected]

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/[email protected] or ignore all packages with @SocketSecurity ignore-all

Copy link
Contributor Author

depfu bot commented Aug 8, 2024

Closed in favor of #3221.

@depfu depfu bot closed this Aug 8, 2024
@depfu depfu bot deleted the depfu/update/yarn/axios-1.7.2 branch August 8, 2024 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants