CVE-2020-13965 — Roundcube Webmail Cross-Site Scripting (XSS) Vulnerability

CVE-2020-13965

Roundcube Webmail — Stored XSS via Malicious XML Attachment Rendering

What is Roundcube Webmail?

Roundcube is a widely deployed open-source webmail client, commonly bundled with hosting control panels (cPanel, Plesk) and self-hosted mail servers around the world. Its ubiquity in shared hosting environments and small-to-mid-sized organizations makes it an attractive target: a webmail XSS bug can be used to hijack the mail session of anyone who simply opens a malicious message, without any separate exploit delivery needed.

Overview

CVE-2020-13965 is a cross-site scripting vulnerability in how Roundcube renders certain attachment content, specifically related to malicious XML data. An attacker who can get a target to open a specially crafted email — a routine, low-effort phishing action — can have arbitrary JavaScript execute in the victim's webmail session. Because that session already has access to the victim's inbox, contacts, and often session cookies or tokens, XSS in a webmail client is functionally equivalent to a session-hijacking primitive rather than merely a cosmetic bug.

Technical Details

The vulnerability (CWE-79, Cross-Site Scripting) stems from insufficient sanitization when Roundcube processes and renders XML-based attachment content in the webmail interface. Because the vulnerability is reflected in the context of the mail client itself (CVSS Scope: Changed), successful exploitation can affect security context beyond the vulnerable component — for example, allowing the attacker's script to interact with other parts of the webmail session. Exploitation requires user interaction (opening/viewing the malicious message) but no attacker authentication, and no unusual complexity, making it a low-effort, high-value phishing payload.

Discovery

Fixed by the Roundcube project as part of its routine security update process; the Roundcube team credited the report and shipped the fix in the 1.4.5 and 1.3.12 releases without extensive public researcher attribution beyond the project's own advisory.

Exploitation Context

CISA's KEV catalog listing, added roughly four years after the original patch, confirms this vulnerability has been exploited in the wild — a reminder that unpatched webmail installations, especially in shared hosting environments where updates are not automatically applied, remain exploitable for years after a fix is available. Webmail XSS bugs like this are a known favorite of espionage-motivated phishing campaigns because they allow attackers to compromise a target's mailbox using nothing more than a crafted email, without needing separate malware delivery.

Remediation

  1. Upgrade to Roundcube 1.4.5, 1.3.12, or later (or the current supported release line).
  2. Where upgrading immediately isn't possible, disable or restrict attachment preview/rendering features that process untrusted XML content.
  3. Deploy Content Security Policy headers on the webmail interface to reduce the impact of any XSS that does execute.
  4. Monitor webmail server logs for anomalous attachment content or repeated delivery of suspicious crafted messages.
  5. Treat any long-unpatched, internet-facing Roundcube instance as a priority for immediate upgrade given confirmed real-world exploitation.

Key Details

PropertyValue
CVE ID CVE-2020-13965
Vendor / Product Roundcube — Webmail
NVD Published2020-06-09
NVD Last Modified2025-11-04
CVSS 3.1 Score6.1
CVSS 3.1 VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
SeverityMEDIUM
CWE CWE-79 find similar ↗
CISA KEV Added2024-06-26
CISA KEV Deadline2024-07-17
Known Ransomware Use No

CVSS 3.1 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

Required Action

CISA BOD 22-01 Deadline: 2024-07-17. Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.

Timeline

DateEvent
2020-06-09Fixed in Roundcube 1.4.5 and 1.3.12
2024-06-26Added to CISA Known Exploited Vulnerabilities catalog
2024-07-17CISA BOD 22-01 remediation deadline

References

ResourceType
NVD — CVE-2020-13965 Vulnerability Database
CISA KEV Catalog Entry US Government
Roundcube — Security updates 1.4.5 and 1.3.12 Vendor Advisory