Insufficient validation of untrusted input in FedCM (CVE-2026-8013)
A logic error in FedCM's sign-in status validation allows cross-origin resources preloaded via 103 Early Hints to bypass same-site restrictions and set their Identity Provider sign-in status. A malicious Relying Party could exploit this to enable cross-site tracking by a third-party tracker.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 38 days
Project Fortify, an experimental security project, has identified the following potential security issue.
Overview: A logic error in FedCM's sign-in status validation allows cross-origin resources preloaded via 103 Early Hints to bypass same-site restrictions and set their Identity Provider (IdP) sign-in status. This occurs because the validation checks the frame's ancestors, which evaluates to null for top-level navigations, vacuously passing the security check. A malicious Relying Party could exploit this to enable cross-site tracking by a third-party tracker.
Affected files:
content/browser/webid/webid_utils.cccontent/browser/loader/url_loader_throttles.cccontent/browser/loader/navigation_early_hints_manager.cccontent/browser/loader/navigation_url_loader_impl.cccontent/common/webid/identity_url_loader_throttle.cc
Estimated timestamp from git blame: 2025-08-19
Background
FedCM implements a 'sign-in status' mechanism to prevent silent cross-site tracking. An Identity Provider (IdP) can set its status to 'signed-in' or 'signed-out' using the Set-Login HTTP response header. To prevent a malicious Relying Party (RP) from arbitrarily setting the sign-in status for a third-party tracker (which would later allow the tracker to receive credentialed FedCM requests), Chromium enforces that the Set-Login header must be delivered from a same-site frame or a same-site ancestor.
The Vulnerability
The validation logic in webid::SetIdpSigninStatus (content/browser/webid/webid_utils.cc) is flawed when checking ancestors for top-level frames. The function uses IsSameSiteWithAncestors(origin, frame_tree_node->parent()) to validate the IdP origin. When this is called for a navigation or a resource associated with the outermost main frame, frame_tree_node->parent() is nullptr.
The IsSameSiteWithAncestors implementation returns true for a null RenderFrameHost, meaning the check vacuously passes for all top-level frames.
While this logic might be intended for the main resource navigation itself (where the origin should be allowed to set its own status), it is incorrectly applied to subresource preloads triggered by 103 Early Hints.
When a top-level navigation to https://rp.test receives a 103 Early Hints response containing a Link: rel=preload header for a cross-origin resource like https://tracker.test/setlogin, the browser initiates a preload request. This request is handled by IdentityUrlLoaderThrottle (bound via CreateContentBrowserURLLoaderThrottles), which invokes the browser-side webid::SetIdpSigninStatus callback. Because the preload is associated with the main frame's FrameTreeNodeId, the parent() check is bypassed, allowing tracker.test to persist its sign-in status despite being cross-origin to the RP.
In contrast, the renderer-side Mojo implementation of SetIdpSigninStatus in content/browser/webid/request_service.cc correctly checks the origin against the frame host itself (IsSameSiteWithAncestors(idp_origin, &render_frame_host())), which prevents similar bypasses via standard <script> or fetch() calls in the committed page.
Impact
This vulnerability enables cross-site tracking. Once a tracker is marked as 'signed-in' for the browser context, FedCM's privacy protections are weakened. A malicious RP can subsequently call navigator.credentials.get() for that tracker, and the browser will proceed to fetch the tracker's accounts endpoint with first-party cookies. This allows the tracker to correlate the user's identity with their visit to the RP site.
Suggested Steps to Reproduce
Note: These steps are theoretical as our tooling cannot currently execute code to verify them end-to-end, but they trace the vulnerable code paths identified.
-
Setup an RP server (
https://rp.test) and a tracker server (https://tracker.test). -
Configure the RP to respond to a top-level navigation with a
103 Early Hintsresponse containing the header:Link: <https://tracker.test/setlogin>; rel=preload; as=script. -
Configure the tracker server to respond to
/setloginwith the header:Set-Login: logged-in. -
Navigate the browser to
https://rp.test. -
Once the page commits, check
chrome://signin-internalsto confirm thathttps://tracker.testis now recorded as signed-in. -
Execute the following JS on
https://rp.testto trigger a credentialed fetch to the tracker:JavaScript navigator.credentials.get({ identity: { providers: [{ configURL: "https://tracker.test/fedcm.json" }] } }); -
Observe the network request to
https://tracker.test's accounts endpoint including cookies.
Suggested Fix
Update the validation in webid::SetIdpSigninStatus (content/browser/webid/webid_utils.cc) to handle top-level frames correctly. Similar to the renderer-side implementation in RequestService::SetIdpSigninStatus, the origin should likely be validated against the frame itself (or the hinted origin for Early Hints preloads) rather than only its parent, to prevent cross-origin preloads from bypassing the same-site restriction. For example, explicitly check if the destination is a subresource and enforce same-site checks against the main frame's origin.
Evaluated with Chrome root at commit: 876d480da1f794d87813cfa2e6ff4fcf9771e939
Results so far have been promising, but there can be wrong deductions. If this proves to be a false positive, please close as WAI; data from false positives will be used to improve accuracy over time. And please feel free to reach out to me directly if you have concerns or feedback on the project.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the ancestor check in SetIdpSigninStatus returns true for a null parent frame, so top-level preloads bypass the same-site restriction.
Impact
This vulnerability enables cross-site tracking, allowing a tracker to correlate the user's identity with their visit to the RP site.
What the attacker needed
Victim visits a malicious RP; browser supports FedCM and 103 Early Hints
The fix
The validation in SetIdpSigninStatus should be updated to handle top-level frames correctly, for example by validating the origin against the frame itself or the hinted origin for Early Hints preloads.
How it was found
- Set up an RP server and a tracker server.
- Configure the RP to respond to a top-level navigation with a 103 Early Hints response containing a preload link to the tracker.
- Configure the tracker to respond to the preload path with a Set-Login header.
- Navigate the browser to the RP.
- Check chrome://signin-internals to confirm the tracker is recorded as signed-in.
- Execute JavaScript on the RP to trigger a credentialed fetch to the tracker and observe cookies in the request.
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 report has not been written yet. The Original tab links to the source.
FedCM is a browser feature that lets you sign in to websites using an identity provider without sharing passwords. The browser tries to stop one website from secretly marking a third-party tracker as 'signed in', because that would let the tracker follow you across sites. Here, a mistake in how the browser checks the origin of a preloaded resource lets a malicious site set that status for a tracker, weakening your privacy.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.