Webmail security starts with where your mail lives: webmail puts your whole mailbox inside the browser, the busiest and most attacked program on your computer, next to every extension and every web page you open. Attackers around the world have used flaws in popular webmail software to read and steal mail just by sending a crafted message. A desktop mail app such as Thunderbird, with OpenPGP encryption built in, gives you a smaller target and keeps your keys out of the browser, so use webmail when you must, and secure it properly when you do.
In short
Webmail is attacked through flaws in the webmail software, through the browser it runs in, and through encryption that lives inside a web page.
Webmail is a web application, and web applications have flaws. The US Cybersecurity and Infrastructure Security Agency (CISA) lists at least eleven flaws in Roundcube, one of the most widely deployed open-source webmail programs, as exploited in the wild, the latest added in February 2026. Its catalogue also lists flaws in other webmail products, such as Zimbra.
Opening one email was enough. Several of these were cross-site scripting flaws: a specially crafted email ran code in the browser as soon as it was opened. The security company ESET reported in 2023 that one Roundcube flaw was used before a fix existed, against servers that were fully up to date. In 2025 ESET described a campaign against several webmail products in which the attackers stole passwords, contacts and messages, and added rules forwarding every incoming email to themselves. On one product they stole the two-factor secret and created an app password, so they kept access without needing the code.
The victims were spread across the world, from government offices in Africa to targets in South America. Webmail flaws get fixed quickly, and the attacks succeed mostly where servers are not updated in time. But a fix can only follow a flaw.
Everything webmail does happens in the browser, which brings the browser's risks with it:
Encryption done by the page is only as safe as the page. The World Wide Web Consortium's (W3C) Web Cryptography specification notes that script injected into a web page is the equivalent of running code on the application, and can take keys or data. That is why browser-based encryption tools such as Mailvelope keep keys inside the extension rather than the page. Even so, Mailvelope says it is only as secure as your browser.
A desktop app such as Thunderbird connects to your mailbox directly over IMAP and SMTP, so it is a smaller target and the risks that belong to the browser alone do not reach it.
| Webmail | Desktop mail app (Thunderbird) | |
|---|---|---|
| Where it runs | Inside the browser, next to every extension and web page | Its own program, which does not share a process with every website you visit or with browser extensions |
| Encryption | Done by the web page, or by an extension such as Mailvelope, which is only as secure as your browser | OpenPGP built in since Thunderbird 78 (July 2020), with keys kept in the app and protected by a Primary Password |
| Your mail | Read through a browser session | Messages can be kept on your computer, so you do not depend on a browser session to read them |
| Signing in | A web login page, which can be imitated | The mailbox password or an app password, with no web login page to imitate |
A desktop app is not immune. A computer infected with malware can read anything you can read, in any app. But the app removes the risks that belong to the browser alone.
Our help article Why and how to switch to Thunderbird covers moving across.
Webmail still has a place, for example on a trusted second computer or while travelling. When you use it:
Read next:
Every Noiz hosting plan includes webmail and IMAP, and Noiz keeps the webmail software on its servers updated. Noiz recommends Thunderbird with OpenPGP for everyday mail and webmail as the backup.
For an organisation that wants two-factor sign-in for its users, webmail included, Noiz runs Private Email on Mailcow, on a server for your organisation alone. Ask us for a quote.
Note: while some of this content was produced with the help of AI, the final editing has been done by a real human being.