CVE-2024-42009: Stored XSS in Roundcube Webmail message_body()
- Vendor
- Roundcube
CVE-2024-42009 is a stored cross-site scripting vulnerability affecting Roundcube Webmail through version 1.5.7 and the 1.6.x branch through version 1.6.7. Improper processing of previously sanitized HTML in message_body() introduces a desanitization flaw that allows a crafted email to execute attacker-controlled JavaScript in the recipient’s authenticated webmail session. Viewing the malicious message is sufficient to trigger exploitation; no link click or attachment interaction is required. Successful exploitation enables email theft and sending messages as the victim.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Attackers can compromise the confidentiality and integrity of the victim’s mailbox by reading and exfiltrating emails and sending messages under the victim’s identity. Malicious JavaScript can also harvest accessible session tokens, cookies, credentials, and authentication material. Active campaigns have used this vulnerability to deliver browser-based stealers and prepare exploitation of CVE-2025-49113. Server-side code execution and server persistence require an additional vulnerability or capability and are not direct effects of CVE-2024-42009 alone.
Mitigation
If you can’t patch tonight, do this now.
Until patched, minimize opening or otherwise interacting with messages from unverified sources. Avoiding links and attachments alone is insufficient because viewing the message can trigger exploitation. Monitor affected webmail systems for exploitation and account misuse; patching remains the primary corrective measure.
Remediation
Patch, then assume compromise.
Upgrade Roundcube Webmail 1.5.x to version 1.5.8 or later, or 1.6.x to version 1.6.8 or later. These fixes were released on August 4, 2024. Prefer the latest supported security release; versions 1.5.10 and 1.6.11 additionally address CVE-2025-49113, which has been chained with this vulnerability.
Exploits
5 exploits validated by Mallory's analysis. Hidden: 1 rejected by Mallory's analysis as not a working exploit.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2024-42009 exploited in the wild?
- Yes. As of Oct 27, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Jun 9, 2025.
- Is there a public exploit for CVE-2024-42009?
- Yes. Mallory tracks 5 public exploits or proofs of concept for CVE-2024-42009, the earliest disclosed Feb 11, 2025.
- Is there a patch for CVE-2024-42009?
- Upgrade Roundcube Webmail 1.5.x to version 1.5.8 or later, or 1.6.x to version 1.6.8 or later. These fixes were released on August 4, 2024.
- What products are affected by CVE-2024-42009?
- Roundcube Webmail.
- How severe is CVE-2024-42009?
- CVE-2024-42009 has a CVSS v3.1 score of 9.3 (Critical) and an EPSS score of 82.9% (100th percentile) as of Oct 27, 2026.
Recent activity
79 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.