CVE-2024-39687 Fedify vulnerable to allowing access to internal network resources

High 7.2 Published Updated

An attacker can exploit Fedify to send requests to internal network resources via crafted ActivityPub URLs, potentially accessing sensitive internal data.

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-39687?

CVE-2024-39687 is a high-severity server-side request forgery vulnerability in dahlia fedify, published on 5 Jul 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Fedify is a TypeScript library for building federated server apps powered by ActivityPub and other standards. At present, when Fedify needs to retrieve an object or activity from a remote activitypub server, it makes a HTTP request to the `@id` or other resources present within the activity it has received from the web. This activity could reference an `@id` that points to an internal IP address, allowing an attacker to send request to resources internal to the fedify server's network. This applies to not just resolution of documents containing activities or objects, but also to media URLs as well. Specifically this is a Server Side Request Forgery attack. Users should upgrade to Fedify version 0.9.2, 0.10.1, or 0.11.1 to receive a patch for this issue.

Weakness: CWE-918

Which versions are affected by CVE-2024-39687?

6 open source packages ship an affected version, including @fedify/fedify.

PackageAffectedFixed in
@fedify/fedify npmAll versions0.9.2
@fedify/fedify npmAll versions0.9.2
@fedify/fedify npmFrom 0.10.00.10.2
@fedify/fedify npmFrom 0.10.00.10.2
@fedify/fedify npmFrom 0.11.00.11.2
@fedify/fedify npmFrom 0.11.00.11.2

How do I fix CVE-2024-39687?

Upgrade @fedify/fedify to a fixed version for your release line: 0.9.2, 0.10.2 or 0.11.2.

Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.

Is CVE-2024-39687 being exploited?

There is no known exploitation of CVE-2024-39687 in the wild and no public exploit code.

Sources

Also known as GHSA-p9cg-vqcc-grcx.

Is CVE-2024-39687 in your software?

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

Check your SBOMs for free