Intel

CVE-2023-45857

axios is vulnerable to Data leakage

Data leakage Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Nov 8, 2023

65

Medium Risk

This Affects:

axios
Are you affected? Scan for Free

TL;DR

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.

Background info

axios is vulnerable to Data leakage.

How to fix this

If no upgrade above 1.5.1 is possible, a workaround is to change the default XSRF-TOKEN cookie name in the Axios configuration and manually include the corresponding header only in the specific places where it's necessary.