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

Inappropriate implementation in Autofill (CVE-2026-17777)

A logic flaw in Chrome's Autofill system allows standalone Card Verification Code (CVC) fields to be saved in the Autocomplete history in plaintext. An attacker could then retrieve the stored CVC on a different origin by using a matching input field name, potentially disclosing the code to scripts on that site.

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 logic flaw in Chrome's Autofill system fails to exclude standalone CVC fields from the Autocomplete history. This allows sensitive Card Verification Codes (CVCs) to be persisted in plaintext and subsequently disclosed to cross-origin sites that use matching input field names.

Affected files:

  • components/autofill/core/browser/foundations/browser_autofill_manager.cc
  • components/autofill/core/browser/suggestions/autocomplete_suggestion_generator.cc
  • components/autofill/core/browser/single_field_fillers/autocomplete/autocomplete_history_manager.cc
  • components/autofill/core/browser/form_structure_rationalizer.cc

Estimated timestamp from git blame: 2022-08-12

Summary

A potential logic flaw in Chrome's Autofill system allows Card Verification Codes (CVCs) from standalone fields—commonly used in re-authentication or "card-on-file" flows—to be saved into the Autocomplete history. Because Autocomplete storage is not origin-scoped and the exclusion lists are inconsistent, this sensitive data can be disclosed to cross-origin sites that present an input field with a matching name.

Technical Analysis

1. Incomplete Exclusion Guard in BrowserAutofillManager

During form submission, BrowserAutofillManager::MaybeImportFromSubmittedForm identifies fields that should be excluded from Autocomplete storage. A guard is intended to prevent CVCs from being saved by setting should_autocomplete to false. However, this guard only checks for the CREDIT_CARD_VERIFICATION_CODE type and fails to account for the CREDIT_CARD_STANDALONE_VERIFICATION_CODE type.

C++
// components/autofill/core/browser/foundations/browser_autofill_manager.cc:631
if (autofill_field->Type().GetCreditCardType() == CREDIT_CARD_VERIFICATION_CODE) {
  // Standalone CVC types (CREDIT_CARD_STANDALONE_VERIFICATION_CODE) bypass this check.
  field.set_should_autocomplete(false);
}

2. Automatic Conversion to Standalone CVC

In forms used for re-authentication (e.g., a single CVC field), FormStructureRationalizer converts standard CVC fields into the CREDIT_CARD_STANDALONE_VERIFICATION_CODE variant. While this ensures correct classification for Autofill, it inadvertently causes the field to bypass the exclusion check described above.

3. Inconsistent Name-Based Filtering

Fields that bypass the type-based guard are subsequently evaluated by AutocompleteHistoryManager::IsFieldValueSaveable. This manager uses a name-based blocklist (IsFieldNameMeaningfulForAutocomplete) that includes substrings like cvc, cvn, or cvv.

However, Chrome's heuristic parser for CVC fields (kCardCvcRe) matches a much broader range of names, such as securityCode, csc, ccv, or verificationCode. Fields with these names are correctly classified as CVCs by the browser but are not blocked by the Autocomplete manager's name filter, resulting in the CVC value being persisted in plaintext to the autofill table of the Web Data database.

4. Cross-Origin Disclosure via Suggestions

Autocomplete storage is keyed only by field name and value, without origin scoping. When a user interacts with a field on a different origin that uses a matching name (e.g., securityCode), AutocompleteSuggestionGenerator::GenerateSuggestions retrieves the stored value. This generator also fails to block the CREDIT_CARD_STANDALONE_VERIFICATION_CODE type, allowing the sensitive CVC to be offered as a suggestion.

Potential Reproduction Steps

  1. Navigate to a site (Origin A) with a single-field CVC re-authentication form where the input name is securityCode (e.g., <input name="securityCode">).
  2. Enter a CVC value and submit the form.
  3. The value is potentially saved to the local profile's Web Data database in the autofill table.
  4. Navigate to a different origin (Origin B) that contains an <input name="securityCode"> field.
  5. Click on the input field. The previously entered CVC may be offered as an Autocomplete suggestion.
  6. Selecting the suggestion populates the CVC into the page, where it can be read by scripts on Origin B.

Note: These steps are based on a source code analysis; the behavior should be verified in a running environment.

Suggested Fix

  1. Update the exclusion guards in BrowserAutofillManager::MaybeImportFromSubmittedForm and AutocompleteSuggestionGenerator::GenerateSuggestions to include CREDIT_CARD_STANDALONE_VERIFICATION_CODE.
  2. Synchronize the name-based blocklist in AutocompleteHistoryManager::IsFieldNameMeaningfulForAutocomplete with the regexes used in kCardCvcRe to ensure consistent blocking of CVC-related field names.

Evaluated with Chrome root at commit: b3153093eb3c78c3e88ccf562bcbc20437a04b0e


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 exclusion checks for Autocomplete storage and suggestions only test for the standard CVC type and miss the standalone CVC type, while the name-based blocklist is narrower than the CVC name parser.

Impact

A CVC entered on one origin could be disclosed to a different origin if the user selects the stored suggestion, though the report notes the behaviour is based on source code analysis and should be verified.

What the attacker needed

User enters a CVC in a standalone field; field name matches a CVC pattern not blocked; user later visits a different origin; user selects the stored suggestion

The fix

The exclusion guards should be updated to include the standalone CVC type, and the name-based blocklist should be synchronised with the CVC name parser.

How it was found

  1. Navigate to a site with a single-field CVC re-authentication form where the input name is securityCode.
  2. Enter a CVC value and submit the form.
  3. The value is potentially saved to the local profile's Web Data database in the autofill table.
  4. Navigate to a different origin that contains an input field with the same name.
  5. Click on the input field; the previously entered CVC may be offered as an Autocomplete suggestion.
  6. Selecting the suggestion populates the CVC into the page, where it can be read by scripts on that origin.

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 you type a card security code (CVC) into a form, Chrome sometimes remembers it to suggest later. This report found that for certain field names, Chrome saves the code even though it should not, and because saved suggestions are not tied to the website where you entered them, another website can later show the same code as a suggestion. If you pick that suggestion, the other website's scripts can read the code.

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.