Thunderbird Bug Can Replace a Reply Recipient With an Autocomplete Suggestion: Fix Lands for 164
The article's text, from Joho no Todai's page.
A Thunderbird bug can let an autocomplete suggestion from another compose window overwrite a reply recipient. Suggestions from a different address field can also change an address during saving or sending. A fix for Thunderbird 164 has landed in the development branch.
A reply can pick up a recipient from another message
On December 5, the team behind Thunderbird, the open-source email client, merged a fix for address autocomplete into its development branch.
A user reported the issue on November 19. Mozilla’s tracker lists it as Bug 2095002, reported against Thunderbird 160.
Thunderbird’s autocomplete feature searches the address book for contacts based on a partial name or email address. Once the entry is committed, the contact appears as a recipient item.
The user reported that an address suggestion left over from a different compose window could overwrite the intended reply recipient. The reply could use that suggestion in place of the address from the original message.
Replying expresses an intent to answer the person whose message you are reading. What makes the bug concerning is that the address can change even when the user never chose another contact.
Thunderbird’s incorrect recipient bug and fix
| Item | Behavior before the fix | Fix for 164 |
|---|---|---|
| Committing an address Editing a recipient | Shared autocomplete could apply a suggestion from the wrong field | Checks the suggestion belongs to the field |
| Replying | A suggestion left over from another compose window could replace the reply address | Preserves addresses filled in automatically |
| Saving a draft Sending | An uncommitted address could change to a suggestion from another field | Only uses suggestions for the relevant field |
| Release decision (December 5, 2026) | ||
| 164 | Fix merged into development branch | |
| 163/153 ESR | No backport planned (ESR means Extended Support Release) | |
Which field does an autocomplete result belong to?
The developer who fixed the bug explained the cause on December 4. Thunderbird’s address inputs share a controller that tracks search results and the active field.
When forced completion was enabled and suggestions were available, the previous address commit code could overwrite the field with an address from the controller. It lacked a check that the suggestion belonged to that input.
Search results could remain in the shared controller after the user switched windows. Thunderbird could then apply a stale suggestion to an address it had filled in for a reply.
The developer said the issue could also occur when saving a draft or sending. Thunderbird could replace an address that had not yet been committed with a suggestion belonging to another field.
Multiple address fields can be affected even within one compose window. Text that looks correct before saving can still change when the program commits it.
Checks and tests added by the patch
The code that turns addresses into recipient items, recipientAddPills(), now checks that the controller is attached to the field it is processing. It skips forced autocomplete for addresses entered programmatically to preserve automatically filled recipients, including those in replies.
The code that edits an existing recipient item, MailAddressPill.updatePill(), now also checks that the controller is associated with the input field.
The patch includes automated regression tests. One verifies that a reply preserves the original sender’s address even when suggestions from a separate compose window are present.
Another test covers saving a draft. It verifies that the main recipient in To is preserved and that Cc still receives its own selected suggestion.
These tests check that Thunderbird avoids applying the wrong suggestion while preserving correct autocomplete behavior. The patch tightens where autocomplete is allowed to change an address and keeps the feature available when it belongs to that field.
The Thunderbird 164 fix and what users should check
The December 5 development record lists Thunderbird 164 as the target. The statuses for 163 and 153 ESR, the Extended Support Release, are set to wontfix. That status describes the backport decision and does not establish whether either version can reproduce the issue.
Thunderbird offers an Extended Support Release for deployment in organizations such as schools and companies. Alongside ease of use for individuals, it matters that work-related information reaches the intended recipient.
The developer who fixed the issue classified it as a minor bug and said it did not qualify as a security issue. The public record for Bug 2095002 through December 5 gives no count of actual misdirected emails or disclosures.
If someone sends a message without noticing the changed address, the body and attachments could reach an unintended recipient. That matters to people handling sensitive information even in the absence of an outside attack.
Check the release notes for the fix in the version you use. Until it lands, avoid switching compose windows with autocomplete suggestions open. Check the recipients when a reply opens and after saving a draft. Before sending, commit all pending entries and verify the recipients’ email addresses.
A feature meant to save time entering addresses ended up making them take more time to check. Once the fix reaches users, replying should again be an ordinary action they can take with confidence.
