High severity · published Jun 24, 2026
CVE-2026-47389
Mastodon: SSRF protection bypass on older Ruby versions
8.6
CVSS
0.4%
EPSS
No
On KEV
Description
Mastodon is a free, open-source social network server based on ActivityPub. Prior to 4.5.10, 4.4.17, and 4.3.23, when using Ruby versions older than 3.4, PrivateAddressCheck.private_address? returns false for IPv4-mapped IPv6 addresses (::ffff:a.b.c.d) corresponding to some private IPv4 addresses, depending on Ruby version, this can include loopback, RFC1918 private networks, and link-local space. An attacker who controls DNS for any domain can publish an AAAA record with such a mapped address; any outbound HTTP fetch Mastodon performs against that hostname then opens a real TCP connection to the underlying IPv4 address, including 127.0.0.1 and cloud-metadata endpoints such as 169.254.169.254. This vulnerability is fixed in 4.5.10, 4.4.17, and 4.3.23.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
None
Availability
None
Scope
Changed
Exploitation
Is it being used?
Exploit prediction (EPSS)0.4% · higher than 33% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
MA
mastodon · mastodon
>= 4.5.0-beta.1, < 4.5.10 · source: vendor
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-47389
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-47389
github.com
https://github.com/mastodon/mastodon/security/advisories/GHSA-xx55-4rrg-8xg6
More from mastodon
8.7
CVE-2026-46348
Mastodon: SSRF Bypass via IPv6 Unspecified Address (::)
8.2
CVE-2026-27468
Mastodon may allow unconfirmed FASP to make subscriptions
7.5
CVE-2026-72915
Mastodon: Personally-identifying information disclosure due to incorrect access control validation
7.5
CVE-2026-72914
Mastodon: Exhausting data by an unauthenticated request to the admin retention API
7.5
CVE-2026-50129
Mastodon: Persistent anonymous DoS via unhandled NoMethodError in MATH_TRANSFORMER
