CWE-184Weakness · CWE-184

CVE-2026-47389

HIGH · 8.6 CVSS v3.1 Published 2026-06-24
Mitigation only
No fix yet — a mitigation exists. There is no fixed release. A documented workaround reduces exposure in the meantime.
See remediation →
95/100
Remediation priority · Urgent
Remotely reachable No privileges Zero-click 8 weeks old

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
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.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

This is a server-side request forgery (SSRF) vulnerability in Mastodon's PrivateAddressCheck module. When using Ruby versions older than 3.4, the private_address? check incorrectly returns false for IPv4-mapped IPv6 addresses (::ffff:a.b.c.d), failing to recognize them as private. Attackers who control DNS can publish malicious AAAA records pointing to internal addresses like 127.0.0.1 or cloud metadata endpoints (169.254.169.254), causing Mastodon to make outbound HTTP connections to internal infrastructure.

MitigationUpgrade Mastodon to version 4.5.10, 4.4.17, or 4.3.23 or later; alternatively, upgrade Ruby to version 3.4 or newer which contains the fix for the underlying PrivateAddressCheck behavior.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Scope
Changed
Confidentiality
High
Integrity
None
Availability
None

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Identify Mastodon installation
    Check for Mastodon-specific files: look for config/initializers directory structure, .env file in the Mastodon root, or run 'ls -la' to find Mastodon-specific configuration files like config/environments/ and config/initializers/ directory contents.
    Affected if The system is running Mastodon (not another Ruby on Rails application)
  2. Check Ruby version
    Run 'ruby --version' in the Mastodon deployment environment, or inspect the Gemfile.lock to find the 'ruby' version entry.
    Affected if Ruby version is below 3.4 (for example, 3.3.x, 3.2.x, or earlier). Versions 3.4 and later are not affected.
  3. Check Mastodon version
    Run 'git describe --tags' in the Mastodon directory, or check the VERSION file if present, or look at the installed gem version via 'bundle show mastodon' or 'cat Gemfile.lock | grep mastodon'.
    Affected if Mastodon versions below 4.3.23, 4.4.17, or 4.5.10 are vulnerable regardless of Ruby version.
  4. Verify custom DNS configuration
    Check if Mastodon allows users to configure custom DNS resolvers or DNS-over-HTTPS endpoints. Look for environment variables like DNS_RESOLVER, DNS_STUB, DOH_URL, or similar configurations in the .env file or documentation.
    Affected if External users can influence DNS resolution (for example, through admin-configured external DNS resolvers or user-provided hostnames that get resolved by Mastodon)
  5. Confirm outbound HTTP feature is enabled
    Inspect if the RemoteResourceService or any feature that makes outbound HTTP requests based on DNS resolution is enabled. Check config/boot.rb or config/application.rb for modules that use the PrivateAddressCheck for HTTP requests.
    Affected if Mastodon is configured to fetch remote resources (profile images, media, preview cards) from user-provided URLs - this is the typical configuration for Mastodon

A user is affected if they run a vulnerable Mastodon version (below 4.3.23/4.4.17/4.5.10) OR use Ruby below 3.4, AND the system makes outbound HTTP requests based on DNS records that could be controlled by an attacker.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Mitigation available No clean upgrade yet — mitigate in the meantime
Mitigation

Upgrade Mastodon to version 4.5.10, 4.4.17, or 4.3.23 or later; alternatively, upgrade Ruby to version 3.4 or newer which contains the fix for the underlying PrivateAddressCheck behavior.

Recommended fix High confidence

4.5.10 (or 4.4.17 or 4.3.23 depending on your current branch)

  1. 1. Identify your current Mastodon version by checking your installation or Gemfile
  2. 2. If running version 4.5.x, upgrade to version 4.5.10 or later
  3. 3. If running version 4.4.x, upgrade to version 4.4.17 or later
  4. 4. If running version 4.3.x, upgrade to version 4.3.23 or later
  5. 5. If running an older version, upgrade to the next supported minor version that includes the fix (4.3.23, 4.4.17, or 4.5.10)
  6. 6. After upgrade, verify the PrivateAddressCheck behavior with your Ruby version
Caveat Minor patch releases typically have no breaking changes; review release notes for any deprecation notices

Generated from the published advisory — verify against the referenced sources before acting.

Have this fixed Scoped from the published advisory
  • Consultation2.0 h
  • Implementation3.0 h
  • Testing3.0 h
  • Review / QA2.0 h
10.0 hours of engineering $1,750
Get help mitigating

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $2,800.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2026-47389 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2026-47389 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data