The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-52557

CVE-2025-52557: Mail-0 Zero XSS Vulnerability

CVE-2025-52557 is a cross-site scripting flaw in Mail-0 Zero that enables attackers to execute malicious JavaScript and hijack user sessions. This article covers technical details, affected versions, and mitigation.

Published: May 11, 2026

CVE-2025-52557 Overview

CVE-2025-52557 is a stored cross-site scripting (XSS) vulnerability in Mail-0's Zero, an open-source email solution. Version 0.8 fails to sanitize email content properly, allowing an attacker to craft an email containing JavaScript that executes when the recipient views the message. Successful exploitation enables session hijacking through theft of authentication tokens and cookies. The maintainers patched the flaw in version 0.81 by introducing DOMPurify sanitization in the mail rendering iframe. The vulnerability is tracked under CWE-1384 and was disclosed through the project's GitHub Security Advisory.

Critical Impact

A crafted email can execute arbitrary JavaScript in the victim's browser session, leading to session hijacking and account takeover of Mail-0 Zero users.

Affected Products

  • Mail-0 Zero version 0.8
  • Earlier vulnerable releases of Mail-0 Zero through 0.80
  • Self-hosted deployments of Mail-0 Zero prior to the 0.81 hotfix

Discovery Timeline

  • 2025-06-21 - CVE-2025-52557 published to the National Vulnerability Database
  • 2026-04-15 - Last updated in NVD database

Technical Details for CVE-2025-52557

Vulnerability Analysis

The vulnerability is a client-side script injection flaw in the email rendering component of Mail-0 Zero. When the application renders HTML email content inside its mail iframe, it does not sanitize untrusted markup before injection. Attackers craft an email message containing <script> tags or event-handler attributes that execute JavaScript inside the victim's authenticated browser context. Because the script runs with the user's session, the attacker can read or exfiltrate session tokens, manipulate the DOM, and perform actions on behalf of the victim. The advisory categorizes the issue under CWE-1384, which covers improper handling of physical or environmental conditions but is mapped here to improper neutralization of email content.

Root Cause

The mail-iframe.tsx component rendered remote HTML email bodies without invoking an HTML sanitizer. No allowlist filtered dangerous tags, attributes, or javascript: URIs. The patch in version 0.81 adds DOMPurify to strip unsafe markup before rendering, and adjusts the route loader in apps/mail/app/(routes)/mail/page.tsx to enforce a server-side redirect.

Attack Vector

Exploitation requires the attacker to send an email to a Mail-0 Zero user and the victim to open the message. The attack is network-based, requires no authentication, and depends on user interaction to view the malicious email.

diff
 import { useSettings } from '@/hooks/use-settings';
 import { useTranslations } from 'use-intl';
 import { useTheme } from 'next-themes';
+import DOMPurify from 'dompurify';
 import { cn } from '@/lib/utils';
 import { toast } from 'sonner';

Source: GitHub Commit 48d1df6 — the patch introduces DOMPurify into the mail-iframe.tsx rendering pipeline to sanitize email HTML before it reaches the DOM.

diff
 import { redirect } from 'react-router';
 
-export function clientLoader() {
+export function loader() {
   throw redirect(`/mail/inbox`);
 }

Source: GitHub Commit 48d1df6 — the patch moves the redirect from a client loader to a server-side loader in apps/mail/app/(routes)/mail/page.tsx, removing client-rendered surfaces that could leak script execution.

Detection Methods for CVE-2025-52557

Indicators of Compromise

  • Inbound email messages containing <script> tags, inline event handlers such as onerror or onload, or javascript: URIs inside the HTML body.
  • Outbound requests from user browsers to unfamiliar domains immediately after opening an email in Mail-0 Zero.
  • Unexpected session-cookie access patterns or duplicate authenticated sessions originating from new IP addresses.

Detection Strategies

  • Inspect mail-server logs for messages with HTML bodies that include dangerous tags or attributes before delivery to Mail-0 Zero mailboxes.
  • Deploy a Content Security Policy in the Mail-0 Zero frontend and monitor CSP violation reports for inline-script execution attempts.
  • Correlate web-application access logs for session tokens used from multiple geographic locations within short time windows.

Monitoring Recommendations

  • Enable verbose logging on the Mail-0 Zero application server and forward events to a centralized SIEM for analysis.
  • Alert on access to authentication-cookie endpoints from JavaScript contexts that historically did not request them.
  • Track the deployed Mail-0 Zero version across all instances and flag any host still running 0.8 or earlier.

How to Mitigate CVE-2025-52557

Immediate Actions Required

  • Upgrade all Mail-0 Zero deployments to version 0.81 or later, which contains the DOMPurify-based sanitization fix.
  • Invalidate active user sessions after upgrading to force re-authentication and revoke any tokens potentially captured by a prior exploit.
  • Review inbox contents for suspicious HTML emails received before patching and quarantine messages containing executable markup.

Patch Information

The fix is delivered in Mail-0 Zero version 0.81 via Pull Request #1386 and commit 48d1df65b62c9c57897b72b241081f447140342f. The patch adds DOMPurify sanitization to mail-iframe.tsx and converts the mail route loader to a server-side loader function. Refer to the GitHub Security Advisory GHSA-34gh-g567-hq85 for full advisory details.

Workarounds

  • Restrict access to the Mail-0 Zero web interface to trusted networks until the upgrade can be applied.
  • Enforce a strict Content Security Policy that blocks inline scripts and unsafe-inline styles in the application frontend.
  • Configure upstream mail filters to strip <script> tags and JavaScript event handlers from inbound HTML email bodies.
bash
# Upgrade Mail-0 Zero to the patched release
git fetch --tags
git checkout v0.81
pnpm install
pnpm build
pnpm start

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechMail

  • SeverityHIGH

  • CVSS Score8.6

  • EPSS Probability0.36%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityNone
  • CWE References
  • CWE-1384
  • Technical References
  • GitHub Commit Details

  • GitHub Pull Request

  • GitHub Security Advisory
  • Latest CVEs
  • CVE-2025-52479: HTTP.jl & URIs.jl CRLF Injection Flaw

  • CVE-2026-31740: Linux Kernel Race Condition Vulnerability

  • CVE-2026-31743: Linux Kernel Buffer Overflow Vulnerability

  • CVE-2026-31744: Linux Kernel NULL Pointer Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English