CVE-2026-47389: Mastodon: SSRF protection bypass on older Ruby versions

Published Jun 24, 2026
·
Updated

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.privateaddress? 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.

Affected Software

2 affected components
Mastodon Mastodon<4.5.10, <4.4.17, <4.3.23
Ruby Ruby<3.4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Mastodon to a version that resolves this vulnerability.

    Fixed in 4.5.10
  2. Upgrade

    Upgrade Mastodon to a version that resolves this vulnerability.

    Fixed in 4.4.17
  3. Upgrade

    Upgrade Mastodon to a version that resolves this vulnerability.

    Fixed in 4.3.23

Event History

Jun 24, 2026
CVE Published
via MITRE·07:41 PM
Data Sourced
via MITRE·07:41 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:16 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-47389?

CVE-2026-47389 has a severity rating of 8.6, which is categorized as high.

2

How do I fix CVE-2026-47389?

To fix CVE-2026-47389, update to Mastodon version 4.5.10, 4.4.17, or 4.3.23, and ensure Ruby is upgraded to version 3.4 or later.

3

What type of vulnerability is CVE-2026-47389?

CVE-2026-47389 is a Server-Side Request Forgery (SSRF) vulnerability.

4

Which versions of Mastodon are affected by CVE-2026-47389?

Mastodon versions prior to 4.5.10, 4.4.17, and 4.3.23 are affected by CVE-2026-47389.

5

What does CVE-2026-47389 exploit?

CVE-2026-47389 exploits the PrivateAddressCheck.private_address? method in older Ruby versions, particularly for handling IPv4-mapped IPv6 addresses.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203