Loading...
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.06%). Schedule for your next planned update.

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 (1068 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, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (2)

Affects 1 ecosystem: npm (1).

PackageEcosystemAffectedFixed In
axios
npm
All versions0.28.0
axios
npm
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.1% 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 has limited impact. Remediate within weeks.

EPSS Score (30-day exploit probability)
0.06%
Higher than 20% of vulnerabilities

This is a below-median EPSS score — only 20% 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

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies