# CVE-2025-23221: Fedify infinite loop and blind SSRF in WebFinger mechanism

Source: https://junglewise.ai/threats/cve-2025-23221-fedify-infinite-loop-and-blind-ssrf-in-webfinger-mechanism  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2025-01-21. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2025-23221 · Severity: low · CVSS 3.1 · Published 2025-01-21

Fedify is a TypeScript library implementing the ActivityPub protocol, which allows servers to communicate and exchange social media content. The library's WebFinger mechanism, used to resolve remote actor identities, can be exploited by an attacker to perform blind server-side request forgery (SSRF) attacks against internal resources and trigger infinite loops that cause denial of service. This could allow attackers to access internal services like localhost databases or metadata servers, or crash victim servers.

Technologies: [Fedify](https://junglewise.ai/threats/technologies/fedify). Vendors: [Fedify](https://junglewise.ai/threats/vendors/fedify).

## Quick answers

**Is CVE-2025-23221 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2025-23221 being exploited in the wild.

**How severe is CVE-2025-23221?** Low severity, with a CVSS score of 3.1, published 21 January 2025.

**Which products and versions are affected?** Fedify 1.0.13, 1.1.10, 1.2.10, 1.3.3.

**Is there a fix for CVE-2025-23221?** A patch was published on 2025-01-20: Patches released: 1.0.14, 1.1.11, 1.2.11, 1.3.4 Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2025-23221 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2025-23221?** Check whether you run Fedify at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

The vulnerability exists in the lookupWebFingerInternal function, which processes actor ID URLs without proper validation of the target host and port. The function extracts the protocol and server from the actor ID and constructs a WebFinger URL, then follows HTTP 3xx redirects via custom code in a while loop without limiting the number of redirects. An attacker can craft a malicious actor ID with a redirect chain that either loops indefinitely or points to internal resources (localhost, private IPs, or arbitrary internal services). The fetch request uses "redirect: manual" but still processes Location headers, bypassing protections that would normally prevent SSRF. The vulnerability affects versions 1.0.13, 1.1.10, 1.2.10, and 1.3.3; patches are available in 1.0.14, 1.1.11, 1.2.11, and 1.3.4.

## Affected products

- Fedify fedify 1.0.13, 1.1.10, 1.2.10, 1.3.3

## Identifiers

- CVE-2025-23221
- GHSA-c59p-wq67-24wx

## Timeline

- 2025-01-21: disclosed
- 2025-01-20: patched: Patches released: 1.0.14, 1.1.11, 1.2.11, 1.3.4

## References

- [https://github.com/dahlia/fedify/security/advisories/GHSA-c59p-wq67-24wx](https://github.com/dahlia/fedify/security/advisories/GHSA-c59p-wq67-24wx)

## Related threats

- [Fedify getNodeInfo() server-side request forgery](https://junglewise.ai/threats/cve-2026-62857-fedify-getnodeinfo-server-side-request-forgery)
- [Fedify SSRF via incomplete IPv4 validation in validatePublicUrl](https://junglewise.ai/threats/cve-2026-50131-fedify-ssrf-via-incomplete-ipv4-validation-in-validatepublicurl)
- [Fedify Linked Data Signature bypass via JSON-LD restructuring](https://junglewise.ai/threats/cve-2026-42462-fedify-linked-data-signature-bypass-via-json-ld-restructuring)
- [Fedify unbounded redirect following resource exhaustion in document loader](https://junglewise.ai/threats/cve-2026-34148-fedify-unbounded-redirect-following-resource-exhaustion-in)
- [Fedify is a TypeScript library for building federated server apps powered by ActivityPub. Prior to versions 1.6.13, 1.7.14, 1.8.15, and 1.9.](https://junglewise.ai/threats/cve-2025-68475-fedify-redos-vulnerability-in-html-parsing-regex)
