# CVE-2025-25194: Server-Side Request Forgery (SSRF) in activitypub_federation

> Attackers can bypass security controls to perform arbitrary GET requests via Webfinger, potentially accessing internal resources.

- **Severity:** Medium 4.0 (`CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** No
- **Published:** 10 Feb 2025
- **Updated:** 11 Feb 2025
- **Also known as:** GHSA-7723-35v7-qcxw

## What is CVE-2025-25194?

CVE-2025-25194 is a medium-severity server-side request forgery vulnerability in LemmyNet lemmy, published on 10 Feb 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

Lemmy, a link aggregator and forum for the fediverse, is vulnerable to server-side request forgery via a dependency on activitypub_federation, a framework for ActivityPub federation in Rust. This vulnerability, which is present in versions 0.6.2 and prior of activitypub_federation and versions 0.19.8 and prior of Lemmy, allows a user to bypass any predefined hardcoded URL path or security anti-Localhost mechanism and perform an arbitrary GET request to any Host, Port and URL using a Webfinger Request. As of time of publication, a fix has not been made available.

Weakness: CWE-918 (Server-Side Request Forgery)

## Which versions are affected by CVE-2025-25194?

2 open source packages ship an affected version, including activitypub_federation.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `activitypub_federation` | crates.io | All versions to 0.6.2 | None |
| `activitypub_federation` | crates.io | All versions to 0.6.2 | None |

## How do I fix CVE-2025-25194?

No fix has been published for CVE-2025-25194 yet. Limit exposure of the affected software until one is available.

## Is CVE-2025-25194 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-25194 exists.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2025-25194 and fix it if it is affected.

What it is: CVE-2025-25194 is a medium-severity server-side request forgery vulnerability in LemmyNet lemmy, published on 10 Feb 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-25194 exists.

Affected packages and fixed versions:
- activitypub_federation (crates.io): affected all versions up to 0.6.2; no fix listed
- activitypub_federation (crates.io): affected all versions up to 0.6.2; no fix listed

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2025-25194/ (Markdown: https://insights.sbomify.com/CVE-2025-25194/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2025-25194
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2025-25194
- OSV: https://osv.dev/vulnerability/CVE-2025-25194

---
From sbomify Insights: https://insights.sbomify.com/CVE-2025-25194/
Summaries are generated and may contain mistakes; the official description above is the record.
