Mastodon: unvalidated user-facing URLs enable XSS on misconfigured servers
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- —
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from GitHub.
Summary
All Mastodon versions before 4.3.8 and before 4.2.21 accept arbitrary user-facing URLs for remote accounts, posts and media attachments without verification, which attackers can use for XSS. The impact on a typical Mastodon installation is minimal, because Mastodon sends a strict Content Security Policy that blocks such attacks. Third-party clients and misconfigured servers that strip the Content-Security-Policy header may be vulnerable.
Written with Claude Haiku 5.5 from the sources below · 2026-11-12
Description from the GitHub advisory
### Summary All Mastodon versions until v4.3.8 and v4.2.21 allow arbitrary user-facing URLs for remote accounts, posts, and media attachments without any verification, which can be used by attackers for XSS attacks. ### Impact The impact on a typical Mastodon installation is minimal, as Mastodon makes use of a fairly tight Content Security Policy making such XSS attacks impossible. However, third-party clients and misconfigured servers that strip the Content-Security-Policy header may be vulnerable.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | Mastodon (fediverse) | < 4.3.8, < 4.2.21 | 4.3.8, 4.2.21 | Patch available | GHSA-x2rc-v5wx-g3m5 |
- Mastodon (fediverse) Vendor— Affected < 4.3.8, < 4.2.21 Fixed in 4.3.8, 4.2.21 Patch available GHSA-x2rc-v5wx-g3m5
Remediation
Upgrade Mastodon to 4.3.8 or 4.2.21, which fix the issue. Operators of misconfigured servers should keep the Content-Security-Policy header in place.
Written with Claude Haiku 5.5 from the sources below · 2026-11-12
- Fix · GHSA-x2rc-v5wx-g3m5 Mastodon (fediverse) Fixed in 4.3.8, 4.2.21 Advisory →
Timeline
- 2026-11-12 Threatist record created from GHSA-x2rc-v5wx-g3m5
References
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences