CVE-2023-5631: Roundcube Webmail Persistent Cross-Site Scripting (XSS) Vulnerability
Yes. CVE-2023-5631 has been used in real attacks. CISA added it to its Known Exploited Vulnerabilities catalog on 26 October 2023. We found no public exploit code for it in Exploit-DB, Metasploit or Nuclei, so the attacks rely on tooling that is not openly published in those sources. EPSS puts the chance of further exploitation attempts in the next 30 days at 76.3%.
- Exploited in real attacks
- Yes. On CISA's exploited list since 26 October 2023
- Used in ransomware
- Not known
- Public exploit code
- None found in Exploit-DB, Metasploit or Nuclei
- Chance of exploitation (EPSS)
- 76.3% in the next 30 days, higher than 99.5% of scored vulnerabilities. Scored 5 December 2026
- Severity (CVSS)
- 6.1 Medium (version 3.1)
- Affects
- Roundcube Webmail
- Type of flaw
- Cross-site scripting (CWE-79)
- Published
- 18 October 2023
- US federal patch deadline
- 16 November 2023
What it is
Roundcube Webmail contains a persistent cross-site scripting (XSS) vulnerability that allows a remote attacker to run malicious JavaScript code.
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.
Description from the CVE record.
Is CVE-2023-5631 being exploited?
Yes. CISA lists a vulnerability as known exploited only when it has reliable evidence of exploitation in real attacks, and it added CVE-2023-5631 on 26 October 2023. That was 8 days after the CVE was published.
Affected products
- Roundcubemail: 1.6.0 up to (not including) 1.6.3; 1.5.0 up to (not including) 1.5.4; 1.4.0 up to (not including) 1.5.14
From the CVE record. Check the vendor advisory for the full list of fixed versions.
What to do
CISA's required action: Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.
Because this flaw has already been used in attacks, patching is only half the job. If an affected system was reachable while unpatched, check it for signs of compromise before trusting it again.
How to check whether you are exposed
- Find every copy. List each place Roundcube Webmail runs, including test systems and anything set up outside IT.
- Compare versions. Match what you find against the affected versions in the vendor advisory.
- Check reachability. An affected system that faces the internet is urgent; one reachable only from inside still matters once an attacker has a foothold.
HackDrill
Find out whether this is reachable in your systems.
A version number tells you a system is affected. A hacking drill tells you whether an attacker can actually get in through a flaw like this one in Webmail. HackDrill's AI agents attack your product, infrastructure, network and cloud the way modern attackers do, and show you the real, exploitable gaps so you can fix them first.
Other tracked vulnerabilities in Roundcube products
| CVE | What it affects | Status | EPSS | Published |
|---|---|---|---|---|
| CVE-2025-49113 | Roundcube Webmail | Public exploit | 99.6% | 2 June 2025 |
| CVE-2025-68461 | Roundcube Webmail | Public exploit | 79.1% | 18 December 2025 |
| CVE-2024-42009 | Roundcube Webmail | Public exploit | 82.9% | 5 August 2024 |
| CVE-2024-37383 | Roundcube Webmail | Public exploit | 74.0% | 7 June 2024 |
| CVE-2020-13965 | Roundcube Webmail | No public exploit found | 76.6% | 9 June 2020 |
| CVE-2023-43770 | Roundcube Webmail | No public exploit found | 63.7% | 22 September 2023 |
Sources
- CVE record for CVE-2023-5631
- NVD entry
- CISA Known Exploited Vulnerabilities catalog, version 2026.12.04
- FIRST EPSS, scores dated 5 December 2026
- github.com
- github.com
- github.com
- github.com
- github.com
- roundcube.net
- github.com
- roundcube.net
Machine-readable: /api/cve/CVE-2023-5631.json