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

Medium 6.5 Published Updated

Axios leaks XSRF tokens to all hosts, allowing attackers to view sensitive information and potentially bypass CSRF protections.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2023-45857?

CVE-2023-45857 is a medium-severity vulnerability in n/a, published on 8 Nov 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

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

Weakness: CWE-352

Which versions are affected by CVE-2023-45857?

4 open source packages ship an affected version, including axios. It affects 1 product.

PackageAffectedFixed in
axios npmFrom 0.8.10.28.0
axios npmFrom 0.8.10.28.0
axios npmFrom 1.0.01.6.0
axios npmFrom 1.0.01.6.0

Products include Axios Axios.

How do I fix CVE-2023-45857?

Upgrade axios to a fixed version for your release line: 0.28.0 or 1.6.0.

Is CVE-2023-45857 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-45857 exists.

Public exploit code: 3 proofs of concept on GitHub.

Sources

Also known as CLSA-2026-1784943156, DEBIAN-CVE-2023-45857, GHSA-wf5p-g6vw-rhxx, ROOT-APP-NPM-CVE-2023-45857, UBUNTU-CVE-2023-45857.

Is CVE-2023-45857 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free