CVE-2023-45857 — Vulnerability in axios — CVE Details
Axios Cross-Site Request Forgery Vulnerability
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.70%). Schedule for your next planned update.
Does your project use an affected axios version?
Paste your package-lock.json to check it for CVE-2023-45857 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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.
Advisory Timeline
- First published November 8, 2023 (1114 days ago).
- Last revised September 10, 2026 — 1036 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
npm install axios@0.28.0
npm install axios@1.6.0
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 1 ecosystem: npm (1).
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-352Cross-Site Request Forgery (CSRF)MITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 6.5 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
References
- https://nvd.nist.gov/vuln/detail/CVE-2023-45857ADVISORY
- https://github.com/axios/axios/issues/6006WEB
- https://github.com/axios/axios/issues/6022WEB
- https://github.com/axios/axios/pull/6028WEB
- https://github.com/axios/axios/pull/6091WEB
- https://github.com/axios/axios/commit/2755df562b9c194fba6d8b609a383443f6a6e967WEB
- https://github.com/axios/axios/commit/96ee232bd3ee4de2e657333d4d2191cd389e14d0WEB
- https://github.com/axios/axiosPACKAGE
- https://github.com/axios/axios/releases/tag/v0.28.0WEB
- https://github.com/axios/axios/releases/tag/v1.6.0WEB
- https://security.netapp.com/advisory/ntap-20240621-0006WEB
- https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459WEB
Frequently Asked Questions
- What is CVE-2023-45857?
- Axios Cross-Site Request Forgery Vulnerability. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 6.5/10).
- How do I check if my project is affected by CVE-2023-45857?
- CVE-2023-45857 affects axios. It has a 0.7% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2023-45857 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions, or the impact is limited.
This is a below-median EPSS score — only 48.5% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2026-44496HIGH
Axios: Regular Expression Denial of Service (ReDoS) via Cookie Name Injection
- CVE-2026-44486HIGH
Axios: Proxy-Authorization header leaks to redirect target when proxy is re-evaluated to direct connection
- CVE-2025-27152HIGH
axios Requests Vulnerable To Possible SSRF and Credential Leakage via Absolute URL
- CVE-2026-101905HIGH
Axios: Node HTTP adapter prototype-pollution gadget allows request socket hijack via inherited createConnection
- CVE-2026-67321MEDIUM
Axios form serializer maxDepth bypass via {} metatoken
- CVE-2026-101904MEDIUM
Axios: Header Injection via Inherited headers After Minimal Interceptor
- CVE-2026-67317MEDIUM
Axios: Fetch adapter `ReadableStream` uploads bypass `maxBodyLength`
- CVE-2026-42038MEDIUM
Axios: no_proxy bypass via IP alias allows SSRF