The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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-33868

CVE-2026-33868: Mastodon Auth Bypass Vulnerability

CVE-2026-33868 is an authentication bypass vulnerability in Joinmastodon Mastodon that exploits URL-encoded path handling to redirect users to malicious domains. This post covers technical details, affected versions, and patches.

Published: April 2, 2026

CVE-2026-33868 Overview

CVE-2026-33868 is an unauthenticated Open Redirect vulnerability (CWE-601) affecting Mastodon, a free, open-source social network server based on ActivityPub. The vulnerability exists in the /web/* route due to improper handling of URL-encoded path segments. An attacker can craft a specially encoded URL that causes the application to redirect users to an arbitrary external domain, enabling phishing attacks and potential OAuth credential theft.

Critical Impact

Unauthenticated attackers can redirect Mastodon users to malicious external domains, enabling sophisticated phishing campaigns and OAuth credential theft without requiring any prior authentication.

Affected Products

  • Mastodon versions prior to 4.5.8
  • Mastodon versions prior to 4.4.15
  • Mastodon versions prior to 4.3.21

Discovery Timeline

  • 2026-03-27 - CVE CVE-2026-33868 published to NVD
  • 2026-03-30 - Last updated in NVD database

Technical Details for CVE-2026-33868

Vulnerability Analysis

This Open Redirect vulnerability occurs because URL-encoded slashes (%2F) bypass Rails path normalization and are interpreted as host-relative redirects. When a user clicks on a crafted malicious link pointing to a legitimate Mastodon instance, the improper URL handling causes the application to redirect them to an attacker-controlled external domain.

The vulnerability is particularly dangerous in the context of Mastodon's OAuth authentication flow. An attacker could construct a phishing page that mimics the legitimate Mastodon login interface, capture user credentials or OAuth tokens, and gain unauthorized access to victim accounts. Since the initial URL points to a trusted Mastodon domain, users are more likely to trust the redirect destination.

Root Cause

The root cause lies in the Rails application's handling of URL-encoded path segments within the /web/* route. When URL-encoded slashes (%2F) are included in the path, the application fails to properly normalize these before processing redirect logic. This allows the encoded characters to be interpreted differently than intended, bypassing security checks that would normally prevent external redirects.

The Rails framework's path normalization routines do not decode URL-encoded characters before validation, creating a mismatch between what is validated and what is ultimately processed during the redirect operation.

Attack Vector

The attack can be executed remotely over the network without requiring authentication. An attacker crafts a URL containing specially encoded path segments targeting a legitimate Mastodon instance's /web/* endpoint. When a victim clicks this link, the Mastodon server processes the malformed URL and redirects the user to an attacker-controlled domain.

The attack flow typically involves:

  1. Attacker creates a phishing page mimicking Mastodon's login interface
  2. Attacker constructs a malicious URL with URL-encoded slashes that bypass path normalization
  3. Victim receives the link through social engineering (direct message, email, social media post)
  4. Victim clicks the seemingly legitimate Mastodon link
  5. Mastodon server redirects victim to the attacker's phishing page
  6. Victim enters credentials believing they are on the legitimate site
  7. Attacker captures credentials or OAuth tokens

For detailed technical information, see the GitHub Security Advisory.

Detection Methods for CVE-2026-33868

Indicators of Compromise

  • HTTP requests to /web/* endpoints containing URL-encoded slashes (%2F) or double-encoded characters
  • Unusual redirect responses (HTTP 301/302/307) from the Mastodon application pointing to external domains
  • User reports of unexpected redirects when clicking internal Mastodon links
  • Access logs showing requests with suspicious encoding patterns in the path component

Detection Strategies

  • Monitor web server access logs for requests to /web/* routes containing %2F or other URL-encoded path separators
  • Implement web application firewall (WAF) rules to detect and block requests with double-encoded or suspicious URL patterns
  • Analyze HTTP response headers for redirect locations pointing to domains outside the Mastodon instance's trusted domain list
  • Deploy endpoint detection solutions capable of identifying redirect-based phishing attempts

Monitoring Recommendations

  • Enable verbose logging for the Rails application to capture full URL paths including encoded characters
  • Set up alerting for HTTP responses with Location headers containing external domains from the /web/* endpoints
  • Implement real-time log analysis to detect patterns consistent with open redirect exploitation attempts
  • Monitor OAuth token issuance rates for anomalies that may indicate credential theft following redirect attacks

How to Mitigate CVE-2026-33868

Immediate Actions Required

  • Upgrade Mastodon to version 4.5.8, 4.4.15, or 4.3.21 depending on your current release branch
  • Review access logs for evidence of exploitation attempts prior to patching
  • Notify users about potential phishing risks if exploitation is suspected
  • Implement additional URL validation at the reverse proxy or WAF level as a defense-in-depth measure

Patch Information

The Mastodon development team has released patches in versions 4.5.8, 4.4.15, and 4.3.21 that address this vulnerability. The fix ensures proper URL normalization and validation before processing redirect operations in the /web/* route. Administrators should upgrade to the appropriate patched version based on their current release branch.

For complete patch details, refer to the Mastodon Security Advisory.

Workarounds

  • Configure your reverse proxy (nginx, Apache, HAProxy) to reject or sanitize requests containing URL-encoded slashes in the path
  • Implement WAF rules to block requests to /web/* endpoints with suspicious encoding patterns
  • Use Content Security Policy headers to restrict redirect targets, though this provides limited protection for server-side redirects
  • Consider temporarily restricting access to the /web/* route if immediate patching is not feasible
bash
# Example nginx configuration to block URL-encoded slashes in /web/* routes
# Add to your Mastodon nginx server block before the main location directives

location ~ ^/web/.*%2[fF] {
    return 403;
}

# Alternatively, decode and re-validate URLs
set $original_uri $uri;
if ($original_uri ~ "%2[fF]") {
    return 403;
}

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

  • EPSS Probability0.94%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-601
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-33869: Mastodon Authentication Bypass Vulnerability

  • CVE-2026-25540: Mastodon Auth Bypass Vulnerability

  • CVE-2026-23964: Mastodon Auth Bypass Vulnerability

  • CVE-2026-23961: 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