Insufficient data validation in PDF (CVE-2026-13962)
The browser's checks for identifying privileged PDF frames did not verify the embedder's URL, so a compromised renderer could use history.pushState to desynchronise the embedder URL and navigate the PDF extension frame to a victim site. This granted the victim site JavaScript execution despite content settings and bypassed cookie partitioning.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 46 days
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 desynchronization in how the browser identifies privileged PDF frames allows a compromised renderer to bypass JavaScript content settings and cookie partitioning. By using history.pushState to desynchronize an embedder's URL, an attacker can bypass navigation throttles while retaining privileged status for a cross-origin victim site. This results in the victim site executing JavaScript despite blocks and accessing partitioned cookies.
Affected files:
chrome/browser/content_settings/page_specific_content_settings_delegate.ccextensions/browser/mime_handler/mime_handler_stream_manager.ccchrome/browser/pdf/chrome_pdf_stream_delegate.cccomponents/pdf/browser/pdf_navigation_throttle.ccchrome/browser/chrome_content_browser_client.cccomponents/content_settings/browser/page_specific_content_settings.cc
Estimated timestamp from git blame: 2024-03-19
Summary
A potential vulnerability exists in the OOPIF-PDF (Out-of-Process Iframe PDF) viewer where the browser process's predicates for identifying privileged frames fail to verify the embedder's URL. An attacker with a compromised renderer can exploit this to bypass 'Block JavaScript' content settings and cookie partitioning protections (like CHIPS and SameSite=Lax/Strict) for arbitrary origins.
Root Cause Analysis
The OOPIF-PDF architecture uses a three-level frame hierarchy: Embedder Host (web page), Extension Host (chrome-extension://...), and Content Host (the plugin frame). The MimeHandlerStreamManager manages the metadata (StreamInfo) for these frames.
There is a discrepancy in how the browser validates these frames:
- Navigation Throttling:
PdfNavigationThrottle(viaChromePdfStreamDelegate::ShouldAllowPdfFrameNavigation) callsMimeHandlerStreamManager::GetStreamContainer. This function correctly verifies that the embedder's last committed URL matches the original PDF URL (extensions/browser/mime_handler/mime_handler_stream_manager.cc:223). - Privilege Granting: Predicates like
IsExtensionHostandIsContentHost(used byPageSpecificContentSettingsandChromeContentBrowserClient) rely onGetClaimedStreamInfo. This function performs a lookup using only theFrameTreeNodeIdandGlobalRenderFrameHostId, omitting the URL validation check (extensions/browser/mime_handler/mime_handler_stream_manager.cc:665).
By using history.pushState in the embedder frame, an attacker can cause the URL check in GetStreamContainer to fail, leading the navigation throttle to permit a cross-origin navigation of the extension frame to a victim site. However, during the ReadyToCommit stage, the privilege-granting predicates still return true, granting the victim site the privileges intended for the PDF viewer.
Potential Exploitation Path
- A compromised renderer at
https://attacker.comloads a PDF in an iframe. The browser registers aStreamInfofor the resulting extension frame. - The attacker executes
history.pushState({}, '', '/spoofed')in the top-level (embedder) frame. This updates the frame's last committed URL without changing its ID. - The attacker triggers a navigation of the child PDF extension frame to
https://victim.com. PdfNavigationThrottleintercepts the navigation. Because the embedder's URL (/spoofed) no longer matches the PDF's original URL,GetStreamContainerreturnsnullptr. The throttle assumes the frame is no longer an active PDF viewer and permits the navigation.- Upon commit of
https://victim.com, the browser callsIsFrameAllowlistedForJavaScript. Because this check does not verify the embedder's URL, it returnstruebased on the persistentFrameTreeNodeIdmapping. This setsallow_script = truein the navigation parameters, bypassing any JavaScript block settings forvictim.com. - Similarly,
GetEffectiveTopFrameForPartitioningis called, which incorrectly identifies the victim frame as a top-level frame, bypassing cookie partitioning (SameSite/CHIPS) for the victim origin.
Impact
An attacker can force JavaScript execution on origins where the user has explicitly disabled it. Furthermore, it allows an attacker to bypass storage isolation and partitioning, potentially enabling CSRF or information leakage against sites relying on CHIPS or SameSite cookie attributes.
Suggested Fix
The predicates MimeHandlerStreamManager::IsExtensionHost, IsContentHost, and their underlying Is...FrameTreeNodeId helpers should be updated to verify that the embedder_host's last committed URL matches the original_url stored in the StreamInfo, consistent with the verification performed in GetStreamContainer.
Evaluated with Chrome root at commit: 1a8d40fc44df2088d5945c0bf53584038aa1614a
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.
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 privilege-granting predicates used a frame identifier lookup that omitted the embedder URL validation performed by the navigation throttle, so a URL change via history.pushState left the frame marked as a privileged PDF host.
Impact
An attacker could force JavaScript execution on origins where the user disabled it and bypass storage isolation and partitioning, potentially enabling CSRF or information leakage against sites relying on CHIPS or SameSite.
What the attacker needed
Compromised renderer; victim site relies on JS block or cookie partitioning
The fix
The privilege predicates should be updated to verify that the embedder's last committed URL matches the original PDF URL stored in the stream info, consistent with the navigation throttle check.
How it was found
- A compromised renderer loads a PDF in an iframe, registering a stream for the extension frame.
- The attacker calls history.pushState in the top-level frame to change its URL without changing its identifier.
- The attacker navigates the child PDF extension frame to a victim site.
- The navigation throttle sees the embedder URL no longer matches the PDF URL and permits the navigation.
- On commit, the privilege check still returns true, so JavaScript is allowed for the victim site and cookie partitioning is bypassed.
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.
A PDF viewer inside the browser is given special privileges, such as being allowed to run scripts even when the user has blocked JavaScript. The browser decides whether a frame is that special PDF viewer by looking up an internal identifier, but it forgot to check that the page which embedded the PDF is still the same page. An attacker who already controls one part of the browser can change the page's address without reloading it, trick the browser into thinking a normal website is still the privileged PDF viewer, and then get that website to run scripts and read cookies that should have been…
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.