CVE-2026-33868
Received Received - Intake
Open Redirect Vulnerability in Mastodon Enables Phishing Attacks

Publication date: 2026-03-27

Last updated on: 2026-03-30

Assigner: GitHub, Inc.

Description
Mastodon is a free, open-source social network server based on ActivityPub. Prior to versions 4.5.8, 4.4.15, and 4.3.21, an unauthenticated Open Redirect vulnerability (CWE-601) 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. The issue occurs because URL-encoded slashes (`%2F`) bypass Rails path normalization and are interpreted as host-relative redirects. Versions 4.5.8, 4.4.15, and 4.3.21 patch the issue.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-03-27
Last Modified
2026-03-30
Generated
2026-06-16
AI Q&A
2026-03-27
EPSS Evaluated
2026-06-15
NVD
EUVD
Affected Vendors & Products
Showing 3 associated CPEs
Vendor Product Version / Range
joinmastodon mastodon From 4.4.0 (inc) to 4.4.15 (exc)
joinmastodon mastodon From 4.5.0 (inc) to 4.5.8 (exc)
joinmastodon mastodon to 4.3.21 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-601 The web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

CVE-2026-33868 is an unauthenticated Open Redirect vulnerability in the Mastodon web application affecting versions prior to 4.5.8, 4.4.15, and 4.3.21. It exists in the `/web/*` route due to improper handling of URL-encoded path segments, specifically URL-encoded slashes (`%2F`). These encoded slashes bypass Rails path normalization, causing the application to interpret the path as a host-relative redirect.

An attacker can exploit this by crafting a specially encoded URL that redirects users to arbitrary external domains. This allows attackers to perform phishing attacks by leveraging trusted Mastodon URLs, harvest credentials through fake login pages, and intercept OAuth authorization codes when combined with login flows.

Impact Analysis

This vulnerability can impact users by enabling attackers to redirect them to malicious external websites using trusted Mastodon URLs. This can lead to phishing attacks where users may be tricked into providing sensitive information such as login credentials.

Additionally, attackers can intercept OAuth authorization codes during login flows, potentially leading to unauthorized access to user accounts. The vulnerability affects all visitors, including unauthenticated users.

Detection Guidance

This vulnerability can be detected by testing the Mastodon instance for improper handling of URL-encoded path segments in the `/web/*` route. Specifically, you can attempt to access URLs containing URL-encoded slashes (`%2F`) that cause redirects to external domains.

For example, you can use curl or similar HTTP clients to test if the server redirects to an arbitrary external domain when given a specially crafted URL.

  • curl -I 'https://your-mastodon-instance/web/%2Fhttps://malicious.example.com'
  • Observe the HTTP response headers for a Location header redirecting to the external domain.

If the server responds with a redirect to the external domain, it indicates the presence of the vulnerability.

Mitigation Strategies

The immediate mitigation step is to upgrade the Mastodon instance to a fixed version. The vulnerability is patched in versions 4.5.8, 4.4.15, and 4.3.21.

If upgrading immediately is not possible, consider implementing web application firewall (WAF) rules to block requests containing URL-encoded slashes (`%2F`) in the `/web/*` route to prevent exploitation.

Additionally, educate users to be cautious of suspicious links that may redirect them to untrusted external domains.

Compliance Impact

The vulnerability enables attackers to perform phishing attacks and potentially steal OAuth credentials by redirecting users to arbitrary external domains. This abuse of trust in legitimate Mastodon instance domains could lead to unauthorized access to user credentials and personal data.

Such unauthorized access and credential theft could negatively impact compliance with data protection regulations like GDPR and HIPAA, which require safeguarding user data and preventing unauthorized access.

However, the vulnerability itself does not directly disclose confidential data or availability but facilitates phishing and credential theft, which are relevant concerns under these regulations.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-33868. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart