Skip to content
Business logic Advisory Intermediate CVE-2026-87496

UI misrepresentation in Browser (CVE-2026-87496)

The JavaScript optimizations page-action bubble stays open when the tab navigates to a different origin, and the permission is only tied to the current site when the user clicks Allow. An attacker could therefore get a user to grant JIT-hardening exemption to a site the user did not intend to authorise.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 4 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: The JavaScript optimizations page-action bubble persists across cross-origin navigations, which may allow a user to inadvertently grant V8 JIT permissions to an unintended site. This occurrs because the controller fails to close the bubble upon navigation and resolves the target origin only at the moment the 'Allow' button is clicked.

Affected files:

  • chrome/browser/ui/views/js_optimization/js_optimizations_page_action_controller.cc
  • chrome/browser/site_protection/site_familiarity_utils.cc

Estimated timestamp from git blame: 2025-11-26

Description

A potential logic vulnerability exists in JsOptimizationsPageActionController where the page-action bubble (the 'JavaScript optimization is off' dialog) persists across cross-origin navigations. Because the controller does not close the bubble upon navigation and resolves the target origin only when the 'Allow' button is clicked, an attacker could potentially trick a user into disabling JIT-hardening for an unintended origin.

Technical Details

The JsOptimizationsPageActionController is a tab-scoped feature that monitors site familiarity to determine if V8 optimizations should be disabled as a security mitigation (JIT hardening for unfamiliar sites). When optimizations are disabled, a chip and bubble are shown in the omnibox.

  1. Persistence across Navigation: In JsOptimizationsPageActionController::PrimaryPageChanged (lines 61-64), the controller calls UpdateIconVisibility() but does not close the active bubble_ widget. Since the bubble is managed by the controller and not automatically dismissed by the navigation framework, it remains visible to the user even after the site origin changes.

  2. Late Origin Binding: The bubble's OK button is bound to EnableV8Optimizations() (lines 114-117). When clicked, this function calls site_protection::EnableV8Optimizations(web_contents()) (line 143).

  3. Incorrect Write Target: The helper function site_protection::EnableV8Optimizations (in chrome/browser/site_protection/site_familiarity_utils.cc:156-176) retrieves the current site URL via web_contents()->GetSiteInstance()->GetSecurityPrincipal().GetDeprecatedSiteURL(). If a navigation occurred after the bubble was opened but before the button was clicked, the CONTENT_SETTING_ALLOW for JAVASCRIPT_OPTIMIZER is persisted for the post-navigation site's origin.

The bubble strings are origin-agnostic (e.g., 'JavaScript optimization is off', 'Allow for this site'), so the user has no visual indication that the target of the permission grant has changed due to the background navigation.

Potential Attack Scenario

Note: These are suggested steps based on code analysis; our tooling has not yet executed a proof of concept.

  1. The user navigates to an unfamiliar origin (e.g., https://attacker-a.test/). The 'JavaScript optimizations disabled' chip appears in the omnibox.
  2. The user clicks the chip to open the bubble.
  3. While the bubble is open, the attacker page executes a navigation (e.g., location.replace('https://attacker-b.test/')) to a different unfamiliar origin.
  4. The bubble remains open despite the navigation. If the user clicks 'Allow for this site', the permission is granted to https://attacker-b.test/ instead of the original site.

Impact

This issue could allow an attacker to bypass the site-protection JIT-hardening defense-in-depth mitigation for an arbitrary origin. While it does not grant direct access to sensitive data, it enables an attacker to permanently exempt a target origin from JIT-hardening protections by exploiting a stale UI state. The impact is primarily on users with Enhanced Safe Browsing enabled.

Recommended Fix

  1. Modify JsOptimizationsPageActionController::PrimaryPageChanged to close the active bubble_ if it exists. This ensures the dialog does not persist across navigations.
  2. When creating the bubble in CreateBubble, the current site URL should be snapshotted and passed to the EnableV8Optimizations callback, ensuring the permission is granted to the origin the user actually intended to authorize.

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.

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 controller does not dismiss the bubble on navigation and reads the target origin only when the Allow button is clicked, so the permission is written for whatever site is loaded at that moment.

Impact

This could let an attacker bypass the JIT-hardening defence-in-depth mitigation for an arbitrary origin, mainly affecting users with Enhanced Safe Browsing enabled; it does not grant direct access to sensitive data.

What the attacker needed

Enhanced Safe Browsing enabled; victim visits an unfamiliar origin; victim opens the bubble and clicks Allow; attacker page navigates while bubble is open

The fix

The controller should close the active bubble on navigation and snapshot the site URL when the bubble is created so the permission is granted to the origin the user intended.

How it was found

  1. The user visits an unfamiliar origin and the JavaScript optimizations disabled chip appears.
  2. The user clicks the chip to open the bubble.
  3. The page navigates to a different unfamiliar origin while the bubble is open.
  4. The bubble remains open and the user clicks Allow for this site.
  5. The permission is granted to the new origin instead of the original one.

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 browser sometimes shows a small pop-up asking whether to allow a feature for the current website. This report says that pop-up does not close when the page changes to a different website, so clicking Allow can give the permission to the new site instead of the one shown when the pop-up opened. The result is that a user can be tricked into weakening a security protection for the wrong site.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.