Inappropriate implementation in Autofill (CVE-2026-17880)
A logic flaw in Chrome's Autofill heuristics lets a field named like a flight verification input be classified as an unknown type instead of a credit card verification code, because the travel parser's score outranks the credit card parser's score. This bypasses the check meant to stop CVCs being saved, so the code is stored in the cross-origin Autocomplete history and could be offered back to a malicious site.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 48 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 Autofill heuristics allows sensitive Credit Card Verification Codes (CVC) to be misclassified as UNKNOWN_TYPE due to a priority inversion where the Travel parser's score (1.2) overrides the Credit Card parser's score (1.0). This misclassification bypasses explicit security checks meant to block CVC storage, resulting in the CVC being saved to the cross-origin Autocomplete history where malicious sites can retrieve it.
Affected files:
components/autofill/core/browser/form_parsing/travel_field_parser.cccomponents/autofill/core/browser/form_parsing/form_field_parser.hcomponents/autofill/core/browser/foundations/browser_autofill_manager.cccomponents/autofill/core/browser/single_field_fillers/autocomplete/autocomplete_history_manager.cc
Estimated timestamp from git blame: 2019-02-08
Summary
A potential vulnerability in Chrome's Autofill system allows sensitive Credit Card Verification Codes (CVC) to bypass security checks and be saved in cleartext to the origin-agnostic Autocomplete database. This occurs due to a priority inversion where the TravelFieldParser assigns an UNKNOWN_TYPE classification with a higher score than the specific CREDIT_CARD_VERIFICATION_CODE classification assigned by the CreditCardFieldParser or StandaloneCvcFieldParser. Once saved, any site can retrieve the sensitive data by using a field with the same name.
Technical Details
When Chrome parses a form to determine field types, it uses multiple local heuristics. The process is orchestrated by FormFieldParser::ParseFormFields (components/autofill/core/browser/form_parsing/form_field_parser.cc).
- Priority Inversion: If a form contains an input named
flight_verification, it matches patterns for two different parsers:TravelFieldParser::Parsematches theFLIGHTregex (airline|flightinlegacy_regex_patterns.json:3242). It assigns the candidateUNKNOWN_TYPEwith a base score of1.2f(kBaseTravelParserScoredefined inform_field_parser.h:252).CreditCardFieldParser::Parse(orStandaloneCvcFieldParser) matches theCREDIT_CARD_VERIFICATION_CODEregex, which explicitly includes the substringverification(legacy_regex_patterns.json:2783). It assigns the candidateCREDIT_CARD_VERIFICATION_CODEwith a base score of1.0f(kBaseCreditCardParserScoredefined inform_field_parser.h:254).- During candidate resolution (
FieldCandidates::BestHeuristicType()infield_candidates.cc:34-47), the candidate with the highest score wins. Because1.2f>1.0f, the field'sbest_heuristic_typeis incorrectly set toUNKNOWN_TYPE.
- Security Check Bypass:
BrowserAutofillManager::MaybeImportFromSubmittedForm(browser_autofill_manager.cc:587) processes fields prior to saving them to Autocomplete. It contains a specific security check to block CVCs:if (autofill_field->Type().GetCreditCardType() == CREDIT_CARD_VERIFICATION_CODE) { field.set_should_autocomplete(false); }(browser_autofill_manager.cc:610-615). Because the heuristic classification was overridden toUNKNOWN_TYPE, this check evaluates tofalse, andshould_autocompleteremainstrue. - Blocklist Gap: The field is forwarded to
AutocompleteHistoryManager::OnWillSubmitFormWithFields, which validates the field name usingIsFieldNameMeaningfulForAutocomplete(autocomplete_history_manager.cc:155-166). The blocklist regex (kRegex) forbids names containingcvc,cvn,cvv,passw,pwd, orpin, but completely lacks terms used by the CVC heuristics, likeverificationorsecurity code. Thus,flight_verificationis deemed a valid, saveable name.
The sensitive CVC is subsequently saved to the local Web Data SQLite database, associated with the origin-agnostic name flight_verification.
Suggested Attacker Steps
Note: These are potential steps as our tooling agent cannot execute code to verify the exploit end-to-end.
- An attacker compromises a benign airline checkout page (or creates a seemingly benign one) and ensures the CVC input field is named
<input type="text" name="flight_verification">. - A victim enters their CVC and submits the form. Due to the parser conflict, the CVC is saved to their local Autocomplete database.
- The attacker hosts a separate, cross-origin malicious site containing the same field:
<input type="text" name="flight_verification">. - When the victim visits the malicious site and clicks anywhere on the page (or interacts with a decoy field), Chrome offers the saved CVC as an Autocomplete suggestion.
- If the victim accepts the suggestion, the CVC is filled, and the attacker's JavaScript immediately exfiltrates it.
Suggested Remediation
- Adjust Parser Scoring: Modify
TravelFieldParser(or candidate resolution logic) so that generic classifications likeUNKNOWN_TYPEdo not override specific, sensitive classifications likeCREDIT_CARD_VERIFICATION_CODEfrom other parsers. - Expand Autocomplete Blocklist: Update the regex
kRegexinAutocompleteHistoryManager::IsFieldNameMeaningfulForAutocompleteto include missing sensitive keywords used by the CVC parsers, such asverificationandsecurity.?code.
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 priority inversion in the heuristic scoring, where a generic travel parser's higher base score overrides the specific credit card verification code classification, and the autocomplete name blocklist lacks the matching keywords.
Impact
A saved card verification code could be offered back on an attacker's site and stolen if the victim accepts the suggestion, though the report notes the exploit was not verified end to end.
What the attacker needed
Victim enters CVC on a crafted page; victim later visits attacker's site; victim accepts the autocomplete suggestion
The fix
Parser scoring should be adjusted so generic classifications cannot override specific sensitive ones, and the autocomplete name blocklist should include the missing CVC keywords.
How it was found
- An attacker sets up or compromises a page whose CVC field is named to match the flight pattern.
- The victim enters their CVC and submits the form, and it is saved to the local Autocomplete database.
- The attacker hosts a separate cross-origin page with a field of the same name.
- The victim visits that page and interacts with it, and Chrome offers the saved CVC as a suggestion.
- If the victim accepts it, the attacker's script reads the filled value and sends it away.
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 tries to guess what each form field is for, such as a name or a card security code, by matching the field's name against patterns. Here two guesses competed and the less specific one won, so a card security code was treated as an ordinary unknown field. That meant a safety rule designed to stop such codes being remembered was skipped, and the code could be saved and later suggested on another website.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.