CVE-2024-25623 in Joinmastodon Mastodon
Mastodon is a free, open-source social network server based on ActivityPub. Prior to versions 4.2.7, 4.1.15, 4.0.15, and 3.5.19, when fetching remote statuses, Mastodon doesn't check that the response from the remote server has a `Content-Type` header value of the Activity Streams media type, which allows a threat a...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, low privileges required, no user interaction needed, can impact systems beyond the vulnerable component, no confidentiality impact, full integrity impact, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Joinmastodon | Mastodon | < 3.5.19 ≥ 4.0.0, < 4.0.15 ≥ 4.1.0, < 4.1.15 ≥ 4.2.0, < 4.2.7 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
Mastodon is a free, open-source social network server based on ActivityPub. Prior to versions 4.2.7, 4.1.15, 4.0.15, and 3.5.19, when fetching remote statuses, Mastodon doesn't check that the response from the remote server has a `Content-Type` header value of the Activity Streams media type, which allows a threat actor to upload a crafted Activity Streams document to a remote server and make a Mastodon server fetch it, if the remote server accepts arbitrary user uploads. The vulnerability allows a threat actor to impersonate an account on a remote server that satisfies all of the following properties: allows the attacker to register an account; accepts arbitrary user-uploaded documents and places them on the same domain as the ActivityPub actors; and serves user-uploaded document in response to requests with an `Accept` header value of the Activity Streams media type. Versions 4.2.7, 4.1.15, 4.0.15, and 3.5.19 contain a fix for this issue.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2024-25623 |
|---|---|
| BreachSpider ID | BS-2024-GLOBAL-051986-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N |
| Published | 2024-02-19 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-434: Unrestricted Upload of File with Dangerous Type
Application allows file uploads without validating type, enabling upload of executable code or web shells.
Related attack patterns (CAPEC)
CAPEC-1 Accessing Functionality Not Properly Constrained by ACLs via CWE-434
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
Mastodon versions prior to 4.2.7, 4.1.15, 4.0.15, and 3.5.19 are vulnerable to an attack where a threat actor can upload a crafted Activity Streams document to a remote server, potentially leading to unauthorized actions or data manipulation.
The vulnerability arises from Mastodon not validating the `Content-Type` header of responses when fetching remote statuses. An attacker can exploit this by serving a malicious Activity Streams document, which Mastodon may process as valid data.
Questions
What is CVE-2024-25623?
Mastodon versions prior to 4.2.7, 4.1.15, 4.0.15, and 3.5.19 are vulnerable to an attack where a threat actor can upload a crafted Activity Streams document to a remote server, potentially leading to unauthorized actions or data manipulation.
What is the CVSS score for CVE-2024-25623?
CVE-2024-25623 has CVSS 7.7 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N. EPSS: 0.7%.
Is CVE-2024-25623 actively exploited?
No confirmed active exploitation of CVE-2024-25623 as of 2026-09-25.
How do I remediate CVE-2024-25623?
Priority: HIGH. PSIRT: [email protected]
What systems are affected by CVE-2024-25623?
CVE-2024-25623 affects Joinmastodon Mastodon.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Joinmastodon","product":"Mastodon","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.