Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. axios
  4. ›
  5. CVE-2023-45857

CVE-2023-45857: Axios Cross-Site Request Forgery Vulnerability

November 8, 2023 (updated November 1, 2024)

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.

References

  • github.com/advisories/GHSA-wf5p-g6vw-rhxx
  • github.com/axios/axios/commit/96ee232bd3ee4de2e657333d4d2191cd389e14d0
  • github.com/axios/axios/issues/6006
  • github.com/axios/axios/issues/6022
  • github.com/axios/axios/pull/6028
  • github.com/axios/axios/releases/tag/v1.6.0
  • nvd.nist.gov/vuln/detail/CVE-2023-45857
  • security.snyk.io/vuln/SNYK-JS-AXIOS-6032459

Code Behaviors & Features

Detect and mitigate CVE-2023-45857 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 0.8.1 before 0.28.0, all versions starting from 1.0.0 before 1.6.0

Fixed versions

  • 1.6.0
  • 0.28.0

Solution

Upgrade to versions 0.28.0, 1.6.0 or above.

Impact 6.5 MEDIUM

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

Learn more about CVSS

Weakness

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

Source file

npm/axios/CVE-2023-45857.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:47 +0000.