Skip to main content
VulnerabilityPublished Updated

CVE-2024-39338: axios · Server-Side Request Forgery (SSRF)

Affects axiosSource CVE Database V5

0

Not known to be exploited · CVSS 4.0 Medium.

Data as of 26 Oct 2026, 14:05 UTC

CVSS 3.1 base score
4.0Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
1.2% chance of exploitation in 30 days – higher than 68% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 9 Aug 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

Affected software

ProductAffectedFixed in
npmaxiospkg:npm/axiosOther threatsAffected
  • =1.7.2
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

To mitigate CVE-2024-39338, organizations should first check if they are using axios version 1.7.2 in server-side contexts and upgrade to a patched version once available. In the absence of an official patch, developers should implement strict input validation and sanitization to ensure that user-controlled input cannot influence URL construction in axios requests. Specifically, avoid passing untrusted data directly as path-relative URLs without validation. Employ allowlisting of domains or IP addresses for outbound HTTP requests to restrict axios from making requests to unauthorized internal or external endpoints. Network-level controls such as firewall rules and egress filtering can limit the server's ability to reach sensitive internal resources. Additionally, monitoring and logging outbound HTTP requests can help detect anomalous SSRF attempts. Developers should also consider using alternative HTTP client libraries that do not exhibit this behavior until a fix is released. Finally, conduct thorough security testing, including SSRF-specific tests, during development and deployment phases.

Description

axios 1.7.2 allows SSRF via unexpected behavior where requests for path relative URLs get processed as protocol relative URLs.

References

Community reviews

Loading reviews…