Description
Mastodon is a free, open-source social network server based on ActivityPub. Prior to 4.4.21, 4.5.14, 4.6.4, and 4.7.0-beta.1, PrivateAddressCheck.private_address? in app/lib/private_address_check.rb normalized IPv4-mapped IPv6 addresses but did not recognize IPv4-compatible IPv6 addresses with IPAddr#ipv4_compat?. An attacker could supply an address in the omitted range to bypass the ALLOWED_PRIVATE_ADDRESSES protection and make Mastodon send HTTP requests to loopback interfaces, potentially accessing private resources and services. Exploitation requires a system that supports the obsolete IPv4-compatible IPv6 mechanism. This issue is fixed in versions 4.4.21, 4.5.14, 4.6.4, and 4.7.0-beta.1.
Published: 2026-08-10
Score: 6.3 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Mastodon’s private address detection logic fails to detect IPv4-compatible IPv6 addresses, allowing an attacker to supply such an address in a request that bypasses the ALLOWED_PRIVATE_ADDRESSES protection. By doing so, the server can be tricked into making HTTP requests to loopback interfaces, potentially exposing internal services and resources that should remain inaccessible. This flaw is a classic SSRF protection bypass but does not grant arbitrary remote code execution. The weakness is captured under CWE-1286 (Inadequate Access Control) and CWE-918 (Server-Side Request Forgery).

Affected Systems

The vulnerability impacts any Mastodon installation running a version older than 4.4.21, 4.5.14, 4.6.4, or 4.7.0‑beta.1. The affected product is the Mastodon social network server. All earlier releases in the main line are susceptible unless customized configurations remove the use of IPv4-compatible IPv6 addresses.

Risk and Exploitability

The CVSS score of 6.3 indicates moderate severity. Exploitation requires a system that still supports IPv4-compatible IPv6, which is rare in modern deployments, so the practical likelihood is limited but not negligible. The EPSS is not available, and the vulnerability is not listed in CISA’s KEV catalog, suggesting it is not a widely observed or actively exploited threat. Nevertheless, an attacker with network access to a Mastodon instance could craft a request containing an IPv4-compatible IPv6 address to induce internal HTTP traffic to localhost and potentially retrieve sensitive data or call privileged APIs.

Generated by OpenCVE AI on August 10, 2026 at 22:32 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade your Mastodon installation to version 4.4.21 or later (4.5.14, 4.6.4, or 4.7.0‑beta.1) to apply the vendor fix.
  • Reconfigure your operating system to disable or avoid applying IPv4-compatible IPv6 addresses, ensuring the software does not attempt to use this deprecated mechanism.
  • Implement network hardening by filtering or blocking outbound HTTP requests to local loopback addresses, and monitor for unexpected internal traffic patterns from the Mastodon service.

Generated by OpenCVE AI on August 10, 2026 at 22:32 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 10 Aug 2026 21:30:00 +0000

Type Values Removed Values Added
Description Mastodon is a free, open-source social network server based on ActivityPub. Prior to 4.4.21, 4.5.14, 4.6.4, and 4.7.0-beta.1, PrivateAddressCheck.private_address? in app/lib/private_address_check.rb normalized IPv4-mapped IPv6 addresses but did not recognize IPv4-compatible IPv6 addresses with IPAddr#ipv4_compat?. An attacker could supply an address in the omitted range to bypass the ALLOWED_PRIVATE_ADDRESSES protection and make Mastodon send HTTP requests to loopback interfaces, potentially accessing private resources and services. Exploitation requires a system that supports the obsolete IPv4-compatible IPv6 mechanism. This issue is fixed in versions 4.4.21, 4.5.14, 4.6.4, and 4.7.0-beta.1.
Title Mastodon: SSRF Protection Bypass via IPv4-compatible IPv6 Addresses
Weaknesses CWE-1286
CWE-918
References
Metrics cvssV4_0

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


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-10T21:19:02.908Z

Reserved: 2026-08-10T17:57:26.143Z

Link: CVE-2026-72916

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-10T22:45:05Z

Weaknesses
  • CWE-1286

    Improper Validation of Syntactic Correctness of Input

  • CWE-918

    Server-Side Request Forgery (SSRF)