Skip to main content
Menu
Advisories

fedify nodeinfo fetches unvalidated favicon URLs

GHSA-CJ5R-CW77-6GWPPublished Updated GitHub

Description

Summary -------

fedify nodeinfo can send a GET request to a loopback, link-local, or private address while displaying the favicon of a remote instance. The CLI's NodeInfo document lookup validates destinations, but the subsequent page and favicon requests in packages/cli/src/nodeinfo.ts use plain fetch() with automatic redirects. The favicon URL is taken from the remote page's <link rel="icon" href> element, resolved against the page response URL, and fetched without validatePublicUrl().

Affected product ----------------

The reporter tested @fedify/cli 2.4.4 on October 21, 2026. Inspection of the published npm 2.4.4 tarball confirms the unguarded fetch() calls in dist/nodeinfo.js at lines 136 and 217, and the favicon URL construction at line 232. The affected-version range includes earlier releases; only the published npm 2.4.4 package was checked in this assessment. Other distributions have not yet been assessed.

Reproduction evidence ---------------------

Zachariah Mithani reports a Docker test on an internal-only network without egress. fedify nodeinfo http://127.0.0.1/ was refused by the NodeInfo lookup, and a benign favicon link caused no internal request. When an attacker-controlled page advertised http://127.0.0.1:9999/secret as its favicon, the internal server logged GET /secret with User-Agent Fedify/2.4.4. The reporter has offered the complete PoC files on request. The maintainer's assessment so far is based on source and published-package inspection; this isolated execution has not been independently repeated.

The page request in getFaviconUrl() is also unguarded, so an attacker-controlled public page that redirects to an internal address presents a second route to the same kind of request. That redirect route is based on code inspection and has not been separately reproduced.

Impact ------

An operator who runs fedify nodeinfo against a malicious instance can cause the CLI to issue an internal GET from the operator's machine. The attacker does not directly receive the response body. If the response parses as an image, the CLI may display a rendering to the operator. The request may still affect an internal endpoint with GET side effects. The reporter estimates low severity and supplied CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N (3.1); severity and the vector should be revisited during triage.

--no-favicon or --raw avoids these page and favicon requests until a fix is available.

Suggested fix -------------

Validate the page URL and each favicon URL before requesting it. Follow redirects manually with a hop limit, validating each destination before the next request. Add regression coverage for an icon href pointing to loopback and for public-to-private redirects on both requests.

Coordination ------------

Reported privately by Zachariah Mithani (AploSec), GitHub zachariah-mithani, zachariah@aplosai.com. The reporter requested coordinated disclosure and asked whether a CVE could be requested through GitHub or a CNA. January 14, 2027 was an original planning backstop, not an agreed publication date. Do not publish this advisory or request a CVE without a separate decision.

This affects a different package and request path from GHSA-xw9q-2mv6-9fr8, which concerns special-use IPv4 classification in validatePublicUrl().

Affected versions

References

GitHub · fedify-dev/fedify