CVE-2026-22245 Mastodon has SSRF Protection bypass
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
Description
Mastodon is a free, open-source social network server based on ActivityPub. By nature, Mastodon performs a lot of outbound requests to user-provided domains. Mastodon, however, has some protection mechanism to disallow requests to local IP addresses (unless specified in ALLOWED_PRIVATE_ADDRESSES) to avoid the "confused deputy" problem. The list of disallowed IP address ranges was lacking some IP address ranges that can be used to reach local IP addresses. An attacker can use an IP address in the affected ranges to make Mastodon perform HTTP requests against loopback or local network hosts, potentially allowing access to otherwise private resources and services. This is fixed in Mastodon v4.5.4, v4.4.11, v4.3.17 and v4.2.29.
Upgrade path
2 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| joinmastodon mastodon | < 4.2.29; >= 4.3.0, < 4.3.17; >= 4.4.0, < 4.4.11; >= 4.5.0, < 4.5.4 | 4.2.29, 4.3.17, 4.4.11, 4.5.4 | Fixed |
| mastodon | = < 4.2.29; = >= 4.3.0-beta.1, < 4.3.17; = >= 4.4.0-beta.1, < 4.4.11; = >= 4.5.0-beta.1, < 4.5.4 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| mastodon | = < 4.2.29 | No fix listed |
| mastodon | = >= 4.3.0-beta.1, < 4.3.17 | No fix listed |
| mastodon | = >= 4.4.0-beta.1, < 4.4.11 | No fix listed |
| mastodon | = >= 4.5.0-beta.1, < 4.5.4 | No fix listed |
| joinmastodon mastodon | < 4.2.29 | 4.2.29 |
| joinmastodon mastodon | >= 4.3.0, < 4.3.17 | 4.3.17 |
| joinmastodon mastodon | >= 4.4.0, < 4.4.11 | 4.4.11 |
| joinmastodon mastodon | >= 4.5.0, < 4.5.4 | 4.5.4 |
References
- https://github.com/mastodon/mastodon/security/advisories/GHSA-xfrj-c749-jxxq vendor-advisory
- https://github.com/mastodon/mastodon/commit/0f4e8a6240b5af1f2c3f34d2793d8610c6ef2aca patch
- https://github.com/mastodon/mastodon/commit/17022907866710a72a1b1fc0a5ce9538bad1b4c3 patch
- https://github.com/mastodon/mastodon/commit/71ae4cf2cf5138ccdda64b1b1d665849b688686d patch