Hackers News Hackers News
  • CyberSecurity News
  • Threats
  • Attacks
  • Vulnerabilities
  • Breaches
  • Comparisons

Social Media

Hackers News Hackers News
  • CyberSecurity News
  • Threats
  • Attacks
  • Vulnerabilities
  • Breaches
  • Comparisons
Search the Site
Popular Searches:
technology Amazon AI
Recent Posts
CSS Bomb Attacks Steal Passwords via Malicious Emails
August 9, 2026
Levi Strauss Data Breach Exposes Customer and Employee Data
August 8, 2026
OpenAI Pauses Astra Model Development to Assess Cybersecurity Risks
August 8, 2026
Home/CyberSecurity News/CSS Bomb Attacks Steal Passwords via Malicious Emails
CyberSecurity News

CSS Bomb Attacks Steal Passwords via Malicious Emails

Key Takeaways A novel “CSS bomb” attack method exploits standard CSS styling within emails to steal credentials and track user activity in real-time. The attacks bypass traditional...

David kimber
David kimber
August 9, 2026 3 Min Read
3 0

Key Takeaways

  • A novel “CSS bomb” attack method exploits standard CSS styling within emails to steal credentials and track user activity in real-time.
  • The attacks bypass traditional JavaScript defenses by weaponizing webmail client rendering discrepancies, affecting platforms like Outlook, Fastmail, Gmail, ProtonMail, Yahoo Mail, and AOL Mail.
  • Attackers can spoof login screens and log keystrokes by manipulating HTML elements like select menus and labels, effectively creating a stealthy keylogger.
  • While some vulnerabilities have been patched following disclosures, certain issues, such as an Outlook label-hijacking bug, reportedly remain unresolved.

A sophisticated new class of email-based attacks, dubbed “CSS bombs,” has emerged, capable of hijacking webmail interfaces, monitoring user actions, and even exfiltrating passwords in real-time. Crucially, these attacks achieve their malicious objectives without relying on JavaScript or traditional malware, making them particularly difficult to detect and defend against.

Table Of Content

  • Key Takeaways
  • Understanding the CSS Bomb Attack
  • What You Should Do

The “CSS bomb” technique weaponizes ubiquitous formatting features present in nearly all major webmail platforms. By transforming a seemingly innocuous HTML email into a covert keylogger, attackers can capture login credentials as victims type them into what appears to be a legitimate input field.

PortSwigger researcher Gareth Heyes conducted an in-depth analysis of how prominent webmail clients, including Gmail, Outlook, Yahoo Mail, AOL Mail, Fastmail, and ProtonMail, process and sanitize incoming HTML and CSS. These sanitization processes are designed to strip out dangerous code while preserving the intended display of fonts, colors, and layouts. Heyes’ research revealed that inconsistencies between what a sanitizer deems safe and what a web browser ultimately renders create critical vulnerabilities that attackers can exploit.

Understanding the CSS Bomb Attack

Attackers exploit various CSS quirks, such as CSS mutation, attribute selectors, and pseudo-elements like :before, :after, :has(), and :checked, to manipulate standard select-menu dropdowns. These manipulated elements are then made to visually mimic password input fields. When a user types into this deceptive field, each keystroke triggers a unique CSS rule. This rule silently initiates a background image request to a server controlled by the attacker, effectively logging every character typed by the victim.

Previous theoretical CSS keylogger concepts faced a significant hurdle: web browsers typically do not update HTML attributes when a user types into a standard input field, limiting their practical application.

Heyes’ groundbreaking research entirely circumvents this limitation. By instead hijacking <select> elements and HTML labels, the new method establishes a fully functional, real-time password-stealing mechanism. This technique remains effective even against emails protected by stringent sanitizers, including widely used solutions like DOMPurify.

Gareth Heyes successfully demonstrated working exploits against several platforms. In Outlook, a specific CSS “gadget” bug allowed attackers to break out of the email rendering window and display a highly convincing, spoofed Microsoft login screen. For Fastmail users, a technique dubbed “CSS hotwiring” enabled attackers to hijack any click on the page to trigger unintended actions, while separate vulnerabilities allowed for silent tracking of email open statuses.

Similar image-proxy bypasses were identified in Gmail and ProtonMail. One proof-of-concept even chained a Gmail vulnerability with AI browser prompt injection, facilitating the exfiltration of Slack authentication tokens via an AI-powered email assistant.

The pure CSS and HTML nature of these attacks allows them to evade detection by traditional security measures such as antivirus software, spam filters, and script-blocking defenses that primarily target JavaScript-based threats. Following responsible disclosure through bug bounty programs, several of these flaws have been patched, including fixes implemented by Fastmail. However, some vulnerabilities, such as the Outlook label-hijacking bug, are reportedly still unresolved.

What You Should Do

  • For Webmail Providers: Implement robust sandboxing for untrusted email content using iframes. Configure email clients to block automatic loading of remote images by default. Disallow risky CSS selectors such as :has() and :checked. Restrict or carefully scrutinize custom HTML attributes that could be exploited as sanitizer-bypass gadgets.
  • For Everyday Users: Disable automatic loading of remote images in your email client settings. Exercise extreme caution with any unexpected login prompts or forms appearing within emails, even if they appear to be from trusted sources. Always navigate directly to official websites for sensitive actions like logging in, rather than clicking links or interacting with forms embedded in emails.

Disclaimer: HackersRadar reports on cybersecurity threats and incidents for informational and awareness purposes only. We do not engage in hacking activities, data exfiltration, or the hosting or distribution of stolen or leaked information. All content is based on publicly available sources.

Tags:

AttackExploitMalwarePatchSecurityThreatVulnerability

Share Article

David kimber

David kimber

David is a penetration tester turned security journalist with expertise in mobile security, IoT vulnerabilities, and exploit development. As an OSCP-certified security professional, David brings hands-on technical experience to his reporting on vulnerabilities and security research. His articles often feature detailed technical analysis of exploits and provide actionable defense recommendations. David maintains an active presence in the security research community and has contributed to multiple open-source security tools.

Previous Post

Levi Strauss Data Breach Exposes Customer and Employee Data

No Comment! Be the first one.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Popular Posts
Critical Windows Hello for Business Bug Lets Attackers Impersonate Users in Entra ID
August 7, 2026
Critical Zapscape KVM Vulnerability CVE-2026-64561 Allows Guest-to-Host Escape
August 7, 2026
Chrome 101 Patches 41 Vulnerabilities, 6 Critical Memory Bugs
August 7, 2026
Top Authors
Marcus Rodriguez
Marcus Rodriguez
Emy Elsamnoudy
Emy Elsamnoudy
Jennifer sherman
Jennifer sherman
Let's Connect
156k
2.25m
285k

Related Posts

Jennifer sherman
By Jennifer sherman
Threats

GlassWorm Attacks macOS via Malicious VS Code…

January 1, 2026
Emy Elsamnoudy
By Emy Elsamnoudy
Attacks

ClickFix Attack Hides Malicious Code via Stegan Security

January 1, 2026
Sarah simpson
By Sarah simpson
Vulnerabilities

MongoBleed Detector Tool Released to Detect MongoDB Vulnerability(CVE-2025-14847)

January 1, 2026
Emy Elsamnoudy
By Emy Elsamnoudy
Breaches

Conti Ransomware Gang Leaders & Infrastructure Exposed

January 1, 2026
Hackers News Hackers News
  • [email protected]

Quick Links

  • Contact Us
  • Privacy Policy
  • Terms of service

Categories

Attacks
Breaches
Comparisons
CyberSecurity News
Threats
Vulnerabilities

Let's keep in touch

receive fresh updates and breaking cyber news every day and week!

All Rights Reserved by HackersRadar ©2026

Follow Us