Skip to content
Info disclosure Advisory Advanced CVE-2026-121255

Incorrect authorization in Autofill AI (CVE-2026-121255)

The Autofill AI suggestion generator checked a saved order or shipment entity's merchant domain against the top-level page URL rather than the origin of the frame containing the trigger field. A cross-origin iframe on a merchant page could therefore be offered the merchant's saved order or shipment suggestions and read the plaintext values once previewed or filled.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 3 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 domain-affiliation gate for AutofillAI order and shipment suggestions incorrectly matches domain requirements against the top-level main frame's URL instead of the trigger field's actual origin. Consequently, a cross-origin iframe embedded on a merchant page can receive the top-level merchant's sensitive order or shipment suggestions. An attacker can then exfiltrate this sensitive information upon suggestion preview or selection.

Affected files:

  • components/autofill/core/browser/suggestions/autofill_ai/autofill_ai_suggestion_generator.cc

Estimated timestamp from git blame: 2026-06-25

Root Cause Analysis

Inside components/autofill/core/browser/suggestions/autofill_ai/autofill_ai_suggestion_generator.cc, IsAllowedForPageUrl() decides whether a stored kOrder or kShipment entity may be offered as a primary suggestion by PSL-matching the entity's stored merchant/carrier domain against a caller-supplied page_url:

C++
// components/autofill/core/browser/suggestions/autofill_ai/autofill_ai_suggestion_generator.cc:717-734
bool IsAllowedForPageUrl(const EntityInstance& entity, const GURL& page_url) {
  std::optional<AttributeType> domain_attr_type =
      GetDomainFilterAttributeType(entity.type());
  if (!domain_attr_type) {
    return true;
  }
  base::optional_ref<const AttributeInstance> domain_attr =
      entity.attribute(*domain_attr_type);
  if (!domain_attr) {
    return false;
  }
  const std::u16string domain_val = domain_attr->GetCompleteRawInfo();
  if (domain_val.empty()) {
    return false;
  }
  return affiliations::IsExtendedPublicSuffixDomainMatch(
      GetGURLFromDomain(domain_val), page_url, {});
}

However, the callers pass the top-level main frame's URL, instead of the trigger field's frame origin:

C++
// components/autofill/core/browser/suggestions/autofill_ai/autofill_ai_suggestion_generator.cc:1108-1113
  std::vector<const EntityInstance*> entities = GetEntitiesForSuggestion(
      GetFillableEntityInstances(client),
      AttributeTypeAssignment(form_structure->fields(),
                              trigger_autofill_field->section()),
      trigger_field.global_id(), client.GetAppLocale(),
      client.GetLastCommittedPrimaryMainFrameURL());

Because ChromeAutofillClient is a per-WebContents singleton, client.GetLastCommittedPrimaryMainFrameURL() returns the primary main frame's URL regardless of which frame the trigger field resides in (chrome/browser/ui/autofill/chrome_autofill_client.cc:699-701).

Although the actual browser-validated trigger origin is available browser-side via trigger_field.origin() (components/autofill/core/common/form_field_data.h), it is never checked by AutofillAiSuggestionGenerator when determining whether a domain-constrained entity should be suggested.

A sibling implementation, the loyalty card generator (components/autofill/core/browser/suggestions/valuables/valuable_suggestion_generator.cc:325-332), correctly verifies both the top-level main frame's URL domain matching and that the primary main frame origin matches the trigger_field.origin():

C++
auto non_affiliated_cards = std::ranges::stable_partition(
    all_loyalty_cards, [&](const LoyaltyCard& card) {
      return card.GetAffiliationCategory(
                 client.GetLastCommittedPrimaryMainFrameURL()) ==
                 LoyaltyCard::AffiliationCategory::kAffiliated &&
             client.GetLastCommittedPrimaryMainFrameOrigin() ==
                 trigger_field.origin();
    });

Potential Attack Scenario / Steps to Trigger

(Note: These are potential steps as our tooling does not currently run a live proof of concept)

  1. User Profile State: A victim has a saved EntityInstance of type EntityTypeName::kOrder with kOrderMerchantDomain set to "amazon.com" (e.g. automatically synced via Gmail or standard order import).
  2. Attacker Setup: The attacker hosts a page on https://attacker.example that includes a form styled and labeled to trigger ORDER_ID (FieldType value 208) classification.
  3. Insertion: The target site https://amazon.com embeds https://attacker.example/frame.html as a cross-origin third-party iframe (e.g. through an ad slot).
  4. Trigger: The victim navigates to https://amazon.com and interacts with (clicks/taps) the attacker's order-ID input field.
  5. Domain Check Defeat: Autofill AI matches the user's saved "amazon.com" entity against the main frame's URL (https://amazon.com) instead of the iframe's origin (https://attacker.example). The Amazon order suggestion is shown to the user inside the iframe.
  6. Preview/Fill: The user either hovers to preview or clicks to accept the suggestion. Because kOrder and kShipment entities have empty "obfuscated attributes" (entity_schema.json), the plaintext Order ID or Tracking Number is populated into the field.
  7. Iframe Fill Policy Bypass: AutofillDriverRouter::IsSafeToFill permits the filling action because the field origin matches the trigger origin (both are https://attacker.example).
  8. Exfiltration: JavaScript on the attacker's iframe reads the plaintext input value and exfiltrates it.

Suggested Fix

To remediate this issue, modify IsAllowedForPageUrl() or its callers in autofill_ai_suggestion_generator.cc to ensure that domain-constrained entity types are strictly validated against both the top-level main-frame URL (for affiliation checks) and the trigger field's origin trigger_field.origin() (or the client's GetLastCommittedPrimaryMainFrameOrigin() if the target field is expected to be top-level only), matching the security posture applied to valuables/loyalty cards.

Evaluated with Chrome root at commit: 94d9235ebe3b7276e5284f0dc5d55577ff949908


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-affiliation check is given the primary main frame URL from the per-WebContents client instead of the trigger field's own origin, so a cross-origin frame inherits the top-level site's authorisation.

Impact

A cross-origin iframe could obtain and exfiltrate the user's saved order IDs or tracking numbers for the hosting merchant, though the report notes the steps are potential and no live proof of concept was run.

What the attacker needed

Victim has a saved order or shipment entity; attacker page embedded as cross-origin iframe; victim interacts with the attacker's field; victim previews or accepts the suggestion

The fix

The check should validate domain-constrained entities against both the top-level main frame URL and the trigger field's origin, as the loyalty card generator already does.

How it was found

  1. A victim has a saved order entity whose merchant domain is a well-known shop.
  2. The attacker hosts a page with a form field crafted to be classified as an order ID.
  3. The shop page embeds the attacker's page as a cross-origin iframe, for example through an ad slot.
  4. The victim visits the shop page and interacts with the attacker's order-ID field.
  5. The domain check passes against the top-level shop URL, so the shop's order suggestion appears inside the iframe.
  6. The victim previews or accepts the suggestion, the plaintext value is filled, and the iframe's script reads and exfiltrates it.

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.

Browsers can save details like order numbers and offer them back in forms. This code decided whether to offer them by looking at the address of the whole page, not the address of the small embedded frame where the form field actually sits. So a frame from another site, placed on a shop's page, could be handed the shop's saved order details and read them.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.