Cyber Resilience

CVE-2026-22245

SSRF in Joinmastodon Mastodon ≤ 4.2.29

Published
08 January 2026
Modified
15 January 2026
Patch / advisory
CVSS Score v4 7.1
Click a component to see what it means
Raw vectorCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
EPSS Score 0.0025 17th percentile
Risk Priority 35 floored blend · peak EPSS

Summary

CVE-2026-22245 is a high-severity SSRF (CWE-918) vulnerability in Joinmastodon Mastodon. Its CVSS base score is 7.1 (High).

Operationally, exploitation aligns with the MITRE ATT&CK technique Exploit Public-Facing Application (T1190); ranked at the 17th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified map to AC-4 (Information Flow Enforcement) and SI-10 (Information Input Validation) — see the control section below for these in your framework.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

CVE-2026-22245 is a server-side request forgery (SSRF) vulnerability in Mastodon, a free and open-source social network server based on ActivityPub. Mastodon performs numerous outbound HTTP requests to user-provided domains but includes protections to block requests to local IP addresses—unless explicitly allowed via the ALLOWED_PRIVATE_ADDRESSES configuration—to mitigate confused deputy risks. However, the blocklist omitted certain IP address ranges that could still resolve to loopback or local network hosts, enabling unauthorized requests to internal resources.

The vulnerability has a CVSS v3.1 base score of 7.5 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N) and is classified under CWE-918. Any remote attacker with network access to a vulnerable Mastodon instance can exploit it without authentication or user interaction by supplying malicious domains resolving to the disallowed IP ranges. Successful exploitation allows the attacker to force the Mastodon server to make HTTP requests to loopback interfaces or local network services, potentially exposing sensitive private resources that would otherwise be inaccessible from the internet.

Mitigation is available through patches in Mastodon versions 4.5.4, 4.4.11, 4.3.17, and 4.2.29, which expand the disallowed IP ranges. The official security advisory (GHSA-xfrj-c749-jxxq) and corresponding GitHub commits detail the fixes, recommending immediate upgrades for all affected instances.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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`)…

more

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.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2026-27477Same product: Joinmastodon Mastodon
CVE-2024-34535Same product: Joinmastodon Mastodon
CVE-2023-36460Same product: Joinmastodon Mastodon
CVE-2023-42450Same product: Joinmastodon Mastodon
CVE-2026-41259Same product: Joinmastodon Mastodon
CVE-2023-36459Same product: Joinmastodon Mastodon
CVE-2023-36462Same product: Joinmastodon Mastodon
CVE-2023-42452Same product: Joinmastodon Mastodon
CVE-2024-25623Same product: Joinmastodon Mastodon
CVE-2026-27468Same product: Joinmastodon Mastodon

Affected Assets

joinmastodon
mastodon
≤ 4.2.29 · 4.3.0 — 4.3.17 · 4.4.0 — 4.4.11

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

Detect
Catch it (NIST detect / respond)

Harden
Shrink the surface (DISA STIG)

Validate
Prove the fix (OWASP ASVS)
  • V1.3.6
  • V1.5.3
  • V5.3.2
  • V10.4.7

Mitigating Controls (NIST 800-53 r5) AI

Information flow enforcement can restrict which destinations the server is allowed to contact on behalf of users.

Input validation directly stops untrusted URLs from being accepted and fetched without destination checks.

Boundary protection limits the network reach of server-initiated requests even if SSRF occurs.

Mitigating Controls (NIST CSF 2.0) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.

PR.PS-06 mostly match
prevents

Secure development practices directly include input validation and destination allow-listing that prevent SSRF.

DE.CM-09 partial match
prevents

Runtime monitoring of web applications and services can detect anomalous outbound requests indicative of SSRF.

ID.RA-01 partial match
prevents

Vulnerability identification processes can discover and record SSRF flaws in web applications.

PR.IR-01 partial match
prevents

Network segmentation and egress controls can limit the damage from successful SSRF requests.

Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

prevents

Operational threat data describing SSRF campaigns can be used to tighten outbound-request allow-lists and detection rules before attackers exploit them.

References