CVE-2023-45857 Axios Cross-Site Request Forgery Vulnerability
Axios leaks XSRF tokens to all hosts, allowing attackers to view sensitive information and potentially bypass CSRF protections.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2023-45857?
CVE-2023-45857 is a medium-severity vulnerability in n/a, published on 8 Nov 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
An issue discovered in Axios 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.
Weakness: CWE-352
Which versions are affected by CVE-2023-45857?
4 open source packages ship an affected version, including axios. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
axios npm | From 0.8.1 | 0.28.0 |
axios npm | From 0.8.1 | 0.28.0 |
axios npm | From 1.0.0 | 1.6.0 |
axios npm | From 1.0.0 | 1.6.0 |
Products include Axios Axios.
How do I fix CVE-2023-45857?
Upgrade axios to a fixed version for your release line: 0.28.0 or 1.6.0.
Is CVE-2023-45857 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-45857 exists.
Public exploit code: 3 proofs of concept on GitHub.
Other vulnerabilities in n/a
- CVE-2026-44494 Axios: Full Man-in-the-Middle via Prototype Pollution Gadget in `config.proxy`
- CVE-2026-44492 axios's shouldBypassProxy does not recognize IPv4-mapped IPv6 addresses, allowing NO_PROXY bypass (incomplete fix for CVE-2025-62718)
- CVE-2026-67320 axios before 0.33.0 Prototype Pollution via Node HTTP adapter
- CVE-2026-44487 Axios: Proxy-Authorization Credential Leak to Origin Server Across HTTP-to-HTTPS Redirect in Axios Node.js HTTP Adapter
- CVE-2025-27152 Possible SSRF and Credential Leakage via Absolute URL in axios Requests
Sources
Also known as CLSA-2026-1784943156, DEBIAN-CVE-2023-45857, GHSA-wf5p-g6vw-rhxx, ROOT-APP-NPM-CVE-2023-45857, UBUNTU-CVE-2023-45857.