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

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.44%, higher than 39% of CVEs (2026-12-01)
- Published: 2026-02-04T21:42:09.460Z
- Modified: 2026-09-08T08:48:13.193Z
- Also known as: BIT-MASTODON-2026-25540, GHSA-ccpr-m53r-mfwr
- Weaknesses: CWE-524
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- mastodon mastodon: < 4.3.19; < 4.4.13; < 4.5.6
- joinmastodon mastodon: before 4.3.19; from 4.4.0 before 4.4.13; from 4.5.0 before 4.5.6
- mastodon (Bitnami): before 4.5.6

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/mastodon/mastodon/security/advisories/GHSA-ccpr-m53r-mfwr> (advisory, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-25540> (web)

## Sources

- CVE List: [CVE-2026-25540](https://www.cve.org/CVERecord?id=CVE-2026-25540), CVE Terms of Use, modified 2026-02-05
- NVD: [CVE-2026-25540](https://nvd.nist.gov/vuln/detail/CVE-2026-25540), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-MASTODON-2026-25540](https://osv.dev/vulnerability/BIT-MASTODON-2026-25540), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2026-25540 · Whole record: https://cve.day/CVE-2026-25540.json · Rebuilt by cve.day 2026-11-25T22:59:13.513Z
