Inappropriate implementation in Autofill (CVE-2026-17879)
A logic flaw in Chrome's form parsing means a standalone card verification code field is not recognised as such when an email field is also present, so it is treated as an unknown field. As a result the plaintext code can be saved to the browser's origin-agnostic autocomplete history and later offered as a suggestion on an attacker's page, where the victim could select it and leak it.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 49 days
Flapjack, 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 form parsing allows standalone CVC fields to bypass type classification if an email field is present. This bypasses security checks that prevent saving CVCs, resulting in the plaintext CVC being saved to the origin-agnostic Autocomplete history.
Affected files:
components/autofill/core/browser/form_parsing/form_field_parser.cccomponents/autofill/core/browser/foundations/browser_autofill_manager.cccomponents/autofill/core/browser/single_field_fillers/autocomplete/autocomplete_history_manager.cc
Estimated timestamp from git blame: Unknown (Google3 checkout)
Description
A vulnerability in Chrome's Autofill system potentially allows sensitive Credit Card Verification Codes (CVCs) to be stored in the origin-agnostic Autocomplete history. This occurs due to a combination of a heuristic skip during form parsing and incomplete security mitigations.
During form parsing, FormFieldParser::ParseFormFields runs multiple passes to identify field types. The ParseStandaloneCVCFields pass is specifically designed to identify standalone CVC fields (used for Virtual Card Number or card-on-file verification). However, this pass is conditionally skipped if an email field or other credit card fields have already been detected:
// form_field_parser.cc
bool found_email_field = !field_candidates.empty();
// ...
bool found_cc_fields = candidates_size != field_candidates.size();
if (!found_email_field && !found_cc_fields) {
ParseStandaloneCVCFields(context, fields, field_candidates);
}
If an email field is present (setting found_email_field = true), the standalone CVC field is not processed by this pass. Consequently, it is not classified as CREDIT_CARD_STANDALONE_VERIFICATION_CODE and defaults to UNKNOWN_TYPE.
Later, during form submission, BrowserAutofillManager::MaybeImportFromSubmittedForm checks if a field should be saved to Autocomplete history. It has a specific mitigation for CVCs:
// browser_autofill_manager.cc
if (autofill_field->Type().GetCreditCardType() == CREDIT_CARD_VERIFICATION_CODE) {
field.set_should_autocomplete(false);
}
Because the CVC field was classified as UNKNOWN_TYPE (or if it had been successfully classified as CREDIT_CARD_STANDALONE_VERIFICATION_CODE), this exact equality check fails. The should_autocomplete flag remains true.
The field is then evaluated by AutocompleteHistoryManager::IsFieldValueSaveable, which checks the field name against a regex blocklist via IsFieldNameMeaningfulForAutocomplete. This regex (^(?:(?:field|input|mat-input)[-_]?\d+|title|tan|mfa_text_box|pw|pin)$|^otp|otp$|\botp\b|cvc|cvn|cvv|captcha|passw|pass2|passcode|pwd|senha|pincode) correctly blocks names like cvc or pin, but it notably omits common CVC identifiers such as security_code or verification_code.
Since security_code is not blocklisted, the plaintext CVC value is saved to the origin-agnostic WebData Autocomplete database.
An attacker can exploit this by creating a malicious webpage with an input field named security_code. When the victim interacts with this field, AutocompleteSuggestionGenerator::GenerateSuggestions is invoked. While this function attempts to block suggestions for sensitive types (CREDIT_CARD_VERIFICATION_CODE or CREDIT_CARD_NUMBER), it does not block CREDIT_CARD_STANDALONE_VERIFICATION_CODE or UNKNOWN_TYPE. The saved CVC is presented as a suggestion, and if the user selects it, the attacker can extract the plaintext CVC.
Potential attacker steps
- A user visits a legitimate checkout page to verify a card-on-file. The form contains an email field (
<input name="email">) and a CVC field (<input name="security_code">). - Due to the presence of the email field, the CVC field is skipped during the standalone CVC pass and classified as
UNKNOWN_TYPE. - The user submits the form with their CVC. The
BrowserAutofillManagermitigation check fails because the type is not exactlyCREDIT_CARD_VERIFICATION_CODE. - The
AutocompleteHistoryManagerblocklist fails to catch the namesecurity_code. The plaintext CVC is saved to the origin-agnostic Autocomplete database. - An attacker hosts a malicious page with a form containing an input field named
security_code. - The victim visits the attacker's page and focuses the input field. The field is parsed as
CREDIT_CARD_STANDALONE_VERIFICATION_CODE(since no email field is present). AutocompleteSuggestionGenerator::GenerateSuggestionsdoes not blockCREDIT_CARD_STANDALONE_VERIFICATION_CODE. It retrieves the saved CVC and displays it in the Autocomplete dropdown.- The victim selects the suggestion, filling the plaintext CVC into the attacker's form, which is immediately exfiltrated.
Proposed Fix
- In
BrowserAutofillManager::MaybeImportFromSubmittedForm, expand the mitigation check to includeCREDIT_CARD_STANDALONE_VERIFICATION_CODE. - In
AutocompleteHistoryManager::IsFieldNameMeaningfulForAutocomplete, update the regex blocklist to include common CVC identifiers such assecurity_codeandverification_code, aligning it with the patterns used inlegacy_regex_patterns.json. - Re-evaluate the heuristic in
FormFieldParser::ParseFormFieldsthat skipsParseStandaloneCVCFieldswhen an email field is present, as checkout flows frequently require both.
Evaluated with Chrome root at commit: 2155cb00003ec35716a76ed3246eae995f87b7ff
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.
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 combination of three mistakes: the standalone CVC detection pass is skipped when an email field is present, the save-time check only matches one exact card-code type, and the field-name blocklist omits common names such as security_code.
Impact
A victim's plaintext card verification code could be stored in the browser and then disclosed to an attacker's site if the victim selects the offered suggestion, though this requires the victim to interact with the attacker's field and choose the suggestion.
What the attacker needed
Victim submits a checkout form with email and CVC; victim later visits attacker's page; victim focuses the field and picks the suggestion
The fix
The report proposes widening the save-time check to cover the standalone CVC type, adding common CVC field names to the blocklist, and re-evaluating the parsing heuristic that skips standalone CVC detection when an email field is present.
How it was found
- A user visits a legitimate checkout page to verify a card-on-file. The form contains an email field and a CVC field.
- Due to the presence of the email field, the CVC field is skipped during the standalone CVC pass and classified as UNKNOWN_TYPE.
- The user submits the form with their CVC. The BrowserAutofillManager mitigation check fails because the type is not exactly CREDIT_CARD_VERIFICATION_CODE.
- The AutocompleteHistoryManager blocklist fails to catch the name security_code. The plaintext CVC is saved to the origin-agnostic Autocomplete database.
- An attacker hosts a malicious page with a form containing an input field named security_code.
- The victim visits the attacker's page and focuses the input field. The field is parsed as CREDIT_CARD_STANDALONE_VERIFICATION_CODE (since no email field is present).
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 into a web form, Chrome tries to guess what each box is for so it can offer to save or fill things in later. Here it failed to recognise a box meant for the three-digit security code on a bank card, so it stored that secret code in a general list of things you have typed. A malicious website could then show that stored code back to you as a suggestion, and if you clicked it, the site would receive your card's security code.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.