Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-25540

CVE-2026-25540: Mastodon Auth Bypass Vulnerability

CVE-2026-25540 is an authentication bypass flaw in Mastodon that allows web cache poisoning attacks when AUTHORIZED_FETCH is enabled. This article covers the technical details, affected versions, and mitigation strategies.

Published: February 6, 2026

CVE-2026-25540 Overview

CVE-2026-25540 is a web cache poisoning vulnerability affecting Mastodon, the popular free, open-source social network server based on ActivityPub. When AUTHORIZED_FETCH is enabled, the ActivityPub endpoints for pinned posts and featured hashtags improperly cache responses without considering the signing actor, allowing cached content intended for one user to be served to another. This vulnerability can lead to information disclosure where blocked users receive content they shouldn't have access to, or legitimate users receive empty responses cached from blocked user requests.

Critical Impact

Attackers can exploit improper cache handling to bypass user blocking functionality, potentially exposing private content to blocked accounts or disrupting service for legitimate users through cache poisoning.

Affected Products

  • Mastodon versions prior to 4.3.19
  • Mastodon versions prior to 4.4.13
  • Mastodon versions prior to 4.5.6

Discovery Timeline

  • 2026-02-04 - CVE CVE-2026-25540 published to NVD
  • 2026-02-05 - Last updated in NVD database

Technical Details for CVE-2026-25540

Vulnerability Analysis

This web cache poisoning vulnerability stems from improper use of Rails.cache in Mastodon's ActivityPub implementation. When AUTHORIZED_FETCH is enabled, the server verifies HTTP signatures to authenticate requests from remote ActivityPub actors. The ActivityPub endpoints for pinned posts (/users/:username/collections/featured) and featured hashtags generate responses that vary based on the requesting actor's relationship with the account owner—specifically whether the requester is blocked.

The core issue is that these dynamically generated responses are stored in an internal cache without incorporating the signing actor's identity as part of the cache key. This creates a classic cache poisoning scenario where the first request to populate the cache determines what all subsequent requesters will receive, regardless of their individual access permissions.

Root Cause

The root cause is classified as CWE-524 (Use of Cache Containing Sensitive Information). The Mastodon application caches responses from ActivityPub endpoints without properly varying the cache based on the authenticated actor. The cache implementation fails to account for the fact that response content is dependent on the relationship between the requesting actor and the resource owner. This architectural flaw means that access control decisions made during the initial request are incorrectly applied to all subsequent cached responses.

Attack Vector

The attack vector is network-based and requires no user interaction. An attacker with a blocked account can exploit this vulnerability by being the first to request a victim's pinned posts or featured hashtags endpoint. When the server generates an empty response (because the attacker is blocked) and caches it, legitimate federated servers requesting the same endpoint will receive the cached empty response instead of the actual content. Conversely, if a legitimate actor's request is cached first, a blocked actor could subsequently access content they should be restricted from viewing.

The attack is particularly effective in federated environments where multiple ActivityPub servers interact with a Mastodon instance. The timing of cache population and cache expiration windows creates opportunities for exploitation.

Detection Methods for CVE-2026-25540

Indicators of Compromise

  • Unexpected empty responses from ActivityPub endpoints for pinned posts or featured hashtags
  • User reports of blocked accounts still being able to view pinned posts or hashtags
  • Inconsistent federation behavior where some servers receive content while others receive empty responses
  • Anomalous patterns in HTTP signature verification logs showing blocked accounts accessing cached content

Detection Strategies

  • Monitor ActivityPub endpoint response patterns for inconsistencies between authenticated actors
  • Implement logging to track cache hits and misses on sensitive ActivityPub endpoints
  • Audit HTTP signature verification logs for requests from known blocked accounts receiving non-empty responses
  • Compare federated content retrieval results across multiple external servers to identify caching anomalies

Monitoring Recommendations

  • Enable detailed logging for Rails.cache operations on ActivityPub endpoints
  • Set up alerts for unusual patterns in blocked account activity
  • Monitor cache hit ratios and response sizes for featured content endpoints
  • Implement federation health checks to verify consistent content delivery across federated instances

How to Mitigate CVE-2026-25540

Immediate Actions Required

  • Upgrade Mastodon to version 4.3.19, 4.4.13, or 4.5.6 depending on your current release branch
  • Clear existing Rails cache after upgrading to remove any poisoned cache entries
  • Review blocked account lists and verify blocking functionality is operating correctly post-patch
  • Notify federated instance administrators of the vulnerability and patching requirements

Patch Information

Mastodon has released security patches addressing this vulnerability in versions 4.3.19, 4.4.13, and 4.5.6. These patches modify the caching behavior to properly incorporate the requesting actor's identity into cache keys, ensuring that responses are appropriately varied based on the authenticated actor's permissions. Administrators should upgrade to the appropriate patched version for their release branch immediately.

For detailed patch information, refer to the GitHub Security Advisory.

Workarounds

  • Temporarily disable AUTHORIZED_FETCH if the security implications are acceptable for your deployment
  • Implement reverse proxy caching rules that vary on HTTP signature headers for affected endpoints
  • Reduce cache TTL for ActivityPub featured content endpoints to minimize the poisoning window
  • Consider temporarily removing pinned posts and featured hashtags until patching is complete
bash
# Clear Rails cache after patching (run from Mastodon installation directory)
RAILS_ENV=production bundle exec rails runner 'Rails.cache.clear'

# Verify Mastodon version after upgrade
cat VERSION
# Expected: 4.3.19, 4.4.13, or 4.5.6 depending on branch

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechMastodon

  • SeverityMEDIUM

  • CVSS Score6.5

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-524
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-41259: Mastodon Auth Bypass Vulnerability

  • CVE-2026-33868: Mastodon Auth Bypass Vulnerability

  • CVE-2026-33869: Mastodon Authentication Bypass Vulnerability

  • CVE-2026-23964: Mastodon Auth Bypass Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English