CVE-2026-47777
Received Received - Intake
Mastodon Collections Feature Authorization Bypass

Publication date: 2026-06-15

Last updated on: 2026-06-15

Assigner: GitHub, Inc.

Description
Mastodon is a free, open-source social network server based on ActivityPub. In versions there is a missing condition in the check if remote accounts consented to be featured in a remote Collection could lead to attackers bypassing the check and faking consent. An attacker could forge the FeatureAuthorization object that is used to verify consent to be featured in a Collection and thus make it appear as if an account is allowed to be in a Collection when it actually is not. While the FeatureAuthorization must reside on the same domain as the object it is for, a check is missing to make sure said object is actually the same as in the Collection item. This allows an attacker to forge the authorization. Mastodon servers are affected only if running the main branch or nightly builds who have opted into testing the experimental "Collections" feature by setting the environment variable EXPERIMENTAL_FEATURES to a value including collections. This has been patched in version 4.6.0-beta.1.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-06-15
Last Modified
2026-06-15
Generated
2026-06-16
AI Q&A
2026-06-15
EPSS Evaluated
N/A
NVD
EUVD
Affected Vendors & Products
Showing 3 associated CPEs
Vendor Product Version / Range
mastodon mastodon 4.6.0-beta.1
mastodon main_branch *
mastodon nightly_builds *
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-863 The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check.
CWE-345 The product does not sufficiently verify the origin or authenticity of data, in a way that causes it to accept invalid data.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

This vulnerability in Mastodon involves a missing condition in the verification process for remote accounts consenting to be featured in a remote Collection. An attacker can exploit this by forging the FeatureAuthorization object, which is supposed to confirm consent. Because the system does not properly check that the authorization object corresponds exactly to the account in the Collection, attackers can make it appear as if an unauthorized account has consented to be featured.

The issue affects Mastodon servers running the main branch or nightly builds that have enabled the experimental "Collections" feature by setting the EXPERIMENTAL_FEATURES environment variable to include collections. This flaw was patched in version 4.6.0-beta.1.

Impact Analysis

This vulnerability can impact you by allowing attackers to bypass consent verification and falsely include unauthorized accounts in Collections. This compromises data integrity because it allows manipulation of which accounts appear featured without proper authorization.

The vulnerability has a high severity score of 7.5 and can be exploited remotely without any privileges or user interaction, making it relatively easy for attackers to abuse if the experimental Collections feature is enabled.

Detection Guidance

This vulnerability affects Mastodon servers running the main branch or nightly builds that have enabled the experimental "Collections" feature by setting the EXPERIMENTAL_FEATURES environment variable to include collections.

To detect if your system is vulnerable, first check if the EXPERIMENTAL_FEATURES environment variable includes "collections".

You can run the following command to check the environment variable on your server:

  • echo $EXPERIMENTAL_FEATURES

If the output includes "collections", your server may be vulnerable if it is running an affected version.

Also, verify the Mastodon version by running:

  • bundle exec mastodon --version

If the version is before 4.6.0-beta.1 or if you are running main branch or nightly builds prior to May 21, 2026, and have the collections feature enabled, your system is vulnerable.

Mitigation Strategies

To mitigate this vulnerability immediately, you should disable the experimental "Collections" feature if it is enabled by removing "collections" from the EXPERIMENTAL_FEATURES environment variable.

Alternatively, upgrade your Mastodon server to version 4.6.0-beta.1 or later, which includes the patch that fixes this issue.

The patch includes validation checks to ensure that the FeatureAuthorization object cannot be forged, preventing unauthorized accounts from being featured in collections.

If upgrading immediately is not possible, disabling the collections feature will prevent exploitation.

Compliance Impact

This vulnerability impacts data integrity by allowing attackers to forge consent for featuring remote accounts in Collections, potentially leading to unauthorized inclusion of accounts. However, it does not affect data confidentiality or availability.

While the CVE description and resources do not explicitly mention compliance with standards such as GDPR or HIPAA, the ability to forge consent could raise concerns under regulations that require explicit user consent for data processing or sharing.

Organizations using affected Mastodon versions with the experimental Collections feature enabled should consider the risk of unauthorized data representation and ensure they apply the patch to maintain compliance with consent-related requirements.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-47777. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart