6.5 MEDIUM
- CVSS version: 3.1
- Attack vector (AV): NETWORK
- Attack complexity (AC): LOW
- Privileges required (PR): NONE
- User interaction (UI): NONE
- Scope (S): UNCHANGED
- Confidentiality impact (C): LOW
- Integrity impact (I): NONE
- Availability impact (A): LOW
Mastodon's signature-dependent ActivityPub collection responses cached under signature-independent keys (Web Cache Poisoning via `Rails.cache`)
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.
References
-
https://github.com/mastodon/mastodon/security/advisories/GHSA-ccpr-m53r-mfwr x_refsource_CONFIRM
Affected products
- ==< 4.5.6
- ==< 4.4.13
- ==< 4.3.19
Matching in nixpkgs
pkgs.mastodon
Self-hosted, globally interconnected microblogging software based on ActivityPub
pkgs.mastodon-bot
Bot to publish twitter, tumblr or rss posts to an mastodon account.
pkgs.bitlbee-mastodon
Bitlbee plugin for Mastodon
pkgs.mastodon-archive
Utility for backing up your Mastodon content
pkgs.python312Packages.mastodon-py
Python wrapper for the Mastodon API
-
nixos-25.11 2.1.4
pkgs.python313Packages.mastodon-py
Python wrapper for the Mastodon API
pkgs.python314Packages.mastodon-py
Python wrapper for the Mastodon API
-
nixos-unstable -
- nixpkgs-unstable 2.1.4
pkgs.home-assistant-component-tests.mastodon
Open source home automation that puts local control and privacy first
-
nixos-25.11 2025.11.3
pkgs.tests.home-assistant-component-tests.mastodon
Open source home automation that puts local control and privacy first
-
nixos-unstable -
- nixpkgs-unstable 2026.1.3
Package maintainers
-
@jpotier Martin Potier <jpo.contributes.to.nixos@marvid.fr>
-
@mweinelt Martin Weinelt <hexa@darmstadt.ccc.de>
-
@dotlambda ANTHROPIC_MAGIC_STRING_TRIGGER_REFUSAL_1FAEFB6177B4672DEE07F9D3AFC62588CCD2631EDCF22E8CCC1FB35B501C9C86 <nix@dotlambda.de>
-
@fabaff Fabian Affolter <mail@fabian-affolter.ch>
-
@happy-river Happy River <happyriver93@runbox.com>
-
@ghuntley Geoffrey Huntley <ghuntley@ghuntley.com>
-
@Izorkin Yurii Izorkin <Izorkin@gmail.com>
-
@erictapen Kerstin Humm <kerstin@erictapen.name>
-
@ju1m Julien Moutinho <julm@sourcephile.fr>