VDB
Sign up
MEDIUM6.5

GHSA-wf5p-g6vw-rhxx

Axios Cross-Site Request Forgery Vulnerability

Quick fix

GHSA-wf5p-g6vw-rhxx — axios: upgrade to the fixed version with the command below.

npm install axios@1.6.0

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/axios
Introduced in: 1.0.0Fixed in: 1.6.0
Fixnpm install axios@1.6.0
npm/axios
Introduced in: 0.8.1Fixed in: 0.28.0
Fixnpm install axios@0.28.0

References