CVE-2024-39338 Server-Side Request Forgery in axios
An attacker can exploit Server-Side Request Forgery in the axios library by manipulating relative URLs, potentially accessing internal resources.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-39338?
CVE-2024-39338 is a medium-severity server-side request forgery vulnerability in n/a, published on 9 Aug 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
axios 1.7.2 allows SSRF via unexpected behavior where requests for path relative URLs get processed as protocol relative URLs.
Weakness: CWE-918
Which versions are affected by CVE-2024-39338?
2 open source packages ship an affected version, including axios. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
axios npm | From 1.3.2 | 1.7.4 |
axios npm | From 1.3.2 | 1.7.4 |
Linux distribution packages (1)
velociraptor openSUSE:Tumbleweed | All versions | 0.7.0.4.git97.675e45f9-12.1 |
Products include Axios Axios.
How do I fix CVE-2024-39338?
Upgrade axios to 1.7.4 or later.
Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.
Is CVE-2024-39338 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-39338 exists.
Other vulnerabilities in n/a
- CVE-2026-44494 Axios: Full Man-in-the-Middle via Prototype Pollution Gadget in `config.proxy`
- CVE-2026-44492 axios's shouldBypassProxy does not recognize IPv4-mapped IPv6 addresses, allowing NO_PROXY bypass (incomplete fix for CVE-2025-62718)
- CVE-2026-67320 axios before 0.33.0 Prototype Pollution via Node HTTP adapter
- CVE-2026-44487 Axios: Proxy-Authorization Credential Leak to Origin Server Across HTTP-to-HTTPS Redirect in Axios Node.js HTTP Adapter
- CVE-2025-27152 Possible SSRF and Credential Leakage via Absolute URL in axios Requests
Sources
Also known as CLSA-2026-1777855414, CLSA-2026-1785291680, CLSA-2026-1790760631, CLSA-2026-1792488799, DEBIAN-CVE-2024-39338, ECHO-5858-e93b-f6c7 and 5 more.