MediumGHSA-wf5p-g6vw-rhxxCVE-2023-45857
Axios Cross-Site Request Forgery Vulnerability
Published 8 Nov 2023 · Updated 10 Sept 2026
Is your project on an affected axios?
Affected packages
axiosnpm
- Affected
- >=1.0.0 <1.6.0
- Fixed in
- 1.6.0
Update to the fixed version for your release line, for example:
npm install axios@1.6.0axiosnpm
- Affected
- >=0.8.1 <0.28.0
- Fixed in
- 0.28.0
Update to the fixed version for your release line, for example:
npm install axios@0.28.0Details
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.
Is GHSA-wf5p-g6vw-rhxx in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected axios, and gives you the command that fixes it.
More advisories for axios
- MediumCVE-2026-101904Axios: Header Injection via Inherited headers After Minimal Interceptor · 30 Sept 2026
- MediumCVE-2026-101900Axios: Fetch Adapter Header Injection via Inherited FormData getHeaders · 30 Sept 2026
- HighCVE-2026-101905Axios: Node HTTP adapter prototype-pollution gadget allows request socket hijack via inherited createConnection · 30 Sept 2026
- MediumCVE-2026-101899Axios: CIDR-form NO_PROXY entries are ignored, causing proxy exclusion bypass for internal IP ranges · 30 Sept 2026
- HighCVE-2026-101907Axios: maxRedirects: 0 is not enforced by the fetch adapter, allowing redirect-based SSRF · 30 Sept 2026
- MediumCVE-2026-101908Axios: Prototype pollution gadget in fetch adapter can alter outbound requests · 30 Sept 2026
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2023-45857
- Linkgithub.com/axios/axios/issues/6006
- Linkgithub.com/axios/axios/issues/6022
- Linkgithub.com/axios/axios/pull/6028
- Linkgithub.com/axios/axios/pull/6091
- Linkgithub.com/axios/axios/commit/2755df562b9c194fba6d8b609a383443f6a6e967
- Linkgithub.com/axios/axios/commit/96ee232bd3ee4de2e657333d4d2191cd389e14d0
- Packagegithub.com/axios/axios
- Linkgithub.com/axios/axios/releases/tag/v0.28.0
- Linkgithub.com/axios/axios/releases/tag/v1.6.0
- Linksecurity.netapp.com/advisory/ntap-20240621-0006
- Linksecurity.snyk.io/vuln/SNYK-JS-AXIOS-6032459
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.