CVE-2026-25540: Mastodon - Web Cache Poisoning
- Cve: CVE-2026-25540
- Name: Mastodon - Web Cache Poisoning
- 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.
- Impact: Attackers can poison cache to serve incorrect content to users, causing information disclosure or denial of service.
- Remediation: Update to versions 4.3.19, 4.4.13, 4.5.6 or later.
- Vulnerability type: web_cache_poisoning
- Vulnerability impact: information_disclosure, denial_of_service
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 6.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
- Epss score: 0.00437
- Epss percentile: 0.38722
- Assignee: [email protected]
- Published at: 2026-02-04T22:16:00Z
- Age in days: 293
- Modified at: 2026-06-17T10:24:49Z
- Patch available: yes
- References total: 1
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-25540
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-524 | Use of Cache Containing Sensitive Information |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/mastodon/mastodon/security/advisories/GHSA-ccpr-m53r-mfwr | nvd | Vendor Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| joinmastodon:mastodon | >= 4.5.0, < 4.5.6; >= 4.4.0, < 4.4.13; < 4.3.19 | no | nvd | /v1/products/joinmastodon/mastodon |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| mastodon/mastodon | security_advisory | yes | /v1/repositories/mastodon/mastodon |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts