Vulnerability · Published Jul 5, 2024 · Assigned by GitHub_M
CVE-2024-39687Fedify vulnerable to allowing access to internal network resources
High 7.2
In plain English
A high-severity server-side request forgery in fedify from dahlia. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 49% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | @fedify/fedify | 0.9.2 | GHSA-p9cg-vqcc-grcx |
| npm | @fedify/fedify | 0.10.2 | GHSA-p9cg-vqcc-grcx |
| npm | @fedify/fedify | 0.11.2 | GHSA-p9cg-vqcc-grcx |
Affected products (as reported)
Weakness: CWE-918 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:L