CVE-2026-47389

Source
https://cve.org/CVERecord?id=CVE-2026-47389
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-47389.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-47389
Aliases
Published
2026-06-24T19:41:21.150Z
Modified
2026-07-15T01:49:13.667486177Z
Severity
  • 8.6 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N CVSS Calculator
Summary
Mastodon: SSRF protection bypass on older Ruby versions
Details

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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/47xxx/CVE-2026-47389.json",
    "cwe_ids": [
        "CWE-184",
        "CWE-200",
        "CWE-918"
    ],
    "cna_assigner": "GitHub_M"
}
References

Affected packages

Git / github.com/mastodon/mastodon

Affected ranges

Type
GIT
Repo
https://github.com/mastodon/mastodon
Events
Database specific
{
    "extracted_events": [
        {
            "introduced": "4.5.0-beta.1"
        },
        {
            "fixed": "4.5.10"
        }
    ],
    "source": "AFFECTED_FIELD"
}

Affected versions

v4.*
v4.5.0
v4.5.0-beta.1
v4.5.0-beta.2
v4.5.0-rc.1
v4.5.0-rc.2
v4.5.0-rc.3
v4.5.1
v4.5.2
v4.5.3
v4.5.4
v4.5.5
v4.5.6
v4.5.7
v4.5.8
v4.5.9

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-47389.json"