PortSwigger Researcher Reveals CSS Attacks That Break Webmail Defenses to Steal Passwords, Tokens
This digest was compiled by AI from multiple sources — links to the originals are below.

PortSwigger researcher Gareth Heyes presented novel CSS attacks at Black Hat USA 2026 that can escape email boundaries to steal passwords and tokens from Outlook, Gmail, Yahoo Mail, AOL, Fastmail, and Proton Mail. Public proof-of-concept code remains online as of August 8, while some of the chained exploits still work. Fastmail and Proton Mail have fixed their vulnerabilities, but Outlook and Gmail remain vulnerable.
CSS Escape Methods
The research outlines two attack paths: leveraging HTML and CSS that webmail already permits, and exploiting discrepancies between sanitizer approvals and browser behavior. In one Outlook chain, a label element triggers controls outside the message, while application JavaScript converts sanitized attributes into new DOM nodes, allowing arbitrary CSS through a media-query parsing trick. This creates a fake Microsoft sign-in screen that captures passwords in real time, with Firefox resetting a one-second timer to maintain the deception. Another attack uses a paste race in Yahoo Mail and AOL Mail to briefly retain active CSS, enabling theft of a 12-character Medium login token that the attacker reconstructs from request data.
Vulnerability Status
Fastmail fixed two CSS mutation bugs, and a Proton Mail proxy bypass ceased working on retest. However, as of the August 6 publication date, Outlook label-jacking and Gmail's image-set() bypass still functioned. It remains unclear whether the full Outlook password-capture chain has been patched. The researcher recommends isolating HTML email in sandboxed iframes and restricting CSS, custom attributes, select menus, and image requests.
What's Next
Public proof-of-concept code is still available on August 8, and no reports of malicious exploitation have emerged. It is unclear whether affected providers will deploy the recommended mitigations before attackers adopt the techniques.
1 source
PortSwigger Researcher Reveals CSS Attacks That Break Webmail Defenses to Steal Passwords, Tokens



