Insufficient policy enforcement in Frames (CVE-2026-2316)
The Intersection Observer v2 API in Chromium failed to detect when a target iframe became obscured after page load, because an overlay's z-index could be changed dynamically without the observer updating its visibility verdict. An attacker could use this to defeat clickjacking protections and, in the Google One Tap SDK case, leak a victim's identity to the attacker's page.
Originally disclosed on Chrome VRP
- Fix shipped in 8 months
VULNERABILITY DETAILS
While researching variations of issue 333708039, it was discovered that the Intersection Observer v2 API fails to accurately determine a target's visibility. By initially placing an overlay element with a low z-index beneath the target iframe, and then dynamically changing or removing the overlay's z-index to bring it above the target after the page loads, an attacker can trick the API into reporting the target as visible when it is actually obscured.
Here's a breakdown of what is currently happening:
- Attacker creates an overlay element with
z-index: "-9999"positioned below the target iframe. - The target iframe uses Intersection Observer V2 for visibility detection.
- The observer correctly reports the iframe as visible (since the overlay is below it).
- Attacker changes the overlay’s z-index via JavaScript using
overlay.style.zIndex = "9999". - The overlay moves above the iframe in the stacking order.
- The observer still reports the iframe as visible, even though it is now covered.
Since the Intersection Observer v2 API does not reliably determine visibility, any applications relying on it to prevent clickjacking attacks are vulnerable. One such example is the Google One Tap SDK, which embeds an iframe that uses this API to check if its login button is visible to the user when it is clicked. If the login button is not visible, it shows a popup asking for the user's consent to log in to the website. If the login button is visible, it immediately sends the user's identity to the website, allowing an attacker to leak the user's identity.
I have also attached a video reproducing the core attack (repro-core.mov) and the Google One Tap SDK attack (repro-tap.mov).
BISECT
By doing an initial bisect, I confirmed that the issue was not working on version 120.0.6099.56 (stable) and that the vulnerability started working on version 121.0.6167.75 (stable).
The commit responsible for that was: https://chromium.googlesource.com/chromium/src/+/f0d3627a2514f7119906da2012b59f6597d8605b
Looking into it, this commit enabled the IntersectionOptimization feature. By running the bisect again with the following command:
python3 bisect-builds.py -a mac -g m120 -b m121 --verify-range -- --enable-features=IntersectionOptimization --no-first-run --user-data-dir=/tmp http://localhost:8080/bypass.html
I was able to narrow it down to these changes: https://chromium.googlesource.com/chromium/src/+log/00ceb304e8ef1a64ee7ccfb25ce6deb39f5135c3..3e2df989cf54598113c005155dc9c75995c8177b
After investigating, it became clear that the commit that introduced the issue is: https://chromium.googlesource.com/chromium/src/+/e90de993ac2b3222e6b1d6d993922a13273fae8d
VERSION
Chrome Version: 137.0.7151.69 (Stable)
Chrome Version: 139.0.7219.0 (Canary)
Operating System: macOS 14.1.1 (23B81)
REPRODUCTION CASE
Steps to setup the PoC
- Download the following files:
bypass.html,expected-no-overlay.html,expected-overlay.html,frame.html,gis.html,google-clickjacking.html, andcat.jpg. - Move all files into the same folder.
- Serve the files using a web server on port 8080 (this is important because localhost:8080 has been added as an allowed origin in Google One Tap, which is required for it to work).
Steps to reproduce the core issue
- Go to http://localhost:8080/expected-overlay.html to verify how the Intersection Observer V2 API behaves when the target iframe is covered by an overlay. It should show a red background.
- Go to http://localhost:8080/expected-no-overlay.html to verify how the API behaves when there is no overlay. It should show a green background.
- Go to http://localhost:8080/bypass.html to reproduce the issue. Even though the iframe is covered by an overlay, the background still appears green.
Steps to reproduce the Google One Tap PoC
- Make sure you are logged into your Google Account.
- Navigate to http://localhost:8080/google-clickjacking.html and click the button.
- Notice that your identity is leaked to the attacker's page.
CREDIT INFORMATION
Reporter credit: Luan Herrera (@lbherrera_)
Context
Intersection Observer v2 extends the original Intersection Observer API with a notion of visibility: besides telling a page whether a target element intersects the viewport, it can report whether the target is actually visible to the user, meaning not obscured by other content and not subject to transformations that would make the reported geometry misleading. Applications use this to defend against clickjacking, because a button that is technically in the viewport but covered by an attacker's overlay should not be treated as clickable by a real user.
The affected component is the Frames component of Google Chrome, and the weakness class is insufficient policy enforcement. The issue was reported through the Chrome VRP by Luan Herrera (@lbherrera_), rated medium severity, and a bounty of 5000.00 USD was awarded. It was disclosed on 2026-02-10 as CVE-2026-2316.
The report describes the API failing to accurately determine a target's visibility. The technique is to place an overlay element with a low z-index beneath the target iframe, then change or remove the overlay's z-index after the page has loaded so that it moves above the target. The API continues to report the target as visible even though it is now obscured.
Setup
The researcher tested on the following versions:
| Channel | Version |
|---|---|
| Stable | 137.0.7151.69 |
| Canary | 139.0.7219.0 |
Operating system: macOS 14.1.1 (23B81).
The reproduction requires a set of local files served over HTTP on port 8080. The port matters: localhost:8080 has been added as an allowed origin in Google One Tap, which is required for the One Tap part of the proof of concept to work.
The files to download are bypass.html, expected-no-overlay.html, expected-overlay.html, frame.html, gis.html, google-clickjacking.html and cat.jpg. They all go into the same folder, which is then served by a web server on port 8080.
For the Google One Tap demonstration, the tester must be logged into a Google Account.
Finding it
The starting point was research into variations of issue 333708039. While working on that, the researcher found that Intersection Observer v2 does not correctly account for stacking-order changes made after the initial observation. The observer still reports the iframe as visible after the overlay is raised above it.
The behaviour is wrong because the API's contract is to report whether the target is visible to the user. Once the overlay has been raised above the iframe, the iframe is covered, yet the observer still reports it as visible. Any application that relies on this API to decide whether a click could have come from a genuine user interaction is therefore exposed.
Exploitation
Step 1: create the overlay below the target
The attacker creates an overlay element with z-index: "-9999", positioned below the target iframe.
Step 2: let the target observe itself
The target iframe uses Intersection Observer v2 for visibility detection.
Step 3: the observer reports visible
Because the overlay is below the iframe in the stacking order, the observer correctly reports the iframe as visible at this point.
Step 4: raise the overlay
After the page has loaded, the attacker changes the overlay's z-index from JavaScript:
overlay.style.zIndex = "9999";
This single assignment moves the overlay above the iframe in the stacking order. Removing the z-index entirely is described as an alternative way to bring the overlay above the target.
Step 5: the overlay covers the iframe
The overlay now sits above the iframe and obscures it.
Step 6: the observer still reports visible
The observer continues to report the iframe as visible even though it is now covered. This stale verdict is the core of the bug.
Verifying the core behaviour
The researcher provides three pages to compare the expected and actual behaviour:
http://localhost:8080/expected-overlay.htmlshows how the API behaves when the target iframe is covered by an overlay. It should show a red background.http://localhost:8080/expected-no-overlay.htmlshows how the API behaves when there is no overlay. It should show a green background.http://localhost:8080/bypass.htmlreproduces the issue. Even though the iframe is covered by an overlay, the background still appears green.
The Google One Tap case
The report names the Google One Tap SDK as a real application that relies on this API. The SDK embeds an iframe that uses Intersection Observer v2 to check whether its login button is visible to the user when it is clicked. If the login button is not visible, the SDK shows a popup asking for the user's consent to log in to the website. If the login button is visible, it immediately sends the user's identity to the website. That difference is what the attacker abuses: by making the API believe the button is visible while it is actually covered, the attacker gets the identity sent without the consent prompt.
To reproduce it:
- Make sure you are logged into your Google Account.
- Navigate to
http://localhost:8080/google-clickjacking.htmland click the button. - The identity is leaked to the attacker's page.
The researcher also attached two videos, repro-core.mov for the core attack and repro-tap.mov for the Google One Tap SDK attack.
Root cause
The report attributes the regression to a specific change. An initial bisect showed the issue did not reproduce on version 120.0.6099.56 (stable) and did reproduce on version 121.0.6167.75 (stable). The commit identified as responsible is:
https://chromium.googlesource.com/chromium/src/+/[redacted]
That commit enabled the IntersectionOptimization feature. Running the bisect again with the feature explicitly enabled narrowed the range:
python3 bisect-builds.py -a mac -g m120 -b m121 --verify-range -- --enable-features=IntersectionOptimization --no-first-run --user-data-dir=/tmp http://localhost:8080/bypass.html
The narrowed range is:
https://chromium.googlesource.com/chromium/src/+log/[redacted]..[redacted]
Investigating that range led to the commit that introduced the issue:
https://chromium.googlesource.com/chromium/src/+/[redacted]
The report does not describe the contents of that commit. What the reproduction shows is that the observer still reports the iframe as visible after the overlay covers it. Existing defences that depend on this API, such as the consent gate in Google One Tap, inherit the stale verdict and therefore do not stop the attack.
Impact
Any application that relies on Intersection Observer v2 to prevent clickjacking is vulnerable. The concrete example in the report is the Google One Tap SDK: an attacker page can cause the user's identity to be sent to the attacker's site without the consent popup that would normally appear when the login button is not visible. In the reproduction, the tester is logged into a Google Account and clicks a button on the page. and the One Tap demonstration depends on the page being served from localhost:8080, which is an allowed origin in Google One Tap. The platform rates the issue medium severity.
Fix
The report does not state which change fixed the issue.
Variants to test
- Other stacking-order changes after load. Instead of assigning a high z-index, try removing the overlay's z-index, changing its
position, or moving it in the DOM after the observer has fired. A positive result is the observer still reporting the target as visible while the overlay covers it. - Other obscuring mechanisms. Cover the target with an element that is not a simple positioned overlay, for example one introduced later in the document flow or through a different containing block. A positive result is the same stale visible verdict.
- Other consumers of Intersection Observer v2. Look for login widgets, consent prompts, ad-verification scripts and anti-clickjacking checks that branch on the visibility flag. A positive result is a branch that should have shown a consent or warning step being skipped while the element is covered.
- Bisect around the feature flag. Run the same
bisect-builds.pyinvocation with--enable-features=IntersectionOptimizationagainst other version ranges to see whether the behaviour appears or disappears with the flag. A positive result is the reproduction tracking the flag rather than the version alone.
What happened, in plain words
Imagine a shop assistant who is told to check whether a customer can actually see a product on a shelf. The assistant looks once, writes down "yes, visible", and then never looks again. If someone later slides a big cardboard box in front of the product, the assistant's note still says "visible". Anyone who trusts that note will behave as if the customer can see the product, even though they cannot.
That is the shape of this bug, but inside a web browser. Chrome has a feature called Intersection Observer v2. A web page can ask the browser a question: "is this part of my page actually visible to the person looking at the screen, or is something covering it?" Websites use the answer to protect users. For example, a login button might only send your identity to a site if the browser confirms the button is genuinely visible and not hidden behind something else. That protection is called clickjacking defence: it stops a malicious page from putting an invisible or covered button under your mouse so that your click lands somewhere you did not intend.
The researcher, Luan Herrera (@lbherrera_), found that Chrome's answer to that question can be made stale. An attacker first puts a covering element (an overlay) underneath the target, so the browser correctly says "visible". Then, after the page has loaded, the attacker moves the overlay on top of the target. The browser keeps saying "visible" even though the target is now covered. Any website that trusts that answer, including the Google One Tap login SDK, can be tricked.
The issue was reported through the Chrome VRP (Google's bug bounty programme for Chrome), rated medium severity, and a bounty of 5000.00 USD was awarded. It was disclosed on 2026-02-10 as CVE-2026-2316. The affected component is listed as Frames, and the weakness class is insufficient policy enforcement.
The pieces you need to know first
Before walking through the report, here are the ideas it leans on, explained from scratch.
- API (Application Programming Interface): a set of rules that lets one piece of software ask another piece of software to do something or tell it something. A restaurant menu is a fair comparison: you do not go into the kitchen, you order from the menu and the kitchen answers. In a browser, JavaScript on a web page calls browser APIs to ask questions like "how big is this element?" or "is it visible?".
- Intersection Observer: a browser API that lets a page watch an element and be told when it enters or leaves the visible area of the screen (the viewport). It is commonly used for lazy-loading images or triggering animations when something scrolls into view.
- Intersection Observer v2: an extension of that API. Besides telling the page whether the element is in the viewport, it can report whether the element is actually visible to the user, meaning not covered by other content and not distorted by transformations that would make the reported position misleading. The report calls this the visibility flag.
- iframe: a way to embed one web page inside another, like a small window showing another site's content. The embedded page is the target iframe in this report.
- Overlay: an element drawn on top of (or underneath) other content. Think of a sticker placed on a photo: depending on where you stick it, it can hide part of the picture.
- z-index: a CSS property that decides which element is drawn in front when elements overlap. A higher number means "closer to the viewer". A very negative number like
-9999pushes an element behind almost everything else. The ordering of overlapping elements is called the stacking order. - Clickjacking: an attack where a malicious page tricks you into clicking something you did not mean to click, often by placing an invisible or disguised button over a real one. Defences try to confirm that what you click is what you see.
- CVE: a public identifier for a known security flaw, so people can talk about the same issue unambiguously. CVE-2026-2316 is the identifier for this one.
- Bisect: a debugging technique that narrows down when something changed by testing the middle of a range, then the middle of the remaining half, and so on. It is like finding which day a parcel went missing by checking the tracking history halfway through the journey.
- Feature flag: a switch inside a browser build that turns an experimental feature on or off.
IntersectionOptimizationis the flag named in this report.
Setup
The researcher tested on these versions:
| Channel | Version |
|---|---|
| Stable | 137.0.7151.69 |
| Canary | 139.0.7219.0 |
Operating system: macOS 14.1.1 (23B81).
"Stable" is the normal Chrome everyone uses; "Canary" is the experimental early build. Testing on both shows the bug is not limited to one channel.
The reproduction needs a set of local files served over HTTP on port 8080. The port matters: localhost:8080 has been added as an allowed origin in Google One Tap, which is required for the One Tap part of the proof of concept to work. In plain terms, Google One Tap only trusts pages served from certain addresses, and localhost:8080 is one of them, so the demonstration has to run there.
The files to download are bypass.html, expected-no-overlay.html, expected-overlay.html, frame.html, gis.html, google-clickjacking.html and cat.jpg. They all go into the same folder, which is then served by a web server on port 8080. Serving them over HTTP on port 8080 is required because that origin is allowed in Google One Tap.
For the Google One Tap demonstration, the tester must be logged into a Google Account, because the whole point is to show that the user's identity can be leaked.
Finding it
The starting point was research into variations of issue 333708039. While working on that, the researcher found that Intersection Observer v2 does not correctly account for stacking-order changes made after the initial observation. The observer still reports the iframe as visible after the overlay is raised above it.
Why is that wrong? The API's whole job is to report whether the target is visible to the user. Once the overlay has been raised above the iframe, the iframe is covered, yet the observer still reports it as visible. Any application that relies on this API to decide whether a click could have come from a genuine user interaction is therefore exposed.
Exploitation
Step 1: create the overlay below the target
The attacker creates an overlay element with z-index: "-9999", positioned below the target iframe. The very negative number places the overlay below the target iframe.
Step 2: let the target observe itself
The target iframe uses Intersection Observer v2 for visibility detection. In other words, the embedded page uses the API to detect its own visibility.
Step 3: the observer reports visible
Because the overlay is below the iframe in the stacking order, the observer correctly reports the iframe as visible at this point. Nothing is wrong yet: the iframe really is visible.
Step 4: raise the overlay
After the page has loaded, the attacker changes the overlay's z-index from JavaScript:
overlay.style.zIndex = "9999";
Line by line: overlay is the overlay element the page created in step 1. .style reaches into that element's inline styling. .zIndex = "9999" sets the stacking number to a large positive value. The result is that the overlay jumps from behind the iframe to in front of it. This single assignment moves the overlay above the iframe in the stacking order. Removing the z-index entirely is described as an alternative way to bring the overlay above the target.
Why do it after load? Because the observer has already made up its mind by then. The attacker is not changing what the browser sees first; they are changing the page afterwards, hoping the earlier verdict sticks.
Step 5: the overlay covers the iframe
The overlay now sits above the iframe and obscures it. To a human looking at the screen, the login button is hidden.
Step 6: the observer still reports visible
The observer continues to report the iframe as visible even though it is now covered. This stale verdict is the core of the bug. The browser's answer no longer matches what is actually on screen.
Verifying the core behaviour
The researcher provides three pages to compare the expected and actual behaviour:
http://localhost:8080/expected-overlay.htmlshows how the API behaves when the target iframe is covered by an overlay. It should show a red background.http://localhost:8080/expected-no-overlay.htmlshows how the API behaves when there is no overlay. It should show a green background.http://localhost:8080/bypass.htmlreproduces the issue. Even though the iframe is covered by an overlay, the background still appears green.
Why three pages? The first two are controls: one shows what "covered" should look like (red), the other shows what "not covered" should look like (green). The third is the attack. If it shows green while the iframe is covered, the API has been fooled.
The Google One Tap case
The report names the Google One Tap SDK as a real application that relies on this API. The SDK embeds an iframe that uses Intersection Observer v2 to check whether its login button is visible to the user when it is clicked. If the login button is not visible, the SDK shows a popup asking for the user's consent to log in to the website. If the login button is visible, it immediately sends the user's identity to the website. That difference is what the attacker abuses: by making the API believe the button is visible while it is actually covered, the attacker gets the identity sent without the consent prompt.
To reproduce it:
- Make sure you are logged into your Google Account.
- Navigate to
http://localhost:8080/google-clickjacking.htmland click the button. - The identity is leaked to the attacker's page.
The researcher also attached two videos, repro-core.mov for the core attack and repro-tap.mov for the Google One Tap SDK attack.
Root cause
The report attributes the regression to a specific change. An initial bisect showed the issue did not reproduce on version 120.0.6099.56 (stable) and did reproduce on version 121.0.6167.75 (stable). The commit identified as responsible is:
https://chromium.googlesource.com/chromium/src/+/[redacted]
That commit enabled the IntersectionOptimization feature. Running the bisect again with the feature explicitly enabled narrowed the range:
python3 bisect-builds.py -a mac -g m120 -b m121 --verify-range -- --enable-features=IntersectionOptimization --no-first-run --user-data-dir=/tmp http://localhost:8080/bypass.html
Line by line: python3 runs the Python interpreter. bisect-builds.py is the script that downloads and tests Chrome builds to find where behaviour changed. -a mac says the platform is macOS. -g m120 sets the good (working) milestone to 120. -b m121 sets the bad (broken) milestone to 121. --verify-range asks the script to confirm the range before narrowing. Everything after the standalone -- is passed through to Chrome itself: --enable-features=IntersectionOptimization turns the feature flag on, --no-first-run skips the first-run setup screens, --user-data-dir=/tmp uses a throwaway profile folder so the test does not touch the real one, and http://localhost:8080/bypass.html is the page to load.
The narrowed range is:
https://chromium.googlesource.com/chromium/src/+log/[redacted]..[redacted]
Investigating that range led to the commit that introduced the issue:
https://chromium.googlesource.com/chromium/src/+/[redacted]
The report does not describe the contents of that commit. What the reproduction shows is that the observer still reports the iframe as visible after the overlay covers it. Existing defences that depend on this API, such as the consent gate in Google One Tap, inherit the stale verdict and therefore do not stop the attack.
Impact
Any application that relies on Intersection Observer v2 to prevent clickjacking is vulnerable. The concrete example in the report is the Google One Tap SDK: an attacker page can cause the user's identity to be sent to the attacker's site without the consent popup that would normally appear when the login button is not visible. In the reproduction, the tester is logged into a Google Account and clicks a button on the page. and the One Tap demonstration depends on the page being served from localhost:8080, which is an allowed origin in Google One Tap. The platform rates the issue medium severity.
Fix
The report does not state which change fixed the issue.
Variants to test
- Other stacking-order changes after load. Instead of assigning a high z-index, try removing the overlay's z-index, changing its
position, or moving it in the DOM after the observer has fired. A positive result is the observer still reporting the target as visible while the overlay covers it. - Other obscuring mechanisms. Cover the target with an element that is not a simple positioned overlay, for example one introduced later in the document flow or through a different containing block. A positive result is the same stale visible verdict.
- Other consumers of Intersection Observer v2. Look for login widgets, consent prompts, ad-verification scripts and anti-clickjacking checks that branch on the visibility flag. A positive result is a branch that should have shown a consent or warning step being skipped while the element is covered.
- Bisect around the feature flag. Run the same
bisect-builds.pyinvocation with--enable-features=IntersectionOptimizationagainst other version ranges to see whether the behaviour appears or disappears with the flag. A positive result is the reproduction tracking the flag rather than the version alone.
Glossary
- API: a set of rules that lets one piece of software ask another to do something or report something, without needing to know how the other works internally.
- Bisect: a technique that repeatedly tests the middle of a range to narrow down where a change happened.
- Bounty: a reward paid by a company for a security report it accepts.
- Canary: an experimental early build of Chrome used for testing.
- Clickjacking: an attack that tricks a user into clicking something they did not intend, often by hiding or disguising the real target.
- Commit: a recorded change to a codebase, with an identifier and history.
- CVE: a public identifier for a known security flaw.
- Feature flag: a switch inside a software build that turns an experimental feature on or off.
- Frames: the Chrome component that handles embedded frames (iframes) and related behaviour.
- iframe: an embedded web page shown inside another web page.
- Insufficient policy enforcement: a weakness class where a system has a rule but does not enforce it reliably.
- Intersection Observer: a browser API that reports when an element enters or leaves the visible area of the screen.
- Intersection Observer v2: an extension of that API that also reports whether an element is actually visible to the user, not covered or misleadingly transformed.
- IntersectionOptimization: the Chrome feature flag that the report ties to the regression.
- localhost: the address a computer uses to talk to itself;
localhost:8080means port 8080 on the local machine. - Origin: the combination of scheme, host and port that identifies a website to the browser;
localhost:8080is one origin. - Overlay: an element drawn over (or under) other content.
- Port: a numbered channel on a computer that a network service listens on; 8080 is a common choice for local testing.
- Regression: a bug introduced by a change that previously worked.
- SDK: a software development kit, a bundle of code that developers use to add a feature to their site.
- Stacking order: the order in which overlapping elements are drawn, controlled by properties such as z-index.
- Stable: the normal release channel of Chrome.
- Viewport: the visible area of the browser window.
- Visibility (Intersection Observer v2): the API's report of whether a target is actually visible to the user, not obscured.
- z-index: a CSS property that sets an element's position in the stacking order; higher numbers are drawn in front.
- Zero-day / disclosure: the public release of details about a fixed vulnerability; here the report was disclosed on 2026-02-10.