CVE-2026-54740: Lemmy: Lower-ranked federated moderator can remove higher-ranked moderators

Published Aug 19, 2026
·
Updated

Lemmy is a link aggregator and forum for the fediverse. Prior to 0.19.19 and 1.0.0-alpha.18, a lower-ranked remote moderator can remove a higher-ranked moderator by sending a signed ActivityPub Remove activity to the target instance. The local API uses LocalUser::ishighermodoradmincheck to enforce moderator rank, but CollectionRemove::verify in crates/apub/activities/src/community/collectionremove.rs only calls verifymodaction. CollectionRemove::receive dereferences self.object as an ApubPerson, creates a CommunityModeratorForm, and calls CommunityActions::leave without checking that the actor outranks the moderator identified by the object field. In communities with federated moderators, a junior moderator can therefore strip senior moderators from the community moderator list even though the local API rejects the same action. This issue is fixed in versions 0.19.19 and 1.0.0-alpha.18.

Affected Software

1 affected component
Lemmy>0.19.19<1.0.0-alpha.18

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 0.19.19
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.0.0-alpha.18

Event History

Aug 19, 2026
CVE Published
via MITRE·08:14 PM
Data Sourced
via MITRE·08:14 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed to this issue?

Lemmy instances running versions before 0.19.19 or 1.0.0-alpha.18 are affected when communities have federated moderators. The vulnerable path is the handling of remote ActivityPub Remove activities.

2

What access does an attacker need?

An attacker needs to be a lower-ranked remote moderator in the affected community and able to send a signed ActivityPub Remove activity to the target instance. No user interaction is required.

3

What is the impact of successful exploitation?

A junior federated moderator can remove a higher-ranked moderator from the community moderator list. The issue affects integrity by bypassing the moderator-rank enforcement applied by the local API.

4

How can this be remediated?

Upgrade Lemmy to version 0.19.19 or 1.0.0-alpha.18. These versions add the missing rank check for the federated CollectionRemove handling path.

5

What can be done before upgrading?

The provided information identifies communities with federated moderators as the affected configuration. Until an upgrade is available, review moderator-list changes in such communities and limit reliance on lower-ranked remote moderator accounts where operationally possible.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203