How I Found CVE-2026–50131: An Incomplete SSRF Fix in Fedify
The URL validation function in Fedify, added to fix an earlier SSRF issue, used an incomplete manual denylist of IPv4 ranges and treated several special-use ranges as public. An attacker could therefore make the library send outbound requests to addresses that should not be considered public internet destinations.
medium.com
Published on medium.com
There is a very specific feeling you get when you are reading security code and something looks almost right.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
The SSRF protection relied on a manual denylist of IPv4 ranges that omitted several special-use blocks, so the validator returned true for addresses that are not globally routable.
Impact
Any Fedify feature that relies on validatePublicUrl() as an SSRF boundary could incorrectly allow outbound requests to special-use IPv4 destinations; the real-world impact depends on deployment and network routing, and no real internal service was accessed.
What the attacker needed
Fedify used in an app that fetches remote URLs; Attacker can supply a URL to be fetched
The fix
The fix should reject all relevant special-use IPv4 ranges and use a maintained IP classification library or an allowlist-style approach based on globally routable addresses; patched versions were released.
How it was found
- Isolate the IPv4 validation logic from the library.
- Test common private ranges such as loopback, private, and link-local addresses and observe they are rejected.
- Test special-use ranges such as carrier-grade NAT, benchmarking, multicast, and reserved addresses and observe the validator returns true.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
SSRF (Server-Side Request Forgery) is when an attacker can make a server fetch a URL of their choosing, potentially reaching internal services. Fedify tried to stop this by checking whether a URL points to a public address, but its list of blocked private addresses was incomplete. As a result, some special-use addresses were wrongly accepted as public.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.