Critical severity · published Jan 29, 2025
CVE-2024-57965
In axios before 1.7.8, lib/helpers/isURLSameOrigin.js does not use a URL object when determining an origin, and has a potentially unwanted setAttribute('href',href) call
9.8
CVSS
0.4%
EPSS
No
On KEV
Description
In axios before 1.7.8, lib/helpers/isURLSameOrigin.js does not use a URL object when determining an origin, and has a potentially unwanted setAttribute('href',href) call. NOTE: some parties feel that the code change only addresses a warning message from a SAST tool and does not fix a vulnerability.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.4% · higher than 32% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
AX
Axios · Axios
before 1.7.8 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2024-57965
CVE.org
https://www.cve.org/CVERecord?id=CVE-2024-57965
Patch
https://github.com/axios/axios/commit/0a8d6e19da5b9899a2abafaaa06a75ee548597db
Issue Tracking
https://github.com/axios/axios/issues/6351
Issue Tracking
https://github.com/axios/axios/pull/6714
Release Notes
https://github.com/axios/axios/releases/tag/v1.7.8
More from Axios
10.0
CVE-2026-42043
Axios: Incomplete Fix for CVE-2025-62718 — NO_PROXY Protection Bypassed via RFC 1122 Loopback Subnet (127.0.0.0/8) in Axios 1.15.0
9.9
CVE-2025-62718
Axios has a NO_PROXY Hostname Normalization Bypass that Leads to SSRF
9.1
CVE-2026-42264
Axios: Prototype pollution read-side gadgets in HTTP adapter allow credential injection and request hijacking
9.1
CVE-2026-42044
Axios: Invisible JSON Response Tampering via Prototype Pollution Gadget in `parseReviver`
8.7
CVE-2026-44494
Axios: Full Man-in-the-Middle via Prototype Pollution Gadget in `config.proxy`
