Stored XSS via whitespace-obfuscated SVG media type
Published Oct 18, 2023 · Updated Oct 21, 2025
Stored XSS in Roundcube Webmail before 1.4.15, 1.5.0 through 1.5.4, and 1.6.0 through 1.6.3 lets remote attackers run JavaScript. The wash_uri path in program/lib/Roundcube/rcube_washtml.php checks the SVG media type before removing whitespace, so a crafted data:image/s vg+xml URI bypasses SVG sanitization. Execution occurs when a user views the attacker's HTML email, and the script runs in the victim's Roundcube browser context.
Summary
What happened
Stored XSS in Roundcube Webmail before 1.4.15, 1.5.0 through 1.5.4, and 1.6.0 through 1.6.3 lets remote attackers run JavaScript. The wash_uri path in program/lib/Roundcube/rcube_washtml.php checks the SVG media type before removing whitespace, so a crafted data:image/s vg+xml URI bypasses SVG sanitization. Execution occurs when a user views the attacker's HTML email, and the script runs in the victim's Roundcube browser context.
The record
- CVE
- CVE-2023-5631
- Published
- Oct 18, 2023
- Updated
- Oct 21, 2025
- Vendor
- Roundcube
- Product
- Roundcube Webmail
- Classifications
- CWE-79, T1203
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Oct 18, 2023CVE publishedPublication date reported by the CVE source.
- Oct 21, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=1.4.0 <1.5.14
- Affected versionversion=1.5.0 <1.5.4
- Affected versionversion=1.6.0 <1.6.3
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- XSS with SVG use tag on RC 1.5.3proof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Reported exploitation
- CISA Known Exploited Vulnerabilities Catalog listing for CVE-2023-5631known exploited catalog
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo