Improper input validation in Prerender (CVE-2026-121120)
A debug-only check in Chrome's navigation code was the sole guard preventing a prerendered page from navigating the visible tab. A compromised renderer in a prerendered page could therefore redirect the user to an arbitrary URL without interaction.
- Fix shipped in 8 months
Report description
Navigator::RequestOpenURL() DCHECK-only guard for prerendering main frames stripped in release
Bug location
Where do you want to report your vulnerability?
Chrome VRP – Report security issues affecting the Chrome browser. See program rules
Which URL (or repository) have you found the vulnerability in?
https://source.chromium.org/chromium/chromium/src/+/main:content/browser/renderer_host/navigator.cc
The problem
Please describe the technical details of the vulnerability
Navigator::RequestOpenURL() relies on a DCHECK to prevent prerendering main frames from calling OpenURL. DCHECKs are stripped in release builds, so a compromised renderer in a prerendered page can navigate the primary (visible) tab to an arbitrary URL via mojom::FrameHost::OpenURL() with CURRENT_TAB disposition and empty frame_tree_node_id.
Vulnerable file: content/browser/renderer_host/navigator.cc — Navigator::RequestOpenURL()
The code comment acknowledges this should not happen:
// Prerendering frames need to have an FTN id set, so OpenURL() can find
// the correct frame tree for the navigation. Due to the above logic, that
// means this function currently can't be called for prerendering main frames.
DCHECK(...)
Steps to reproduce:
git checkout -b poc 146.0.7680.32git apply poc_patch.diff- Build with
dcheck_always_on=false(the default for release builds):gn gen out/Default --args='is_debug=false is_component_build=true dcheck_always_on=false' autoninja -C out/Default chromepython3 serve.py(starts HTTP server on 127.0.0.1:8080)out/Default/Chromium.app/Contents/MacOS/Chromium --user-data-dir=/tmp/chrome-poc-test http://127.0.0.1:8080/index.html- Expected: The page auto-prerenders
/prerender-nav.html. After ~500ms, the primary tab navigates to/hijacked.htmlwithout user interaction.
The renderer patch routes main-frame navigations through OpenURL() instead of BeginNavigation() when the URL contains a marker string. No flags needed — Speculation Rules and prerendering are enabled by default.
Bisect:
Introducing commit: a2ed77ebbae7 — Asami Doi, 2021-06-25, M93. "Prerender: fix WindowClient.navigate() in a prerendered main frame" (CL 2936739). Added the DCHECK as the sole guard instead of a runtime check. Affected: M93 through M146 (current stable).
Fix: Replace DCHECK with runtime bad_message::ReceivedBadMessage() that terminates the renderer. Attached as fix.diff. Will upload Gerrit CL with browser test.
Impact analysis
The PoC demonstrates a prerendered page navigating the user's visible tab to an attacker-chosen URL without any user interaction. A compromised renderer in a cross-site prerender (different process from the primary page) can silently redirect the user for phishing. The attack requires only injecting a <script type="speculationrules"> tag pointing to the attacker's URL, which then auto-prerenders and navigates.
The cause
What version of Chrome have you found the security issue in?
146.0.7680.32 (Stable)
Is the security issue related to a crash?
No, it is not related to a crash.
Choose the type of vulnerability
Other
How would you like to be publicly acknowledged for your report?
Tianyi Hu
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
The code relied on a DCHECK, which is compiled out in release builds, instead of a runtime check to prevent prerendering main frames from calling OpenURL.
Impact
A compromised renderer in a cross-site prerender could silently redirect the user's visible tab to an attacker-chosen URL for phishing, without user interaction.
What the attacker needed
Compromised renderer; prerendering enabled (default); no user interaction needed
The fix
The DCHECK should be replaced with a runtime check that terminates the renderer when the message is invalid.
How it was found
- Check out the vulnerable Chrome version and apply the proof-of-concept patch.
- Build Chrome with debug checks disabled, as in release builds.
- Start a local HTTP server serving the proof-of-concept page.
- Launch the built Chrome against the local page.
- Observe that the prerendered page navigates the visible tab to another page without user interaction.
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.
Chrome sometimes loads pages in the background (prerendering) to make them open faster. A safety check that only runs in debug builds was supposed to stop these background pages from changing the main tab. In normal release builds that check is removed, so a malicious background page could redirect the user to a different site.
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.