Skip to content
XSS Advisory Advanced CVE-2026-17939

Inappropriate implementation in Passwords (CVE-2026-17939)

Unescaped affiliation names from the network are interpolated into HTML in the Password Manager WebUI, allowing a compromised network process to inject allow-listed HTML and privileged links. An attacker could perform UI spoofing and trick users into sensitive actions within a trusted Chrome dialog.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 2 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: A potential vulnerability in the Password Manager WebUI allows a compromised network process to inject arbitrary allow-listed HTML and privileged links into disclaimer dialogs. This is caused by the unsafe interpolation of network-supplied affiliation names into a sanitized HTML sink.

Affected files:

  • chrome/browser/resources/password_manager/dialogs/delete_password_disclaimer_dialog.ts
  • chrome/browser/resources/password_manager/dialogs/delete_password_disclaimer_dialog.html
  • components/affiliations/core/browser/lookup_affiliation_response_parser.cc

Estimated timestamp from git blame: Unknown (Google3 checkout)

Summary

A potential security vulnerability exists in the chrome://password-manager WebUI where unescaped, network-controlled affiliation names are injected into the DOM using inner-h-t-m-l. While the WebUI employs a HTML sanitizer (parseHtmlSubset), this sanitizer explicitly allows various formatting tags and <a> tags with chrome:// or https:// schemes. This allows an attacker who has compromised the network process to perform high-fidelity UI spoofing and link injection within a privileged WebUI context.

Root Cause Analysis

The issue stems from the implementation of getDescriptionHtml_() in chrome/browser/resources/password_manager/dialogs/delete_password_disclaimer_dialog.ts. The method takes this.origin (which can contain an affiliation name supplied by the network) and interpolates it into an HTML string that is subsequently passed to i18nAdvanced:

TypeScript
// chrome/browser/resources/password_manager/dialogs/delete_password_disclaimer_dialog.ts
private getDescriptionHtml_(): TrustedHTML {
  // ...
  return this.i18nAdvanced('deletePasswordConfirmationDescription', {
    substitutions: [
      this.origin, // $1: Raw network-supplied string
      `<a href='${this.actionUrl}' target='_blank'>${this.origin}</a>`, // $2: HTML built with raw string
    ],
  });
}

The i18nAdvanced function (in I18nMixin) uses loadTimeData.getStringF to perform positional substitution of the raw strings into the localized template. The resulting string is then passed to sanitizeInnerHtml, which utilizes parseHtmlSubset for validation.

parseHtmlSubset (in ui/webui/resources/js/parse_html_subset.ts) is designed to prevent script execution but explicitly allow-lists several tags (<a>, <b>, <i>, <div>, <span>, <p>, etc.) and allows <a> tags to have href attributes pointing to chrome:// or https:// URLs. Consequently, an attacker can inject tags like </a><b>Spoofed Content</b><a href='chrome://settings/reset'> to break out of the intended link and inject arbitrary content or malicious links.

Potential Trigger Path (Suggested)

  1. Network Response Modification: An attacker, having compromised the sandboxed network process, intercepts a response from the Affiliation Service (e.g., a lookupByHashPrefix request).
  2. Payload Injection: The attacker modifies the group_branding_info.name field in the response to include a malicious HTML payload (e.g., </a><a href='chrome://settings/reset'>Reset Browser Settings).
  3. Data Propagation: The Browser process parses this response and stores the malicious name in the Affiliation Database (SQLite). The data is eventually exposed to the Password Manager WebUI via the chrome.passwordsPrivate API.
  4. UI Interaction: A user navigates to chrome://password-manager/checkup and chooses to delete a credential associated with the compromised affiliation. This triggers the display of the delete-password-disclaimer-dialog.
  5. Injection: The WebUI renders the dialog, processing the malicious origin string through the vulnerable getDescriptionHtml_ path and injecting the attacker's HTML into the DOM via inner-h-t-m-l.

Impact

An attacker can perform sophisticated UI spoofing within the privileged chrome://password-manager interface. This can be used to mislead users into performing sensitive actions (e.g., resetting browser settings or visiting phishing sites) while they believe they are interacting with a trusted Chrome dialog.

Suggested Fix

All substitutions passed to i18nAdvanced should be treated as plain text and escaped before interpolation. Alternatively, the WebUI should avoid using inner-h-t-m-l for strings that incorporate untrusted, network-supplied data.

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

The code interpolates a raw network-supplied affiliation name into an HTML string that is then sanitised with a filter that allows formatting tags and privileged links, rather than escaping it as plain text.

Impact

An attacker could perform UI spoofing within the privileged chrome://password-manager interface to mislead users into sensitive actions, but this requires a compromised network process.

What the attacker needed

Compromised network process; user visits password manager checkup; user deletes credential for affected affiliation

The fix

All substitutions passed to i18nAdvanced should be treated as plain text and escaped before interpolation, or inner-h-t-m-l should not be used for strings that incorporate untrusted network-supplied data.

How it was found

  1. Compromise the sandboxed network process and intercept a response from the Affiliation Service.
  2. Modify the group_branding_info.name field in the response to include a malicious HTML payload.
  3. The Browser process parses the response and stores the malicious name in the Affiliation Database.
  4. A user navigates to chrome://password-manager/checkup and chooses to delete a credential associated with the compromised affiliation.
  5. The WebUI renders the dialog, processing the malicious origin string through the vulnerable getDescriptionHtml_ path and injecting the attacker's HTML into the DOM.

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 part of Chrome's password manager builds a message by pasting in text that comes from the network without cleaning it first. Although a filter blocks scripts, it still lets through formatting tags and links to special Chrome pages, so someone who already controls the network could make the dialog show fake content or dangerous links.

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.