CVE-2025-27399 Mastodon's domain blocks & rationales ignore user approval when visibility set as "users"
MediumCVSS 5.3
EPSS 0.36%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
Description
Mastodon is a self-hosted, federated microblogging platform. In versions prior to 4.1.23, 4.2.16, and 4.3.4, when the visibility for domain blocks/reasons is set to "users" (localized English string: "To logged-in users"), users that are not yet approved can view the block reasons. Instance admins that do not want their domain blocks to be public are impacted. Versions 4.1.23, 4.2.16, and 4.3.4 fix the issue.
Upgrade path
2 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| joinmastodon mastodon | < 4.1.23; >= 4.2.0, < 4.2.16; >= 4.3.0, < 4.3.4 | 4.1.23, 4.2.16, 4.3.4 | Fixed |
| mastodon | = < 4.1.23; = >= 4.2.0, < 4.2.16; = >= 4.3.0, < 4.3.4 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| mastodon | = < 4.1.23 | No fix listed |
| mastodon | = >= 4.2.0, < 4.2.16 | No fix listed |
| mastodon | = >= 4.3.0, < 4.3.4 | No fix listed |
| joinmastodon mastodon | < 4.1.23 | 4.1.23 |
| joinmastodon mastodon | >= 4.2.0, < 4.2.16 | 4.2.16 |
| joinmastodon mastodon | >= 4.3.0, < 4.3.4 | 4.3.4 |
References
- https://github.com/mastodon/mastodon/security/advisories/GHSA-94h4-fj37-c825 vendor-advisory
- https://github.com/mastodon/mastodon/commit/6b519cfefa93a923b19d0f20c292c7185f8fd5f5 patch
- https://github.com/mastodon/mastodon/blob/93f0427b8a84faf68d5d02cdf9a26f98fae16f2b/app/controllers/api/v1/instances/domain_blocks_controller.rb#L33-L35 product