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

- Severity: None 0.0 (CVSS:3.1, scored by mitre) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.38%, higher than 33% of CVEs (2026-12-01)
- Published: 2025-01-29T00:00:00.000Z
- Modified: 2026-06-17T08:14:20.097Z
- Weaknesses: CWE-346
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mitre

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

(As written by CVE List.)

## Affected

- axios axios: before 1.7.8

## Every score

- mitre: CVSS:3.1 0.0 None `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:N`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/axios/axios/issues/6351> (issue-tracking)
- <https://github.com/axios/axios/releases/tag/v1.7.8> (release-notes)
- <https://github.com/axios/axios/commit/0a8d6e19da5b9899a2abafaaa06a75ee548597db> (patch)
- <https://github.com/axios/axios/pull/6714> (issue-tracking, patch)

## Sources

- CVE List: [CVE-2024-57965](https://www.cve.org/CVERecord?id=CVE-2024-57965), CVE Terms of Use, modified 2025-01-29
- NVD: [CVE-2024-57965](https://nvd.nist.gov/vuln/detail/CVE-2024-57965), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-57965 · Whole record: https://cve.day/CVE-2024-57965.json · Rebuilt by cve.day 2026-11-25T22:58:51.285Z
