CVE-2024-39338 Server-Side Request Forgery in axios

Medium 4.0 Published Updated

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.

PackageAffectedFixed in
axios npmFrom 1.3.21.7.4
axios npmFrom 1.3.21.7.4
Linux distribution packages (1)
velociraptor openSUSE:TumbleweedAll versions0.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.

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.

Is CVE-2024-39338 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free