Skip to main content

Mastodon CVE-2026-41259

| EUVDEUVD-2026-25282 HIGH
Improper Enforcement of Behavioral Workflow (CWE-841)
2026-04-23 security-advisories@github.com
8.2
CVSS 4.0 · GitHub Advisory
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify instance with e-mail-domain sign-up restriction
  2. Delivery
    Craft address with MTA-ambiguous characters
  3. Exploit
    Submit registration passing Mastodon domain check
  4. Execution
    Confirmation mail routed to blocked domain
  5. Impact
    Confirm account and bypass restriction

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Workflow enforcement
Exploitation Conditions

Exploitation requires that the target Mastodon instance has e-mail-domain-based sign-up restriction enabled (allowed or disallowed domain lists) - an instance with open unrestricted registration or invite-only registration gains nothing from the bypass. The attacker must craft an e-mail address whose special/quoting characters are parsed differently by Mastodon's validator than by the instance's actual mail server, so success is gated by the specific MTA in use (reflected as AT:P in the CVSS 4.0 vector). No authentication and no user interaction are needed (PR:N/UI:N, AV:N), but the impact is limited to defeating the domain restriction control (integrity only, VI:H; no data disclosure or service disruption).

Impact

The CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N) scores 8.2 High, driven entirely by an integrity impact (VI:H) - the ability to defeat a security control - with no confidentiality or availability impact. AT:P (attack requirements present) reflects that success depends on the victim instance's specific MTA parsing behavior, which the attacker does not fully control, so this is not a clean push-button exploit. Contrast the signals: EPSS is 0.04% (13th percentile) and SSVC exploitation status is 'none', indicating no observed real-world attacks, yet SSVC flags it as Automatable=yes with partial technical impact, consistent with a control-bypass that could be scripted once a working character/domain combination is found. This is a moderate, control-integrity issue rather than an urgent RCE: the practical risk is concentrated on instances that actually rely on e-mail-domain restriction as a spam/abuse gate, and is negligible for open-registration or invite-only instances. The high CVSS number somewhat overstates day-to-day urgency given zero exploitation evidence and MTA-dependent preconditions.

Exploit ScenarioDerived

An operator runs an open-registration Mastodon instance that blocks sign-ups from a set of disposable e-mail domains to curb spam accounts. An attacker crafts an e-mail address containing quoting or special characters so that Mastodon's validator reads an allowed domain while the instance's mail server actually delivers the confirmation link to a blocked/disposable domain, letting the attacker confirm the account and bypass the restriction. No public proof-of-concept is identified; success depends on the target instance's specific mail-server parsing behavior.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 24, 2026

Sign-up restriction bypass in Mastodon (self-hosted ActivityPub social server) before v4.5.9, v4.4.16, and v4.3.22 allows remote attackers to register accounts on instances that restrict registration by e-mail domain. Because Mastodon validates addresses but does not restrict characters that downstream mail servers interpret differently, a crafted address can pass the allow/deny-list check while ultimately delivering mail to a domain the operator intended to block. No public exploit identified at time of analysis, and EPSS is very low (0.04%), but SSVC rates the flaw automatable with partial technical impact.

RemediationAI

Vendor-released patch: upgrade to Mastodon 4.5.9, 4.4.16, or 4.3.22 (whichever matches your release line) as published in GitHub Security Advisory GHSA-5r37-qpwq-2jhh (https://github.com/mastodon/mastodon/security/advisories/GHSA-5r37-qpwq-2jhh), which adds restriction of the mis-interpreted characters during address validation. If you cannot patch immediately, compensating controls include switching the registration mode to approval-required (manual moderator review of each sign-up), which neutralizes the bypass at the cost of operator workload, or moving to invite-only registration, which stops open sign-up entirely but changes your community growth model. Operators who depend on domain deny-lists to block disposable-mail providers should treat that control as unreliable until patched and increase post-registration abuse monitoring; tightening the upstream MTA/relay to reject the same malformed-but-accepted addresses can also reduce, though not fully close, the parser gap.

Affected VersionsENISA

mastodon 4.4.0-beta.1, < 4.4.16
mastodon < 4.3.22
mastodon 4.5.0-beta.1, < 4.5.9

Affected Packages

euvd mastodon fix: 4.3.22
euvd mastodon_4_4_0_beta_1 fix: 4.4.16
euvd mastodon_4_5_0_beta_1 fix: 4.5.9

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 3 packages in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Mastodon is a Ruby on Rails ActivityPub server whose instance operators commonly gate self-service registration using an e-mail domain allow-list or deny-list (the 'Allowed/Disallowed e-mail domains' feature). The root cause is CWE-841 (Improper Enforcement of Behavioral Workflow / expected conditions): Mastodon performs its own basic RFC-style validation and domain-matching, but different SMTP/MTA implementations parse address quoting, comments, or additional special characters differently than Mastodon's parser does. This parser-differential means the domain Mastodon sees during its policy check is not necessarily the domain the receiving mail server routes to, so the security decision (should this domain be allowed to sign up?) is made on a different value than the one that actually governs delivery. The single affected component per NVD/EUVD CPE is cpe:2.3:a:joinmastodon:mastodon across all pre-fix versions.

Know when Mastodon gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

GitHub Advisory PRIMARY 8.2 HIGH
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
vuln.today AI 5.9 MEDIUM

Remote and unauthenticated (AV:N/PR:N), but success depends on the target MTA's parsing so AC:H maps the 4.0 AT:P; impact is a control-integrity bypass only, hence I:H with C:N/A:N.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from GitHub Advisory.

CVSS VectorGitHub Advisory

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
Patch released
Apr 28, 2026 - 18:50 nvd
Patch available
Patch available
Apr 23, 2026 - 21:01 EUVD
CVE Published
Apr 23, 2026 - 19:17 nvd
HIGH 8.2

DescriptionGitHub Advisory

Mastodon is a free, open-source social network server based on ActivityPub. Prior to v4.5.9, v4.4.16, and v4.3.22, Mastodon allows restricting new user sign-up based on e-mail domain names, and performs basic validation on e-mail addresses, but fails to restrict characters that are interpreted differently by some mailing servers. This vulnerability is fixed in v4.5.9, v4.4.16, and v4.3.22.

Executive ViewAI

Why It Matters

Mastodon self-hosted instances running versions before v4.5.9, v4.4.16, and v4.3.22 can be bypassed by unauthenticated attackers who craft email addresses to circumvent registration domain restrictions. Organizations operating Mastodon lose the ability to control membership eligibility, creating exposure to spam, abusive accounts, and administrative overhead managing unwanted users.

Business Impact: Medium
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.0%
Top 87% exploitable
Prevalence
Medium
widely used federated social server, but self-hosted niche vs mainstream enterprise software
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
Medium
Technical Impact
Partial

Priority Score

41
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +41
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2022-46405 HIGH POC
7.5 Dec 04

Mastodon through 4.0.2 allows attackers to cause a denial of service (large Sidekiq pull queue) by creating bot accounts

CVE-2024-25618 HIGH POC
7.4 Feb 14

Mastodon is a free, open-source social network server based on ActivityPub. Rated high severity (CVSS 7.4), this vulnera

CVE-2023-28853 MEDIUM POC
6.5 Apr 04

Mastodon is a free, open-source social network server based on ActivityPub Mastodon allows configuration of LDAP for aut

CVE-2023-36460 CRITICAL
9.9 Jul 06

Mastodon is a free, open-source social network server based on ActivityPub. Rated critical severity (CVSS 9.9), this vul

CVE-2024-23832 CRITICAL
9.8 Feb 01

Mastodon is a free, open-source social network server based on ActivityPub Mastodon allows configuration of LDAP for aut

CVE-2022-2166 CRITICAL
9.8 Nov 16

Improper Restriction of Excessive Authentication Attempts in GitHub repository mastodon/mastodon prior to 4.0.0. Rated c

CVE-2026-46348 HIGH
8.7 Jun 24

Server-Side Request Forgery in Mastodon before 4.5.10, 4.4.17, and 4.3.23 lets attackers coerce the server into issuing

CVE-2026-47389 HIGH
8.6 Jun 24

Server-side request forgery in Mastodon (versions before 4.5.10, 4.4.17, and 4.3.23) lets an attacker who controls autho

CVE-2026-33868 MEDIUM POC
4.3 Mar 27

Mastodon prior to versions 4.5.8, 4.4.15, and 4.3.21 contains an unauthenticated Open Redirect vulnerability in the `/we

CVE-2026-27468 HIGH
8.2 Feb 24

Unauthenticated attackers can bypass FASP administrator approval in Mastodon 4.4.0-4.4.13 and 4.5.0-4.5.6 to subscribe t

CVE-2024-37903 HIGH
8.2 Jul 05

Mastodon is a self-hosted, federated microblogging platform. Rated high severity (CVSS 8.2), this vulnerability is remot

CVE-2024-25623 HIGH
7.7 Feb 19

Mastodon is a free, open-source social network server based on ActivityPub. Rated high severity (CVSS 7.7), this vulnera

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy