Cross-site Request Forgery (CSRF) Affecting org.webjars.bowergithub.axios:axios package, versions [0,]
Threat Intelligence
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-JAVA-ORGWEBJARSBOWERGITHUBAXIOS-6038586
- published 25 Oct 2023
- disclosed 23 Oct 2023
- credit Valentin Panov
Introduced: 23 Oct 2023
CVE-2023-45857 Open this link in a new tabHow to fix?
A fix was pushed into the master
branch but not yet published.
Overview
org.webjars.bowergithub.axios:axios is a promise-based HTTP client for the browser and Node.js.
Affected versions of this package are vulnerable to Cross-site Request Forgery (CSRF) due to inserting the X-XSRF-TOKEN
header using the secret XSRF-TOKEN
cookie value in all requests to any server when the XSRF-TOKEN
0 cookie is available, and the withCredentials
setting is turned on. If a malicious user manages to obtain this value, it can potentially lead to the XSRF defence mechanism bypass.
Workaround
Users should change the default XSRF-TOKEN
cookie name in the Axios configuration and manually include the corresponding header only in the specific places where it's necessary.