CVE-2024-57965
Linux Debian vulnerability analysis and mitigation

Overview

In axios before version 1.7.8, there is a vulnerability in lib/helpers/isURLSameOrigin.js where the code does not use a URL object when determining an origin, and contains a potentially unwanted setAttribute('href',href) call (NVD, MITRE). The vulnerability was discovered and disclosed in January 2025, affecting all versions of axios prior to 1.7.8.

Technical details

The vulnerability stems from the implementation in the isURLSameOrigin.js helper file where the code uses DOM manipulation via setAttribute('href',href) instead of the URL API for origin determination. This issue was identified through a security scan that flagged the potentially unsafe use of setAttribute (GitHub Issue). The vulnerability has been assigned a CVSS v3.1 base score of 0.0 NONE with vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:N (NVD).

Impact

The actual impact of this vulnerability is disputed. Some parties believe that the code change only addresses a warning message from a Static Application Security Testing (SAST) tool and does not fix a real security vulnerability (NVD).

Mitigation and workarounds

The vulnerability has been fixed in axios version 1.7.8 by replacing the DOM-based origin determination with the URL API. Users are recommended to upgrade to version 1.7.8 or later to address this issue (GitHub PR, GitHub Release).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management