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.
Published: 2026-01-08
Score: 7.1 High
EPSS: < 1% Very Low
KEV: No
Impact: Local Network Access via SSRF
Action: Patch
AI Analysis

Impact

The vulnerability is caused by an incomplete blacklist of private IP ranges in Mastodon's outbound request validation. This allows an attacker to provide an IP address that lies within the omitted ranges, causing the server to send HTTP requests to loopback or local network hosts. As a result, internal services or sensitive resources that are normally inaccessible from the public network could be queried by the attacker, enabling data exfiltration or further lateral movement. The weakness belongs to CWE‑918, which characterises Server‑Side Request Forgery where the target of an outbound request is not properly validated.

Affected Systems

The defect affects all Mastodon installations using versions that precede the published fixes: 4.5.4, 4.4.11, 4.3.17 and 4.2.29. Systems running earlier patch levels and not manually excluded certain private IP ranges are susceptible. Other platforms that incorporate the same outbound request logic without the updated whitelist are likely affected as well.

Risk and Exploitability

Mastodon assigns a CVSS score of 7.1, classifying the issue as High severity. The EPSS score is below 1 %, indicating a very low but non‑zero probability of exploitation in the near term, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog. The SSRF attack vector requires the attacker to supply a crafted IP address that falls within the omitted private ranges, after which Mastodon will perform the outbound request. Successful exploitation can expose internal hosts or services which are normally protected, and depending on the internal network design, could be leveraged for further compromise. Given the low exploitation probability but significant potential impact, administrators should consider applying the available fixes promptly.

Generated by OpenCVE AI on April 18, 2026 at 07:38 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Mastodon to at least version 4.5.4 (or the appropriate branch‑specific release such as 4.4.11, 4.3.17, or 4.2.29).
  • If an upgrade cannot be performed immediately, isolate the Mastodon instance from the internal network using firewall rules or a separate subnet to prevent outbound connections to private IP ranges.
  • Review and tighten the ALLOWED_PRIVATE_ADDRESSES configuration so that only necessary private networks are allowed, ensuring the blacklist matches the latest security guidance.

Generated by OpenCVE AI on April 18, 2026 at 07:38 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 15 Jan 2026 20:45:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:joinmastodon:mastodon:*:*:*:*:*:*:*:*
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'}


Fri, 09 Jan 2026 13:30:00 +0000

Type Values Removed Values Added
First Time appeared Joinmastodon
Joinmastodon mastodon
Vendors & Products Joinmastodon
Joinmastodon mastodon

Thu, 08 Jan 2026 18:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 08 Jan 2026 15:45:00 +0000

Type Values Removed Values Added
Metrics cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N'}

cvssV4_0

{'score': 7.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N'}


Thu, 08 Jan 2026 15:30:00 +0000

Type Values Removed Values Added
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.
Title Mastodon has SSRF Protection bypass
Weaknesses CWE-918
References
Metrics cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N'}


Subscriptions

Joinmastodon Mastodon
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-01-08T15:54:30.680Z

Reserved: 2026-01-07T05:19:12.920Z

Link: CVE-2026-22245

cve-icon Vulnrichment

Updated: 2026-01-08T15:50:17.103Z

cve-icon NVD

Status : Analyzed

Published: 2026-01-08T16:16:02.803

Modified: 2026-01-15T20:36:42.153

Link: CVE-2026-22245

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-18T07:45:24Z

Weaknesses