LiveBreach Intelligence: data breaches, leaks & ransomware, tracked as they surfaceOngoing protection: GalaxyWarden →
Recent BreachesData breach tracker

CVE-2023-5631: Roundcube Webmail Persistent Cross-Site Scripting (XSS) Vulnerability

RBRecent Breaches Vulnerability Intelligence·Oct 26, 2023
CVSS 6.1 · Medium⚠ Actively exploited (CISA KEV)
6.1
CVSS score
Medium
Severity
Active
CISA KEV
No
Ransomware use
Nov 16, 2023
Patch deadline
⚠ Exploited in the wild. CISA added CVE-2023-5631 to its Known Exploited Vulnerabilities catalog on Oct 26, 2023, with a federal patch deadline of Nov 16, 2023 — meaning attackers are actively using it. If you run the affected software, patch it immediately.

Roundcube before 1.4.15, 1.5.x before 1.5.5, and 1.6.x before 1.6.4 allows stored XSS via an HTML e-mail message with a crafted SVG document because of program/lib/Roundcube/rcube_washtml.php behavior. This could allow a remote attacker to load arbitrary JavaScript code.

CVE-2023-5631 is a persistent cross-site scripting (XSS) vulnerability in Roundcube Webmail. It allows a remote attacker to run malicious JavaScript code in the context of the webmail application. Because Roundcube is commonly used for email access, successful abuse can let an attacker act with the privileges of a logged-in user, potentially reading messages, altering settings, or performing other actions available through the interface. Organizations running Roundcube should treat this as a priority for inventory and remediation, confirming all details against the vendor advisory.

CISA notes that the vulnerability enables remote execution of malicious JavaScript and requires applying mitigations per vendor instructions or discontinuing use of the product if mitigations are unavailable. Ransomware use is not documented for this CVE.

How it works

This issue is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation), commonly known as cross-site scripting. In a persistent XSS flaw, attacker-supplied content containing script is stored by the application and later rendered for other users without proper sanitization or encoding. When a victim views the affected content inside Roundcube Webmail, the browser executes the injected JavaScript in the security context of the webmail origin.

A remote attacker can therefore deliver a payload that runs with the privileges of whoever opens the tainted view. Exact injection points, request formats, and payload constraints are not detailed in the available summary; defenders must consult the vendor advisory for the precise attack surface and any preconditions. The result is client-side code execution that can steal session tokens, perform actions on behalf of the user, or exfiltrate data visible in the webmail session.

Am I affected? How to find it in your systems

Roundcube Webmail is typically deployed as a browser-based front end for IMAP/SMTP mail systems, often on Linux servers in enterprise, education, or hosting environments. It may run under a web server such as Apache or Nginx and is frequently exposed to authenticated users over HTTPS.

If public detail on exact indicators is limited, treat any Roundcube instance as potentially in scope until verified against the advisory.

How to remediate

Patch first. Apply the vendor-supplied update that addresses CVE-2023-5631, following the installation and verification steps in the official advisory. After patching, restart the web server and application services as required and confirm the new version is running.

For the broader XSS class, reinforce defenses that reduce the impact of similar flaws:

CISA’s required action is to apply mitigations per vendor instructions or discontinue use if mitigations are unavailable. Document the change and re-scan for residual instances.

If you can't patch immediately

Until the vendor update can be applied, reduce exposure with compensating controls:

These measures lower risk but do not replace the official fix. Plan the patch window as soon as possible.

If your data may have been exposed

Actively exploited vulnerabilities of this type can lead to account takeover and subsequent data exposure. If you suspect compromise, rotate credentials, review mail and audit logs for unauthorized access, and follow your incident-response plan. Readers can also run a free exposure scan of their email address to check whether it appears in known breach data sets.

AICompiled with AI assistance from public sources and published under our editorial standards.

Details

AffectedRoundcube · Webmail
WeaknessCWE-79
CVSS base score6.1 (Medium)
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
PublishedOct 18, 2023
Added to CISA KEVOct 26, 2023
Federal patch deadlineNov 16, 2023
Known ransomware useNot documented
Check if your data is exposed →

References

Official records: NVD · CISA KEV

← All actively-exploited vulnerabilities