Skip to content

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

MediumCVSS 6.5 EPSS 0.44%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: partial

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.

Upgrade path

2 packages: 1 fixed.

PackageAffectedFixed inStatus
joinmastodon mastodon < 4.3.19; >= 4.4.0, < 4.4.13; >= 4.5.0, < 4.5.6 4.3.19, 4.4.13, 4.5.6 Fixed
mastodon = < 4.3.19; = < 4.4.13; = < 4.5.6 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
mastodon = < 4.3.19 No fix listed
mastodon = < 4.4.13 No fix listed
mastodon = < 4.5.6 No fix listed
joinmastodon mastodon < 4.3.19 4.3.19
joinmastodon mastodon >= 4.4.0, < 4.4.13 4.4.13
joinmastodon mastodon >= 4.5.0, < 4.5.6 4.5.6

References