CVE-2026-47777: Mastodon Collections Consent Forgery Vulnerability
Mastodon, an open-source social network platform, contains a flaw in its experimental Collections feature that allows attackers to forge authorization objects and falsely claim permission to feature accounts in remote Collections. The vulnerability exists because Mastodon fails to properly validate that the authorization object matches the actual account being featured. Exploitation is straightforward—no user interaction or special privileges are required—but only affects Mastodon instances that have explicitly enabled the experimental Collections feature. The flaw has been patched in version 4.6.0-beta.1.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 7.5 HIGH · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- Weaknesses (CWE)
- CWE-345, CWE-863
- Affected products
- 0 configuration(s)
- Published / Modified
- 2026-06-15 / 2026-06-17
NVD description (verbatim)
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.
2 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
The vulnerability stems from incomplete validation logic in Mastodon's Collections implementation. When a remote Mastodon server wants to feature an account in a Collection, it relies on a FeatureAuthorization object to verify that the account holder consented. While Mastodon correctly requires this authorization to originate from the same domain as the target account, it fails to verify that the authorization object actually references the correct account object within the Collection. This missing validation allows an attacker to craft a forged FeatureAuthorization that passes domain checks but authorizes an unrelated account for inclusion. The attacker needs network access to exploit this—no authentication, special privileges, or user interaction are necessary. The integrity violation is high because attackers can misrepresent collection membership and falsely signal consent.
Business impact
For Mastodon instance operators, this vulnerability enables reputation and trust attacks. An attacker can forge authorization to place accounts or content in Collections without genuine consent, potentially defaming individuals, manipulating discovery, or poisoning curated collections. Since this affects only instances with experimental Collections enabled, the immediate exposure is limited to early adopters and test deployments. However, as Collections moves from experimental to stable, the attack surface will expand to production systems. Instances relying on Collections for community moderation, content curation, or trust signaling face the highest risk.
Affected systems
Only Mastodon instances running the main development branch or nightly builds with the experimental Collections feature explicitly enabled via the EXPERIMENTAL_FEATURES environment variable are vulnerable. Stable releases (e.g., 4.5.x and earlier) are not affected. The patch is available in version 4.6.0-beta.1 and later stable releases.
Exploitability
Exploitation is trivial from a technical standpoint. The attack requires only network access to a vulnerable Mastodon instance; no prior authentication, user interaction, or elevated privileges are necessary. An attacker can craft and send a forged FeatureAuthorization object over HTTP/ActivityPub. However, real-world impact depends on the attacker's ability to predict or enumerate valid account IDs and Collection endpoints on the target server. The attack is reliable once an attacker identifies these details.
Remediation
Mastodon operators should immediately upgrade to version 4.6.0-beta.1 or later. For instances running stable releases, the fix will be available in the next stable version following 4.5.x; check the official Mastodon release notes. If you have the experimental Collections feature enabled in a development or nightly build, disable it (unset or modify the EXPERIMENTAL_FEATURES environment variable) until you can apply the patch. Test patches in a staging environment before deploying to production to ensure no disruption to federation.
Patch guidance
Upgrade Mastodon to version 4.6.0-beta.1 or later. The patch corrects the validation logic to ensure that FeatureAuthorization objects are checked not only for correct domain origin but also for matching the specific account object within the Collection. After upgrading, restart your Mastodon services and verify that Collections functionality operates as expected. Monitor federation logs for any unusual authorization attempts during and after the upgrade.
Detection guidance
Monitor incoming ActivityPub requests for FeatureAuthorization objects that originate from domains matching the target account but reference mismatched or unexpected account identifiers within Collections. Log and alert on instances where the domain of the authorization issuer differs from the account domain, or where Collection features reference accounts not explicitly authorized. If you maintain Mastodon logs, search for Collection-related operations or FeatureAuthorization processing errors that may indicate exploit attempts. Intrusion detection signatures should focus on HTTP POST requests to Collections endpoints with inconsistent authorization metadata.
Why prioritize this
This vulnerability rates HIGH (CVSS 7.5) due to network-exploitable integrity violations requiring no authentication or user interaction. While the impact is currently limited to experimental feature users, the ease of exploitation and the breach of trust in consent mechanisms warrant rapid patching. Early adopters and organizations testing Collections for production deployment should treat this as urgent. Standard Mastodon users on stable releases have no immediate exposure but should plan to upgrade when the fix lands in a stable release.
Risk score, explained
The CVSS 3.1 score of 7.5 reflects an unauthenticated network attack (AV:N, AC:L, PR:N) with no confidentiality impact but high integrity impact (I:H). The vulnerability does not cause availability issues or alter system functionality beyond the intended Collections feature. The score is appropriate because it captures the ease of exploitation and the meaningful trust violation, offset by the limited scope (experimental feature only) and absence of information disclosure or denial-of-service elements.
Frequently asked questions
Does this affect my Mastodon server if I'm not using Collections?
No. This vulnerability only impacts instances that have explicitly enabled the experimental Collections feature via the EXPERIMENTAL_FEATURES environment variable. Instances running stable Mastodon releases or development builds without Collections enabled are not affected.
Can an attacker add my account to Collections without my permission?
Yes, if your server has Collections enabled. An attacker can forge authorization to place your account in remote Collections, making it appear as though you consented when you did not. This is a consent and trust violation rather than a direct account compromise.
What should I do if I'm running Mastodon with Collections enabled?
Apply the patch immediately by upgrading to version 4.6.0-beta.1 or later, or temporarily disable Collections by unsetting the EXPERIMENTAL_FEATURES environment variable until you can patch. The vulnerability requires no special conditions to exploit, so it should be treated as urgent.
Will this affect my Mastodon server after it updates to the next stable release?
No. Once you upgrade to a patched version (4.6.0-beta.1 or later stable releases), the validation logic is corrected and the vulnerability is closed. Future stable releases will include this fix, and you will not face this issue after patching.
This analysis is provided for informational purposes to assist security professionals in understanding and remediating CVE-2026-47777. The information herein is based on the official CVE record and Mastodon vendor advisory. Verify patch version numbers and affected product details against the official Mastodon security advisory before deployment. This vulnerability is not currently tracked on the CISA KEV catalog and does not appear to be actively exploited in the wild as of the publication date, but early adoption of Collections may increase exposure. No proof-of-concept or exploit code is provided. Organizations should assess their own environment, test patches in staging, and apply updates according to their change management policies. Source: NVD (public-domain), retrieved 2026-07-24. Analysis generated by SEC.co (claude-haiku-4-5).
Related vulnerabilities
- CVE-2016-20075HIGHWordPress Ultimate Product Catalog 3.8.6 Arbitrary File Upload (CVSS 8.8)
- CVE-2022-4992HIGHDräger Infinity M540 Patient Monitor Network Message Vulnerability
- CVE-2025-14774HIGHABB T-MAC Plus Denial-of-Service Vulnerability (CVSS 7.4)
- CVE-2025-32348HIGHAndroid Local Privilege Escalation via Missing Permission Check
- CVE-2026-0272HIGHPalo Alto PAN-OS Privilege Escalation Vulnerability (PA-Series, VM-Series, Panorama)
- CVE-2026-21031HIGHAppBlock Authorization Flaw in Samsung Android—Risk & Patch Guidance
- CVE-2026-24724HIGHQNAP File Station 6 Authorization Bypass (CVSS 8.1)
- CVE-2026-3514HIGHPrefect 3.6.19 Authentication Bypass via Health Check Exemptions