Bug Report  ·  Microsoft Word + Mozilla Thunderbird

Word Cross-References Appear Duplicated When Opened Directly via Thunderbird

May 2026  ·  Taiji Yamada

日本語

Summary

When a Microsoft Word .docx file received as a Thunderbird email attachment is opened directly (without saving to disk first), cross-references in the document appear duplicated — e.g. "Table 2  Table 2  Table 2". Saving the file to disk and then opening it displays correctly.

⚠️ The duplication also appears when exporting to PDF from the directly-opened file, confirming this is not merely a display rendering issue.

Environment

SoftwareNotes
Mozilla Thunderbird150.0.1 (aarch64) Confirmed on macOS
Microsoft Word for MacConfirmed on multiple versions 16.109 (26051019)
macOSTahoe 26.4.1(25E253)

* The issue does not reproduce on all machines (see "Triage" below).

Steps to Reproduce

  1. Download the reproduction file thunderbird_bug_minimal2.docx below.
  2. Attach it to an email and send it to yourself.
  3. In Thunderbird, receive the email and open the attachment directly (do not save first).
  4. Observe that the cross-references "Table 2" and "Table 3" appear duplicated in the document body.
  5. Now use "Save Attachment" to save the file to disk, then open it — the references display correctly.

Triage Results

ActionResult
Open directly from ThunderbirdDuplicated references
Save to disk, then openNormal
Export to PDF while opened directlyDuplication reproduced
Same steps on a different machineDoes not reproduce

✅ Because the duplication appears in PDF export, this is not a Word rendering preference issue — it originates in how the file is loaded.

Root Cause Analysis

Unpacking the .docx and inspecting word/document.xml revealed that the cross-reference fields (REF fields) are doubly nested:

<!-- Outer field (redundant) -->
<w:fldChar w:fldCharType="begin"/>
<w:instrText> REF _Ref228461093 \* MERGEFORMAT </w:instrText>
<w:fldChar w:fldCharType="separate"/>

  <!-- Inner field (the intended REF) -->
  <w:fldChar w:fldCharType="begin"/>
  <w:instrText> REF _Ref228461093 \* MERGEFORMAT </w:instrText>
  <w:fldChar w:fldCharType="separate"/>
  <w:t>Table 2</w:t>
  <w:fldChar w:fldCharType="end"/>

<w:fldChar w:fldCharType="end"/>

When opened normally, Word resolves only the inner field and displays correctly. When opened via Thunderbird's temporary file path, Word appears to expand both fields, causing the duplication.

Which product is at fault?

PartyReasoning
Microsoft WordGenerated malformed doubly-nested XML during tracked-changes editing
Mozilla ThunderbirdIts temporary-file handoff to Word triggers the malformed structure to surface

⚠️ This appears to be a compound bug involving both products. Neither party can be identified as solely responsible, which is why this report is published here rather than filed with a single vendor.

Workaround

✅ Always use "Save Attachment" in Thunderbird before opening .docx files. Do not use the "Open" button directly.

Reproduction File

The following file has been confirmed to reproduce the issue.

📄
thunderbird_bug_minimal2.docx Minimal file containing tracked-change insertion + doubly-nested REF field
Download

Addendum: Reassignment of Fault

May 2026

Upon further reflection after publication, we have revised our assessment: the root cause of this issue lies squarely with Microsoft Word generating malformed XML.

A doubly-nested REF field is an invalid structure under the OOXML specification. A correctly implemented application should never produce such a file in the first place.

Thunderbird merely received the malformed file and passed it to Word via a temporary path — making it closer to a victim than a culprit. The fact that Word displays the file correctly when opened normally simply means Word is silently papering over its own malformed output, which in turn delayed discovery of the problem.

⚠️ This issue can reasonably be classified as a Microsoft Word bug.

About This Page

This page was written at the request of Taiji Yamada by the AI assistant Claude (Anthropic, claude.ai), which performed the bug investigation, triage, reproduction file generation, and authoring of this HTML. The entire process — from initial observation to publication — was carried out through a conversation between Taiji Yamada and Claude.