Skip to content
Misconfiguration Advisory Advanced CVE-2026-13987

Incorrect security UI in Mobile (CVE-2026-13987)

A logic error in TabImpl causes an attacker-set theme-color to persist after a page's security level is downgraded to DANGEROUS, preventing security indicators from showing their red warning tint. An attacker could make a dangerous page appear secure by keeping the toolbar branded and the security icons neutral.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 45 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 error in TabImpl allows an attacker-set theme-color to persist even after a page's security level is downgraded to DANGEROUS. This causes the Android toolbar to retain the attacker-chosen color and prevents security indicators from displaying their critical red warning tint. The issue stems from a value-equality short-circuit that suppresses UI re-evaluation during post-commit security state changes.

Affected files:

  • chrome/android/java/src/org/chromium/chrome/browser/tab/TabImpl.java
  • chrome/android/java/src/org/chromium/chrome/browser/tab/TabThemeColorHelper.java
  • chrome/browser/ui/android/theme/java/src/org/chromium/chrome/browser/theme/TopUiThemeColorProvider.java
  • chrome/browser/ui/android/toolbar/java/src/org/chromium/chrome/browser/toolbar/LocationBarModel.java

Estimated timestamp from git blame: 2022-01-17

Technical Analysis

A potential vulnerability exists in Chrome for Android where a page-supplied <meta name="theme-color"> remains active after a security downgrade to DANGEROUS. This state occurs when a page initially committed as SECURE subsequently loads active content (like a script) from a host with certificate errors that the user has previously bypassed.

The issue is located in the interaction between TabImpl.java and its observers:

  1. Early Return in TabImpl.updateThemeColor: When a security downgrade occurs, TabThemeColorHelper triggers an update by passing the currently cached theme color back to TabImpl.updateThemeColor(int themeColor). Inside this method, a check if (mThemeColor == themeColor) return; (line 1945) causes an early exit if the color value itself hasn't changed.
  2. Suppressed Notifications: Because of the early return, TabImpl fails to fire the onDidChangeThemeColor event. Observers like TopUiThemeColorProvider—which are responsible for reverting the toolbar to the default system color when tab.isThemingAllowed() returns false—are never notified to re-evaluate the tab's state.
  3. Degraded Security Indicators: When the toolbar remains in a 'branded' (custom color) state, LocationBarModel modifies the appearance of security indicators to maintain visual contrast:
    • getSecurityIconColorWithSecurityLevel (line 845) returns a neutral (grey/white) tint instead of R.color.default_red because the color scheme is not APP_DEFAULT.
    • shouldEmphasizeHttpsScheme (line 580) returns false when a brand color is in use, causing OmniboxUrlEmphasizer to render the struck-through 'https' prefix in a neutral color rather than red.

Potential Reproduction Steps

These are suggested steps based on code analysis; a functional proof of concept has not yet been executed.

  1. User visits https://bad-cert.test and chooses to "Proceed" through the SSL interstitial, adding the host to the session's exception list.
  2. User navigates to https://attacker.test (valid certificate), which specifies a theme color: <meta name="theme-color" content="#1a73e8">.
  3. The toolbar turns blue. The security state is SECURE.
  4. The attacker's page dynamically loads a script from the previously bypassed host: <script src="https://bad-cert.test/script.js"></script>.
  5. The security level is downgraded to DANGEROUS due to active mixed content/cert errors.
  6. Observed Result: The toolbar remains blue. The "dangerous" triangle icon and the struck-through 'https' in the omnibox appear in neutral white/grey instead of the expected red warning color.

Suggested Fix

Modify TabImpl.updateThemeColor to ensure observers are notified when the security state changes, even if the color value remains the same. Alternatively, TopUiThemeColorProvider and LocationBarModel should listen directly to SSL state changes and re-verify isThemingAllowed() independently of color change events.

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 a value-equality short-circuit in TabImpl.updateThemeColor suppresses observer notifications when the theme colour value has not changed, even though the security state has.

Impact

An attacker could make a dangerous page appear secure by keeping the toolbar branded and the security indicators neutral, potentially deceiving users.

What the attacker needed

User bypasses SSL interstitial for a host; Attacker page with valid certificate; Attacker page loads script from bypassed host

The fix

Modify TabImpl.updateThemeColor to notify observers on security state changes even if the colour value is unchanged, or have TopUiThemeColorProvider and LocationBarModel listen directly to SSL state changes.

How it was found

  1. User visits a site with a bad certificate and proceeds through the interstitial.
  2. User navigates to an attacker page with a valid certificate that sets a theme color.
  3. The toolbar turns blue and the security state is SECURE.
  4. The attacker page loads a script from the previously bypassed bad-certificate host.
  5. The security level is downgraded to DANGEROUS.
  6. The toolbar remains blue and the security indicators appear neutral instead of red.

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 website is dangerous, the browser usually shows a red warning. Here, a bug stops the browser from updating the toolbar colour, so the warning stays grey instead of red. This could trick someone into thinking a dangerous page is safe.

What is Misconfiguration?

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.