Skip to main content

CVE-2023-45857 — Vulnerability in axios — CVE Details

MEDIUM

Axios Cross-Site Request Forgery Vulnerability

Published November 8, 2023Updated September 10, 2026Source: OSV

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.

Check my package-lock.json

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
Update axios to 0.28.0 or later
npm install axios@0.28.0
npm
Update axios to 1.6.0 or later
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).

PackageFixed In
axios npm · Affected: All versions0.28.0
axios npm · Affected: All versions1.6.0

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-352
    Cross-Site Request Forgery (CSRF)MITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 6.5 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N

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

CVSS Score
6.5

Exploitation requires specific conditions, or the impact is limited.

EPSS Score (30-day exploit probability)
0.70%
EPSS percentile: 48.5

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

GHSA-wf5p-g6vw-rhxx

Related CVEs

  • CVE-2026-44496
    HIGH

    Axios: Regular Expression Denial of Service (ReDoS) via Cookie Name Injection

  • CVE-2026-44486
    HIGH

    Axios: Proxy-Authorization header leaks to redirect target when proxy is re-evaluated to direct connection

  • CVE-2025-27152
    HIGH

    axios Requests Vulnerable To Possible SSRF and Credential Leakage via Absolute URL

  • CVE-2026-101905
    HIGH

    Axios: Node HTTP adapter prototype-pollution gadget allows request socket hijack via inherited createConnection

  • CVE-2026-67321
    MEDIUM

    Axios form serializer maxDepth bypass via {} metatoken

  • CVE-2026-101904
    MEDIUM

    Axios: Header Injection via Inherited headers After Minimal Interceptor

  • CVE-2026-67317
    MEDIUM

    Axios: Fetch adapter `ReadableStream` uploads bypass `maxBodyLength`

  • CVE-2026-42038
    MEDIUM

    Axios: no_proxy bypass via IP alias allows SSRF

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my package-lock.json