
CVE-2026-48849 β Stored XSS, HTML & CSS injection in Roundcube Webmail (1.6.x/1.7.x) via unsanitized draft subject field. Auto-executes on login. CVSS 4.4. Discovered by Anand Jogawade.
An unsanitized subject field in draft/session restoration allows stored XSS, HTML injection, and CSS injection β executing automatically on login without user interaction.
Discovered and reported by Anand Jogawade (zazy)
| Field | Details |
|---|---|
| CVE ID | CVE-2026-48849 |
| Type | Stored XSS / HTML Injection / CSS Injection |
| CWE | CWE-79 β Improper Neutralization of Input During Web Page Generation |
| CVSS v3.1 | 4.4 / Medium β AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N |
| Product | Roundcube Webmail |
| Affected | 1.6.x before 1.6.16, 1.7.x before 1.7.1 |
| Fixed In | 1.6.16, 1.7.1 |
| Discoverer | Anand Jogawade (zazy) |
| GHSA | GHSA-2m7q-4j9m-89vh |
ATTACKER VICTIM
βββββββββ ββββββββ
βββββββββββββββββββββββββββββββββββββββ
β 1. Compose email with XSS payload β
β in the Subject field β
ββββββββββββββββ¬βββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββ
β 2. Trigger background action β
β (attach image, auto-save) β
β β draft saved server-side β
ββββββββββββββββ¬βββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββ
β 3. Invalidate session β ββββββββββββββββββββββββββββββββ
β (delete/modify session cookie) β β 4. Victim sees "session β
ββββββββββββββββ¬βββββββββββββββββββββββ β expired" β logs back in β
β ββββββββββββββββ¬ββββββββββββββββ
β β
β βΌ
β ββββββββββββββββββββββββββββββββ
β β 5. Session restore triggers β
βββββββββββββββββββββββββββββββΆβ draft recovery β
β β XSS EXECUTES β
β β HTML/CSS injected β
ββββββββββββββββββββββββββββββββ
β οΈ NO USER INTERACTION
REQUIRED AFTER LOGIN
Successful exploitation enables:
document.cookie exfiltrationKey severity factor: The payload executes automatically during session restoration after login β no clicks, no links, no additional user interaction required.
| Version Range | Status |
|---|---|
| 1.6.0 β 1.6.15 | β Vulnerable |
| 1.6.16 | β Fixed |
| 1.7.0 | β Vulnerable |
| 1.7.1 | β Fixed |
| 1.5.x and earlier | β οΈ Vulnerable (tested on 1.5.9) |
roundcube_sessauth cookie in Repeater, then send and render β it will show the login page'"><script>alert("XSS")</script> <h1>HTML</h1><h2>Injection</h2> <b/style=position:fixed;top:0;left:0;font-size:200px>CSS Injection<!--
Payload breakdown:
| Component | Purpose |
|---|---|
'"> | Breaks out of attribute context (single quote, double quote, closing tag) |
<script>alert("XSS")</script> | JavaScript execution β Stored XSS |
<h1>HTML</h1><h2>Injection</h2> | HTML injection β arbitrary HTML rendering |
<b/style=position:fixed;top:0;left:0;font-size:200px> | CSS injection β fixed overlay covering the page |
<!-- | HTML comment to suppress rendering of remaining page content |




πΉ Full exploitation walkthrough: Composing the payload β session invalidation β re-login β automatic XSS + HTML + CSS injection