Skip to main content

Mastodon CVE-2026-50129

| EUVDEUVD-2026-39060 HIGH
Uncaught Exception (CWE-248)
2026-06-24 GitHub_M
7.5
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Identify reachable Mastodon instance
  2. Delivery
    Craft malformed <math> MathML node
  3. Exploit
    Deliver via federation or post
  4. Execution
    Sanitizer raises uncaught exception
  5. Impact
    Service crashes, denying availability

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Exception handling completeness
Exploitation Conditions

Exploitation requires that the target run an unpatched Mastodon (below 4.5.11 / 4.4.18 / 4.3.24) and that the malformed <math>/MathML content reach a service that invokes the math sanitizer - which occurs through normal federated or user-submitted content paths, so no special non-default feature toggle is needed. Per the CVSS vector (AV:N/AC:L/PR:N/UI:N), no authentication and no user interaction are required, and exploitation works against default configurations of network-reachable instances. The main limiting factors are reachability and federation posture: the impact scope ('whole server' vs. 'targeted users services') depends on which action/service ingests the malformed node, and an instance that does not federate with or accept content from the attacker materially reduces exposure.

Impact

The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, 7.5) is internally consistent with a remotely reachable, no-authentication, no-interaction availability attack and accurately reflects the federated, network-exposed nature of Mastodon. No EPSS score, SSVC decision, KEV listing, or POC was provided, so real-world exploitation pressure is currently unquantified; the exploitation status is 'no public exploit identified at time of analysis.' One data conflict must be flagged: the input Tags label this 'Information Disclosure,' but the CVSS vector sets C:N/I:N and only A:H, and the description explicitly characterizes it as a DoS - the tag appears to be mislabeled and should not be treated as a confidentiality issue. Net assessment: a genuine, easily reachable availability risk for any instance that federates with untrusted servers, but not a confidentiality/integrity threat and not (yet) known to be actively exploited.

Exploit ScenarioDerived

An attacker operating or controlling any federating ActivityPub instance posts or sends content containing a deliberately malformed <math> node, then directs it at a victim Mastodon server or a specific user on it. When the victim server's sanitizer processes the node, the uncaught exception crashes the handling service, denying service to the targeted user or the whole instance. No public POC has been identified, but the attack requires no authentication, no user interaction, and only low complexity per the CVSS vector.

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

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

Alert me

AnalysisAIv1 – Jun 24, 2026

Denial of service in Mastodon affects all self-hosted instances prior to 4.5.11, 4.4.18, and 4.3.24, where the math content sanitizer fails to handle exceptions raised while processing malformed <math> nodes (MathML). A remote attacker can craft content containing broken math markup that propagates an uncaught exception, crashing whole-server services or disrupting service for targeted users depending on which component processes the malformed node. No public exploit has been identified at time of analysis, and the issue is not in CISA KEV; CVSS is 7.5 with availability-only impact.

RemediationAI

Vendor-released patch: upgrade to Mastodon 4.5.11, 4.4.18, or 4.3.24 (whichever matches your branch) per the advisory at https://github.com/mastodon/mastodon/security/advisories/GHSA-qrgq-9fx2-vf2r. Upgrading is the primary and recommended fix because the flaw is in core sanitization logic. If an immediate upgrade is not possible, compensating controls are limited given Mastodon must process federated content: operators can defederate from or limit untrusted/unknown instances to reduce the inbound surface for malformed <math> nodes (trade-off: loses federation reach with those servers), and can place rate limiting and process supervision (e.g., systemd auto-restart of Puma/Sidekiq workers) in front of services so a crashed worker recovers quickly (trade-off: mitigates symptoms, not the underlying exception, and repeated crashes can still degrade service). Monitor Sidekiq and web/streaming error logs for unhandled exceptions involving math/MathML parsing as a detection signal.

Affected VersionsENISA

mastodon < 4.3.24
mastodon 4.5.0-beta.1, < 4.5.11
mastodon 4.4.0-beta.1, < 4.4.18

Affected Packages

euvd mastodon fix: 4.3.24
euvd mastodon_4_4_0_beta_1 fix: 4.4.18
euvd mastodon_4_5_0_beta_1 fix: 4.5.11

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 federated microblogging server that sanitizes inbound HTML/MathML before storing and rendering it. The root cause is CWE-248 (Uncaught Exception): the math sanitizer routine lacks exception handling, so a malformed <math> element triggers an error that is not rescued and propagates up the stack, aborting the request or background job that touches the content. Because Mastodon federates content over ActivityPub, malformed nodes can arrive from remote instances and be processed by multiple services (web rendering, streaming, background Sidekiq workers, federation handlers), which is why the advisory notes impact ranges from a single targeted user's services to the entire server. The affected CPE is cpe:2.3:a:mastodon:mastodon for all versions below the fixed releases.

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

Vendor (GitHub_M) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 7.5 HIGH

Remotely reachable via federation with no auth or interaction and low complexity; impact is availability-only (uncaught-exception crash), so C:N/I:N/A:H.

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

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

1
Patch available
Jun 24, 2026 - 22:03 EUVD

DescriptionCVE.org

Mastodon is a free, open-source social network server based on ActivityPub. Prior to 4.5.11, 4.4.18, and 4.3.24, a DoS can be triggered by (Uncaught Exception vulerability), due to missing exception handling in the math sanitizer. Malformed <math> nodes can result in a DoS of a whole server or targeted users services, depending on the type of action that includes the malformed nodes and the services interacting with it. This vulnerability is fixed in 4.5.11, 4.4.18, and 4.3.24.

Executive ViewAI

Why It Matters

Mastodon self-hosted instances are vulnerable to denial-of-service attacks through malformed content that can crash services or disrupt user access, creating availability risk for organizations using Mastodon as communications infrastructure. Vendor patches are available and should be deployed urgently to restore availability protections. Organizations operating Mastodon deployments face direct operational and service continuity risk from this vulnerability.

Business Impact: High
Compensating Controls

Vendor-released patch: 4.5.11, 4.4.18, and 4.3.24. If immediate patching is not feasible, implement content filtering to block or sanitize math markup and monitor application logs for MathML-related exceptions as interim detection controls.

Threat Intelligence Overview

EPSS Score
0.3%
Top 82% exploitable
Prevalence
Medium
Leading fediverse server software, thousands of instances but not enterprise-ubiquitous
Data Quality
6 sources
Confidence: High

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.3%
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
High
Technical Impact
Partial

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
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-2026-41259 HIGH
8.2 Apr 23

Sign-up restriction bypass in Mastodon (self-hosted ActivityPub social server) before v4.5.9, v4.4.16, and v4.3.22 allow

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

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