A malicious IMAP server can trigger use-after-free and heap-memory disclosure by sending a crafted ID response. Heap contents can ultimately be persisted to prefs.js. This vulnerability was fixed in Thunderbird 155, Thunderbird 140.15, and Thunderbird 153.2.
https://www.mozilla.org/security/advisories/mfsa2026-88/
https://www.mozilla.org/security/advisories/mfsa2026-87/