CVE-2026-47389
published high CVSS 3.1 · 8.6Mastodon: SSRF protection bypass on older Ruby versions
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| mastodon | — | mastodon>= 4.5.0-beta.1, < 4.5.10 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.6 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| mastodon | mastodon | >= 4.5.0-beta.1, < 4.5.10 (affected) | GitHub_M · cna |
Weaknesses
3- CWE-184 CWE-184: Incomplete List of Disallowed Inputs
- CWE-200 CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
- CWE-918 CWE-918: Server-Side Request Forgery (SSRF)
References
1Provider assertions
2GitHub_M · cna
Mastodon: SSRF protection bypass on older Ruby versions
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- e548057d3a652c230a94bb58bd18bff9e61bb354c71d271c3db256af66922eb6
- Ingested
- 23 Sep 2026, 09:16:58 UTC
- Source record
- Official CVE record