Skip to main content
Mallory
MediumCISA KEVExploited in the wildPublic exploit

XSS in Roundcube text/plain message link handling

IdentifiersCVE-2023-43770CWE-79· Improper Neutralization of Input…Also known asroundcube_cve_2023_43770

CVE-2023-43770 is a cross-site scripting vulnerability in Roundcube Webmail affecting versions before 1.4.14, 1.5.x before 1.5.4, and 1.6.x before 1.6.3. The flaw is triggered when Roundcube processes crafted links in text/plain email messages due to unsafe behavior in program/lib/Roundcube/rcube_string_replacer.php. A specially crafted email can cause attacker-controlled JavaScript to execute in the context of the victim’s authenticated Roundcube webmail session when the message is viewed. Reporting in the provided content indicates the issue was operationally exploited in espionage campaigns, including so-called zero-click or near-zero-click scenarios where opening or merely viewing the email in the webmail interface was sufficient to trigger script execution.

Share:
For your environment

Are you exposed to this one?

Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.

ANALYST BRIEF

Impact, mitigation & remediation

What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation allows execution of arbitrary JavaScript in the victim’s Roundcube session context. In observed campaigns, this enabled theft of webmail credentials, mailbox contents, contacts, login history, and in some cases two-factor authentication material and creation of malicious mail-forwarding rules via ManageSieve. The practical impact is compromise of the victim’s mailbox, ongoing surveillance of incoming mail, credential theft, and potential persistence within the email account. The vulnerability does not by itself imply host-level remote code execution on the underlying server, but it can provide substantial access to data and actions available to the authenticated webmail user.

Mitigation

If you can’t patch tonight, do this now.

If immediate patching is not possible, reduce exposure by restricting access to Roundcube, filtering or quarantining suspicious emails containing crafted links or active content, and monitoring webmail infrastructure for XSS indicators and anomalous POST requests from authenticated sessions. Audit ManageSieve configurations and mailbox forwarding rules for unauthorized entries, especially attacker-created rules masquerading as benign system rules. Monitor for credential theft artifacts, unusual session activity, and suspicious access to contacts, settings, or 2FA-related pages. Blocking known malicious infrastructure associated with active exploitation may help, but patching remains the primary mitigation.

Remediation

Patch, then assume compromise.

Upgrade Roundcube to a fixed release: 1.4.14 or later on the 1.4 branch, 1.5.4 or later on the 1.5 branch, or 1.6.3 or later on the 1.6 branch. Apply vendor patches across all exposed Roundcube instances, including internet-facing and internally hosted deployments. After patching, review potentially affected accounts for unauthorized mailbox access, suspicious JavaScript-bearing emails, credential compromise, unexpected login activity, and unauthorized Sieve/forwarding rules. If exploitation is suspected, rotate affected passwords and re-enroll MFA secrets where applicable.
PUBLIC EXPLOITS

Exploits

1 valid exploit after Mallory filtered fakes, detection scripts, and README-only repos.

VALID 1 / 1 TOTALView more in app
CVE-2023-43770-POCMaturityPoCVerified exploit

This repository provides a proof-of-concept (POC) exploit for CVE-2023-43770, a stored cross-site scripting (XSS) vulnerability in Roundcube Webmail (versions before 1.4.14, 1.5.x before 1.5.4, and 1.6.x before 1.6.3). The exploit consists of a single Python script (cve-2023-43770.py) that sends a specially crafted plain text email containing a malicious JavaScript payload to a target user. The script requires the attacker to provide sender email credentials and the recipient's email address, and it uses SMTP (defaulting to smtp.gmail.com:587) to deliver the payload. When the victim views the email in a vulnerable Roundcube instance, the JavaScript executes, demonstrating the XSS vulnerability. The repository also includes a README.md with usage instructions, references, and a disclaimer. No detection or scanning functionality is present; the code is strictly a POC for educational and testing purposes.

s3cb0yDisclosed Sep 27, 2023pythonemail
EXPOSURE SURFACE

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
DebianDebian Linuxoperating_system
RoundcubeWebmailapplication

Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.

What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence9

Every observed campaign linking this CVE to a named adversary.

Associated malware2

Malware families riding this exploit, with evidence and IOCs.

Detection signatures1

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity1

Community discussion across Reddit, Mastodon, and other social sources.