← Vulnerability feed

Vulnerability record · CVE-2023-5631 · published 18 October 2023

CVE-2023-5631: Roundcube Webmail stored XSS via crafted SVG in HTML email

Roundcube · Webmail

Roundcube before 1.4.15, 1.5.x before 1.5.5, and 1.6.x before 1.6.4 mishandle sanitization in program/lib/Roundcube/rcube_washtml.php, allowing a stored cross-site scripting payload delivered through an HTML email containing a crafted SVG document. Because the payload is stored in the mailbox, it can execute in the victim's webmail session whenever the message is rendered.

5.4 CVSS 3.1 Medium CISA KEV since 26 Oct 2023 EPSS 3.7% · top 9.5% CWE-79 · Cross-site scripting
5.4CVSS 3.1 base score
3.7%EPSS exploitation probability, 30 days
YesIn CISA KEV, fix deadline passed
3Affected product versions listed by NVD
31References, 2 tagged exploit
17 Jun 2026Last modified by NVD

Description

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.

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 17 September 2026. Confidence: high.

high priorityThe flaw is a stored XSS in a widely deployed webmail product that CISA lists as known exploited with a very high EPSS score, even though the CVSS base score is only 5.4.

What it is

Roundcube before 1.4.15, 1.5.x before 1.5.5, and 1.6.x before 1.6.4 mishandle sanitization in program/lib/Roundcube/rcube_washtml.php, allowing a stored cross-site scripting payload delivered through an HTML email containing a crafted SVG document. Because the payload is stored in the mailbox, it can execute in the victim's webmail session whenever the message is rendered.

Impact

An attacker can run arbitrary JavaScript in the context of the victim's Roundcube session, enabling session or credential theft and actions performed as the victim. The CVSS vector scopes the impact to low confidentiality and integrity with no availability effect.

Attack surface

Reached remotely over the network by sending an HTML email with a crafted SVG to a Roundcube user; the vector requires low privileges (PR:L) and user interaction (UI:R), meaning the victim must open or view the message for the script to run.

Exploitation

CISA added this to the Known Exploited Vulnerabilities catalog on 2023-10-26 with a 2023-11-16 remediation due date, and EPSS gives a 30-day probability of 0.75873 (99.5th percentile); a reference is tagged Exploit, though no ransomware campaign use is documented.

What to do

  • Upgrade Roundcube to 1.4.15, 1.5.5, or 1.6.4 (or later) as applicable to your branch.
  • Apply the vendor patches referenced in the Roundcube commits and Debian/Fedora advisories if immediate upgrade is not possible.
  • If patching is delayed, follow CISA's required action to apply vendor mitigations or discontinue use of the product.
  • Restrict or disable rendering of remote HTML content and SVG in webmail where policy allows.

Detection

  • Search mail logs and message stores for HTML emails containing SVG content, especially embedded script or event handlers.
  • Monitor webmail access logs for anomalous JavaScript-driven requests or session activity following message viewing.
  • Hunt for known exploit indicators from the referenced GitHub issue and public advisories in inbound mail and webmail telemetry.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Exploitation in the wild

CISA added CVE-2023-5631 to the Known Exploited Vulnerabilities catalog on 26 October 2023 as "Roundcube Webmail Persistent Cross-Site Scripting (XSS) Vulnerability". Required action: Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable. Federal deadline 16 November 2023.

Affected products

3 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
http://www.openwall.com/lists/oss-security/2023/11/01/1 Mailing ListThird Party Advisory
http://www.openwall.com/lists/oss-security/2023/11/01/3 Mailing ListThird Party Advisory
http://www.openwall.com/lists/oss-security/2023/11/17/2 Mailing ListThird Party Advisory
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1054079 Mailing ListPatch
https://github.com/roundcube/roundcubemail/commit/41756cc3331b495cc0b71886984474dc529dd31d Patch
https://github.com/roundcube/roundcubemail/commit/6ee6e7ae301e165e2b2cb703edf75552e5376613 Patch
https://github.com/roundcube/roundcubemail/issues/9168 ExploitIssue Tracking
https://github.com/roundcube/roundcubemail/releases/tag/1.4.15 Release Notes
https://github.com/roundcube/roundcubemail/releases/tag/1.5.5 Release Notes
https://github.com/roundcube/roundcubemail/releases/tag/1.6.4 Release Notes
https://lists.debian.org/debian-lts-announce/2023/10/msg00035.html Mailing ListThird Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LK67Q46OIEGJCRQUBHKLH3IIJ Mailing List
https://roundcube.net/news/2023/10/16/security-update-1.6.4-released Release Notes
https://roundcube.net/news/2023/10/16/security-updates-1.5.5-and-1.4.15 Release Notes
https://www.debian.org/security/2023/dsa-5531 Mailing List
http://www.openwall.com/lists/oss-security/2023/11/01/1 Mailing ListThird Party Advisory
http://www.openwall.com/lists/oss-security/2023/11/01/3 Mailing ListThird Party Advisory
http://www.openwall.com/lists/oss-security/2023/11/17/2 Mailing ListThird Party Advisory
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1054079 Mailing ListPatch
https://github.com/roundcube/roundcubemail/commit/41756cc3331b495cc0b71886984474dc529dd31d Patch
https://github.com/roundcube/roundcubemail/commit/6ee6e7ae301e165e2b2cb703edf75552e5376613 Patch
https://github.com/roundcube/roundcubemail/issues/9168 ExploitIssue Tracking
https://github.com/roundcube/roundcubemail/releases/tag/1.4.15 Release Notes
https://github.com/roundcube/roundcubemail/releases/tag/1.5.5 Release Notes
https://github.com/roundcube/roundcubemail/releases/tag/1.6.4 Release Notes
https://lists.debian.org/debian-lts-announce/2023/10/msg00035.html Mailing ListThird Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LK67Q46OIEGJCRQUBHKLH3IIJ Mailing List
https://roundcube.net/news/2023/10/16/security-update-1.6.4-released Release Notes
https://roundcube.net/news/2023/10/16/security-updates-1.5.5-and-1.4.15 Release Notes
https://www.debian.org/security/2023/dsa-5531 Mailing List
https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2023-5631 US Government Resource

Track CVE-2023-5631 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2021-44026Roundcube Webmail SQL injection via search parametersRoundcube Webmail before 1.3.17 and 1.4.x before 1.4.12 is prone to SQL injection through the search or search_params input. The flaw is remotely rea…KEVEPSS 70%analysed9.8CVE-2020-12641Roundcube Webmail OS command injection via image conversion path settingsRoundcube Webmail before 1.4.4 passes the im_convert_path and im_identify_path configuration settings to a shell without sanitization in rcube_image.…KEVEPSS 100%analysed7.8CVE-2017-16651Roundcube Webmail file disclosure via attachment pluginRoundcube Webmail before 1.1.10, 1.2.x before 1.2.7, and 1.3.x before 1.3.3 allows an authenticated user to read arbitrary files on the host filesyst…KEVEPSS 39%analysed6.1CVE-2024-37383Roundcube Webmail XSS via SVG animate attributesRoundcube Webmail before 1.5.7 and 1.6.x before 1.6.7 is vulnerable to cross-site scripting through SVG animate attributes. Because the flaw sits in …KEVEPSS 7.7%analysed6.1CVE-2023-43770Roundcube Webmail XSS via crafted links in plain-text emailsRoundcube before 1.4.14, 1.5.x before 1.5.4, and 1.6.x before 1.6.3 is vulnerable to cross-site scripting because of how rcube_string_replacer.php ha…KEVEPSS 2.9%analysed6.1CVE-2020-35730Roundcube Webmail stored XSS via link reference handlingRoundcube Webmail mishandles JavaScript inside a link reference element in plain text email, allowing script injection through linkref_addindex in rc…KEVEPSS 31%analysed6.1CVE-2020-13965Roundcube Webmail XSS via malicious XML attachment previewRoundcube Webmail before 1.3.12 and 1.4.x before 1.4.5 allows cross-site scripting because text/xml is among the allowed types for attachment preview…KEVEPSS 77%analysed10.0CVE-2009-0846Mit kerberos 5 vulnerabilityThe asn1_decode_generaltime function in lib/krb5/asn.1/asn1_decode.c in the ASN.1 GeneralizedTime decoder in MIT Kerberos 5 (aka krb5) before 1.6.4 a…EPSS 8.9%

Source: NIST National Vulnerability Database (record CVE-2023-5631), CISA KEV, FIRST EPSS (scores of 2026-11-29). This page is refreshed as NVD updates the record.