CVE-2026-33868 Mastodon has a GET-Based Open Redirect via '/web/%2F<domain>'

Medium 4.3 Published Updated

Unauthenticated attackers can redirect users to malicious sites via crafted URLs, enabling phishing and potential OAuth credential theft in Mastodon.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2026-33868?

CVE-2026-33868 is a medium-severity vulnerability in mastodon, published on 27 Mar 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

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

Weakness: CWE-601

Which versions are affected by CVE-2026-33868?

1 open source package ship an affected version, including mastodon. It affects 1 product.

PackageAffectedFixed in
mastodon BitnamiAll versions4.3.21, 4.4.15, 4.5.8

Products include Joinmastodon Mastodon.

How do I fix CVE-2026-33868?

Upgrade mastodon to a fixed version for your release line: 4.3.21, 4.4.15 or 4.5.8.

Is CVE-2026-33868 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-33868 exists.

Public exploit code: 1 Nuclei template.

Sources

Also known as BIT-mastodon-2026-33868, GHSA-xqw8-4j56-5hj6.

Is CVE-2026-33868 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free