CVE-2026-25540 in Joinmastodon Mastodon
Mastodon is a free, open-source social network server based on ActivityPub. Prior to versions 4.3.19, 4.4.13, 4.5.6, Mastodon is vulnerable to web cache poisoning via `Rails.cache. When AUTHORIZED_FETCH is enabled, the ActivityPub endpoints for pinned posts and featured hashtags have contents that depend on the acco...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, no integrity impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Joinmastodon | Mastodon | < 4.3.19 ≥ 4.4.0, < 4.4.13 ≥ 4.5.0, < 4.5.6 |
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.3.19, 4.4.13, 4.5.6, Mastodon is vulnerable to web cache poisoning via `Rails.cache. When AUTHORIZED_FETCH is enabled, the ActivityPub endpoints for pinned posts and featured hashtags have contents that depend on the account that signed the HTTP request. However, these contents are stored in an internal cache and reused with no regards to the signing actor. As a result, an empty response generated for a blocked user account may be served to requests from legitimate non-blocked actors, or conversely, content intended for non-blocked actors may be returned to blocked actors. This issue has been patched in versions 4.3.19, 4.4.13, 4.5.6.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2026-25540 |
|---|---|
| BreachSpider ID | BS-2026-GLOBAL-074127-M |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L |
| Published | 2026-02-04 |
| Last modified | 2026-02-20 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-524: CWE-524
Related attack patterns (CAPEC)
CAPEC-204 Lifting Sensitive Data Embedded in Cache via CWE-524
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
Mastodon versions prior to 4.3.19, 4.4.13, and 4.5.6 are vulnerable to web cache poisoning due to improper handling of cached content for ActivityPub endpoints when AUTHORIZED_FETCH is enabled.
An attacker can exploit this vulnerability by sending specially crafted requests to the ActivityPub endpoints for pinned posts and featured hashtags. If AUTHORIZED_FETCH is enabled, the contents of these endpoints are cached based on the account that signed the HTTP request. An attacker could potentially poison the cache with malicious content, which could then be served to other users.
Questions
What is CVE-2026-25540?
Mastodon versions prior to 4.3.19, 4.4.13, and 4.5.6 are vulnerable to web cache poisoning due to improper handling of cached content for ActivityPub endpoints when AUTHORIZED_FETCH is enabled.
What is the CVSS score for CVE-2026-25540?
CVE-2026-25540 has CVSS 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L. EPSS: 0.5%.
Is CVE-2026-25540 actively exploited?
No confirmed active exploitation of CVE-2026-25540 as of 2026-05-30.
How do I remediate CVE-2026-25540?
Priority: HIGH. PSIRT: [email protected]
What systems are affected by CVE-2026-25540?
CVE-2026-25540 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-02-20.