CVE-2026-25540: Mastodon's signature-dependent ActivityPub collection responses cached under signature-independent keys (Web Cache Poisoning via `Rails.cache`)

Published Feb 4, 2026
·
Updated

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 AUTHORIZEDFETCH 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.

Affected Software

4 affected components
Mastodon Mastodon<4.3.19, <4.4.13, <4.5.6
Joinmastodon Mastodon<4.3.19
Joinmastodon Mastodon>=4.4.0<4.4.13
Joinmastodon Mastodon>=4.5.0<4.5.6

Event History

Feb 4, 2026
CVE Published
via MITRE·09:42 PM
Data Sourced
via MITRE·09:42 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:16 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-25540?

CVE-2026-25540 is classified as a medium severity vulnerability due to its potential for web cache poisoning.

2

How do I fix CVE-2026-25540?

To fix CVE-2026-25540, upgrade to Mastodon versions 4.3.19, 4.4.13, or 4.5.6 or later.

3

What are the implications of CVE-2026-25540?

CVE-2026-25540 can lead to web cache poisoning, allowing attackers to deliver malicious content to users.

4

In which versions of Mastodon is CVE-2026-25540 found?

CVE-2026-25540 affects Mastodon versions prior to 4.3.19, 4.4.13, and 4.5.6.

5

What component of Mastodon does CVE-2026-25540 affect?

CVE-2026-25540 affects Mastodon's caching mechanism related to ActivityPub collection responses.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203