CVE-2025-54888
highpriority · track · 0OT risk · elevatedEPSS 0.006 · 49 %ileEUUSEPSS · scored 2026-10-28
Fedify is a TypeScript library for building federated server apps powered by ActivityPub. In versions below 1.3.20, 1.4.0-dev.585 through 1.4.12, 1.5.0-dev.636 through 1.5.4, 1.6.0-dev.754 through 1.6.7, 1.7.0-pr.251.885 through 1.7.8 and 1.8.0-dev.909 through 1.8.4, an authentication bypass vulnerability allows any unauthenticated attacker to impersonate any ActivityPub actor by sending forged activities signed with their own keys. Activities are processed before verifying the signing key belongs to the claimed actor, enabling complete actor impersonation across all Fedify instances. This is fixed in versions 1.3.20, 1.4.13, 1.5.5, 1.6.8, 1.7.9 and 1.8.5.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 6.6–8.7
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (12)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-6jcc-xgcr-q3h4@fedify/fedify has Improper Authentication and Incorrect Authorization2025-08-08ghsa · osvUS
### Summary An authentication bypass vulnerability allows any unauthenticated attacker to impersonate any ActivityPub actor by sending forged activities signed with their own keys. Activities are processed before verifying the signing key belongs to the claimed actor, enabling complete actor impersonation across all Fedify instances ### Details The vulnerability exists in handleInboxInternal function in fedify/federation/handler.ts. The critical flaw is in the order of operations: 1. Line 1712: routeActivity() is called first, which processes the activity (either immediately or by adding to queue) 2. Line 1730: Authentication check (doesActorOwnKey) happens AFTER processing ```ts // fedify/federation/handler.ts:1712-1750 const routeResult = await routeActivity({ // ← Activity processed here context: ctx, json, activity, recipient, inboxListeners, inboxContextFactory, inboxErrorHandler, kv, kvPrefixes, queue, span, tracerProvider, }); if ( httpSigKey != null && !await doesActorOwnKey(activity, httpSigKey, ctx) // ← Auth check too late ) { // Returns 401, but activity already processed return new Response("The signer and the actor do not match.", { status: 401, headers: { "Content-Type": "text/plain; charset=utf-8" }, }); } ``` By the time the 401 response is returned, the malicious activity has already been processed or queued. ### PoC 1. Create an activity claiming to be from any actor: ```ts const maliciousActivity = { "@context": "https://www.w3.org/ns/activitystreams", "type": "Create", "actor": "https://victim.example.com/users/alice", // Impersonating victim "object": { "type": "Note", "content": "This is a forged message!" } } ``` 2. Sign the HTTP request with attacker's key (not the victim's): ```ts // Sign with attacker's key: https://attacker.com/users/eve#main-key const signedRequest = await signRequest(request, attackerPrivateKey, attackerKeyId); ``` 3. Send to any Fedify inbox - the activity will be processed despite the key mismatch. ### Impact Type: Authentication Bypass / Actor Impersonation Who is impacted: All Fedify instances and their users Consequences: Allows complete impersonation of any ActivityPub actor, enabling: - Sending fake posts/messages as any user - Creating/removing follows as any user - Boosting/sharing content as any user - Complete compromise of federation trust model The vulnerability affects all Fedify instances but does not propagate to other ActivityPub implementations (Mastodon, etc.) which properly validate before processing.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (8)
External citations — patches, advisories, analysis.
- https://access.redhat.com/security/cve/cve-2025-54888cnnvd
- https://github.com/fedify-dev/fedify/commit/226d9b84dbec52172a70138bba8861454afde42bcnnvd
- https://github.com/fedify-dev/fedify/releasesPatchcnnvd
- https://github.com/fedify-dev/fedify/security/advisories/GHSA-6jcc-xgcr-q3h4cnnvd
- https://github.com/fedify-dev/fedify/commit/14a2f8c6d2c3cbc00c3170a86ad3b7b8555c6847enisa_euvd
- https://github.com/fedify-dev/fedify/security/advisories/GHSA-6jcc-xgcr-q3h4enisa_euvd
- https://github.com/fedify-dev/fedify/commit/14a2f8c6d2c3cbc00c3170a86ad3b7b8555c6847nvd
- https://github.com/fedify-dev/fedify/security/advisories/GHSA-6jcc-xgcr-q3h4nvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan