Description
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.
Published: 2026-06-24
Score: 7.5 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A missing exception handler in Mastodon’s math sanitizer causes every use of a malformed <math> node to raise an unhandled NoMethodError, which prevents the affected request from completing. The failure is persistent and can be triggered by anonymous users, resulting in denial of service to the server as a whole or to the specific user-facing service that processed the malformed node. This flaw is an instance of the CWE‑248 "Improper Handling of Exception" weakness, and its impact is a usability and availability compromise without affecting confidentiality or integrity.

Affected Systems

The vulnerability affects Mastodon installations running any of the following pre‑4.5.11, pre‑4.4.18, or pre‑4.3.24 releases. It is relevant to all users and administrators who host Mastodon instances on these versions, irrespective of the number of concurrent users or the domain name used.

Risk and Exploitability

The CVSS base score of 7.5 indicates a moderate to high severity. The EPSS score is not available, and the issue is not listed in the CISA KEV catalog, suggesting that no widespread exploitation is confirmed yet. The attack likely requires an author who can submit posts, comments, or other content containing malformed <math> nodes, which an anonymous user can do. The exploit path thus involves sending crafted content that passes through the math sanitizer, triggering the NoMethodError and causing the denial of service. The effect can be serverwide if the failure occurs during core rendering processes, or limited to specific user services otherwise.

Generated by OpenCVE AI on June 24, 2026 at 21:36 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Mastodon to version 4.5.11 or later (or 4.4.18/4.3.24 for older releases) to apply the fixed math sanitizer code.
  • If an upgrade cannot be performed immediately, implement input filtering or a temporary wrapper around the math sanitizer to catch and log any NoMethodError exceptions before the request completes.
  • Configure application-level rate limiting or access controls to restrict the ability to submit content containing <math> nodes, thereby reducing the window of opportunity for an attacker.

Generated by OpenCVE AI on June 24, 2026 at 21:36 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 24 Jun 2026 20:30:00 +0000

Type Values Removed Values Added
Description 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.
Title Mastodon: Persistent anonymous DoS via unhandled NoMethodError in MATH_TRANSFORMER
Weaknesses CWE-248
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-06-24T19:50:51.968Z

Reserved: 2026-06-03T18:49:32.275Z

Link: CVE-2026-50129

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-24T21:45:15Z

Weaknesses