Skip to content
CSRF Advisory Advanced CVE-2026-79214

Improper input validation in Preload (CVE-2026-79214)

The browser process failed to validate the referrer URL supplied by a renderer when starting a NoStatePrefetch (legacy prerender) request. A compromised renderer could therefore forge the Referer header on background, credentialed GET requests, potentially bypassing Referer-based CSRF protections.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 3 months

Project Fortify, an experimental security project, has identified the following potential security issue. If you're a feature owner CC-ed on this bug, please do your best to review these reports. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.

Overview: A logic flaw in the NoStatePrefetch (legacy prerender) implementation allows a compromised renderer to forge the Referer header in browser-initiated requests. The browser process fails to validate the renderer-supplied referrer URL against the trustworthy initiator origin. This can be used to bypass Referer-based CSRF protections on target sites via background, credentialed GET requests.

Affected files:

  • components/no_state_prefetch/browser/no_state_prefetch_processor_impl.cc
  • components/no_state_prefetch/browser/no_state_prefetch_link_manager.cc
  • components/no_state_prefetch/browser/no_state_prefetch_manager.cc
  • components/no_state_prefetch/browser/no_state_prefetch_contents.cc

Estimated timestamp from git blame: Unknown (Google3 checkout)

Summary

A potential security vulnerability in the NoStatePrefetch implementation allows a compromised renderer to spoof the Referer HTTP header in background prefetch requests. The browser process captures the frame's trustworthy origin but fails to ensure that the renderer-supplied referrer URL in the Start Mojo IPC is consistent with that origin. Because these requests are initiated by the browser in a hidden WebContents, they include the user's cookies, enabling credentialed CSRF-like attacks.

Technical Details

When a renderer initiates a prefetch (e.g., via <link rel=prerender>), it triggers the blink.mojom.NoStatePrefetchProcessor::Start IPC. The browser handling logic follows this path:

  1. Interface Binding: NoStatePrefetchProcessorImpl::Create captures the frame's trustworthy origin using frame_host->GetLastCommittedOrigin() and stores it as initiator_origin_ (components/no_state_prefetch/browser/no_state_prefetch_processor_impl.cc:43).
  2. IPC Dispatch: The renderer provides blink.mojom.PrerenderAttributes, which includes a referrer field (URL and policy).
  3. Validation Failure: In NoStatePrefetchProcessorImpl::Start, the browser validates that the process is allowed to host initiator_origin_, but no validation is performed on the renderer-supplied attributes->referrer->url (components/no_state_prefetch/browser/no_state_prefetch_processor_impl.cc:47).
  4. Navigation Initiation: The unvalidated referrer is passed through NoStatePrefetchLinkManager and NoStatePrefetchManager to NoStatePrefetchContents.
  5. Background Fetch: NoStatePrefetchContents::StartPrerendering creates a hidden WebContents and initiates a navigation using NavigationController::LoadURLWithParams (components/no_state_prefetch/browser/no_state_prefetch_contents.cc:311). The LoadURLParams are populated with the spoofed referrer URL and the trustworthy initiator_origin_.
  6. Network Request: The navigation results in a browser-initiated network::ResourceRequest with credentials_mode set to kInclude. The Network Process sends the request with the forged Referer header.

This behavior allows a compromised renderer to perform invisible, credentialed cross-origin GET requests that appear to originate from a trusted site, potentially bypassing Referer-based CSRF mitigations or forging analytics data.

Potential Reproduction Steps

Note: These steps are based on manual code analysis; a functional PoC has not yet been executed.

  1. Gain code execution in a renderer process (e.g., via V8 memory corruption).
  2. Use MojoJS to bind to the blink.mojom.NoStatePrefetchProcessor interface.
  3. Call Start() with PrerenderAttributes configured with:
    • url: The target sensitive action URL (e.g., https://bank.example/transfer-funds).
    • referrer.url: A site trusted by the target (e.g., https://bank.example/dashboard).
    • referrer.policy: network.mojom.ReferrerPolicy.kAlways.
  4. Observe the outgoing network request. It is expected to contain the user's cookies for bank.example and the spoofed Referer header.

Recommended Fix

In NoStatePrefetchProcessorImpl::Start, validate that the attributes->referrer->url provided by the renderer is either empty or same-origin with the trustworthy initiator_origin_. If the referrer URL is cross-origin, it should be cleared or the message should be treated as a BadMessage.

Evaluated with Chrome root at commit: 29093e11cf509e3593f6229e4b1b075cca356049


Results so far have been promising, but there can be wrong deductions. Feel free to adjust as follows:

  • If you are familiar with the severity guidelines, you may adjust the severity.
  • If this is a false positive, and there's no work to be done, please close as WAI.
  • If there is work to do here but not a vulnerability, please change the issue type to Task/Bug/FR.

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.

The original report as published on the Chromium issue tracker. Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

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 browser process trusted the renderer-supplied referrer URL in the NoStatePrefetch Start IPC without checking it against the frame's trustworthy initiator origin.

Impact

A compromised renderer could perform invisible, credentialed cross-origin GET requests that appear to come from a trusted site, potentially bypassing Referer-based CSRF mitigations or forging analytics data.

What the attacker needed

Code execution in a renderer process; target site relies on Referer for CSRF protection

The fix

The Start handler should validate that the renderer-supplied referrer URL is empty or same-origin with the trustworthy initiator origin, clearing it or treating the message as a BadMessage otherwise.

How it was found

  1. Gain code execution in a renderer process.
  2. Use MojoJS to bind to the NoStatePrefetchProcessor interface.
  3. Call Start() with PrerenderAttributes containing a target URL and a forged referrer URL with an always-send policy.
  4. Observe the outgoing network request containing the user's cookies and the spoofed Referer header.

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.

When a web page asks the browser to quietly load another page in the background (a prefetch), the page can also say what address it came from, called the Referer header. The browser checked that the page was allowed to start the prefetch but did not check that the claimed address matched the page's real origin. If an attacker can already run code inside a web page, they could make the browser send requests that look like they came from a trusted site, and those requests would include the user's cookies.

What is CSRF?

Another site makes a signed-in user's browser perform an action they did not intend.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site request forgery (CSRF)

The lesson behind this report.

Another site makes a signed-in user's browser perform an action they did not intend.