Skip to content
XSS Advisory Advanced CVE-2026-18008

Inappropriate implementation in Settings (CVE-2026-18008)

The sign-out confirmation dialog in chrome://settings inserts the account email domain into an HTML template without escaping, then binds it to the DOM. An attacker who could forge the profile response from the network process could inject hyperlinks into this trusted settings page.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 50 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 potential HTML/link injection vulnerability exists in the chrome://settings sign-out confirmation dialog on non-ChromeOS desktop platforms. The dialog's helper function interpolates the account domain name verbatim into an HTML template block without escaping, which is then bound to the DOM using inner-h-t-m-l after basic subset sanitization. An attacker who compromises the network process could forge a user profile response to inject arbitrary hyperlinks into this trusted settings UI surface.

Affected files:

  • chrome/browser/resources/settings/people_page/signout_dialog.ts
  • chrome/browser/resources/settings/people_page/signout_dialog.html

Estimated timestamp from git blame: 2016-06-29

Description

A potential HTML link injection vulnerability has been identified in the chrome://settings sign-out confirmation dialog. Due to a lack of escaping on the user's primary account email domain name, unescaped HTML tags can be interpolated directly into a localized UI string and subsequently bound to the DOM.

Root Cause

In chrome/browser/resources/settings/people_page/signout_dialog.ts (lines 132-136), the getDisconnectExplanationHtml_ function constructs an HTML fragment to display the domain name managing the current account:

TypeScript
private getDisconnectExplanationHtml_(domain: string): TrustedHTML {
  if (domain) {
    return sanitizeInnerHtml(loadTimeData.getStringF(
        'syncDisconnectManagedProfileExplanation', `<span>${domain}</span>`));
  }
  ...
}

This fragment is rendered via Polymer's inner-h-t-m-l in chrome/browser/resources/settings/people_page/signout_dialog.html (lines 24-26):

HTML
<div inner-h-t-m-l="[[
    getDisconnectExplanationHtml_(syncStatus.domain)]]">
</div>

The syncStatus.domain property originates from the browser process backend in PeopleHandler::GetSyncStatusDictionary() (chrome/browser/ui/webui/settings/people_handler.cc):

C++
if (enterprise_util::UserAcceptedAccountManagement(profile_) &&
    !primary_account_info.email.empty()) {
  sync_status.Set("domain",
                  gaia::ExtractDomainName(primary_account_info.email));
}

gaia::ExtractDomainName in google_apis/gaia/gaia_auth_util.cc extracts the substring following the @ separator in the canonicalized email address. Crucially, the domain component is not sanitized or stripped of HTML characters, undergoing only simple ASCII lowercasing.

While the WebUI's sanitizeInnerHtml uses parseHtmlSubset to prevent script execution, its static allowlist permits SPAN and A elements. It also allows href attributes starting with https:// or chrome:// schemes. An attacker with the ability to inject custom HTML inside the domain name parameter can therefore introduce fully functional hyperlinks and arbitrary styling tags into the trusted Settings UI.

Potential Attack Scenario

(Note: These are potential steps as our tooling does not currently have the environment or capabilities to run and execute a live Proof-of-Concept exploit)

  1. An attacker compromises the network process or performs a position-in-the-middle attack on the Gaia endpoint.
  2. When the browser retrieves user profile info via /userinfo, the attacker returns a response containing a forged email payload containing HTML tags, such as: "email": "[email protected]</span><a href=https://attacker.example>confirm sign-out here</a><span>"
  3. The browser process ingests this email address verbatim and stores it in the account tracker service.
  4. When the user accepted account management conditions navigates to chrome://settings and clicks to turn off sync or sign out, the backend extracts the domain: evil.com</span><a href=https://attacker.example>confirm sign-out here</a><span>.
  5. The sign-out dialog renders, executing getDisconnectExplanationHtml_ and injecting the attacker's <a> tag with its https:// hyperlink into the trusted Settings dialog.

Suggested Remediation

To address this vulnerability, the domain string must be properly HTML-escaped before it is interpolated into the HTML template fragment.

Import the standard htmlEscape helper in chrome/browser/resources/settings/people_page/signout_dialog.ts and wrap the domain parameter before interpolation:

TypeScript
import {htmlEscape} from 'chrome://resources/js/util.js';

private getDisconnectExplanationHtml_(domain: string): TrustedHTML {
  if (domain) {
    return sanitizeInnerHtml(loadTimeData.getStringF(
        'syncDisconnectManagedProfileExplanation', `<span>${htmlEscape(domain)}</span>`));
  }
  ...
}

Evaluated with Chrome root at commit: b2fea2e31df308d0f04e4ae47def4c4f939ee141


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 domain extracted from the account email is interpolated into an HTML string without HTML escaping, and the sanitiser's allowlist still permits span and anchor elements with https links.

Impact

An attacker able to forge the profile response could place a functional hyperlink inside the trusted settings dialog, though script execution is blocked by the subset sanitiser and the scenario was not demonstrated live.

What the attacker needed

Network process compromise or MITM; user accepted account management; victim opens settings and signs out

The fix

The domain should be HTML-escaped with the standard helper before being interpolated into the template.

How it was found

  1. Compromise the network process or perform a position-in-the-middle attack on the Gaia endpoint.
  2. Return a forged userinfo response whose email contains HTML tags.
  3. The browser stores the email verbatim in the account tracker service.
  4. The user who accepted account management opens chrome://settings and starts signing out.
  5. The backend extracts the domain and the dialog renders the injected link.

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's settings page builds part of its sign-out message by pasting in the domain part of your account email. If that text is not cleaned first, someone who can tamper with the data Chrome receives about your account could slip a clickable link into a page users trust. The report is theoretical: no working exploit was run.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.