CVE-2024-39338 — Server-Side Request Forgery in axios — CVE Details
Server-Side Request Forgery in axios
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.79%). Schedule for your next planned update.
Does your project use an affected axios version?
Paste your package-lock.json to check it for CVE-2024-39338 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
axios 1.7.2 allows SSRF via unexpected behavior where requests for path relative URLs get processed as protocol relative URLs.
Advisory Timeline
- First published August 12, 2024 (836 days ago).
- Last revised September 10, 2026 — 759 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
npm install axios@1.7.4
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: npm (1).
| Package | Fixed In |
|---|---|
| axios npm · Affected: All versions | 1.7.4 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-918Server-Side Request Forgery (SSRF)MITRE
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-39338ADVISORY
- https://github.com/axios/axios/issues/6463WEB
- https://github.com/axios/axios/pull/6539WEB
- https://github.com/axios/axios/pull/6543WEB
- https://github.com/axios/axios/commit/6b6b605eaf73852fb2dae033f1e786155959de3aWEB
- https://github.com/axios/axiosPACKAGE
- https://github.com/axios/axios/releasesWEB
- https://github.com/axios/axios/releases/tag/v1.7.4WEB
- https://jeffhacks.com/advisories/2024/06/24/CVE-2024-39338.htmlWEB
Frequently Asked Questions
- What is CVE-2024-39338?
- Server-Side Request Forgery in axios. This vulnerability has been assigned a severity rating of HIGH.
- How do I check if my project is affected by CVE-2024-39338?
- CVE-2024-39338 affects axios. It has a 0.8% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-39338 and 200,000+ other known vulnerabilities.
Severity & Exploitability
This is an above-median EPSS score — 52.8% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2026-42035HIGH
Axios: Header Injection via Prototype Pollution
- CVE-2026-44488HIGH
Allocation of Resources Without Limits or Throttling in Axios
- CVE-2026-101909HIGH
Axios: Prototype Pollution Gadget in axios toFormData Options
- CVE-2026-42039MEDIUM
Axios: unbounded recursion in toFormData causes DoS via deeply nested request data
- CVE-2026-67319MEDIUM
Axios: Nested axios option objects can consume polluted prototype values
- CVE-2023-45857MEDIUM
Axios Cross-Site Request Forgery Vulnerability
- CVE-2026-67314MEDIUM
Axios: Prototype pollution auth subfields can inject Basic auth
- CVE-2026-42040LOW
Axios: Null Byte Injection via Reverse-Encoding in AxiosURLSearchParams