The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2023-43770

CVE-2023-43770: Roundcube Webmail XSS Vulnerability

CVE-2023-43770 is a cross-site scripting flaw in Roundcube Webmail that allows attackers to inject malicious code via crafted links in plain text emails. This article covers technical details, affected versions, and mitigation.

Published: February 11, 2026

CVE-2023-43770 Overview

CVE-2023-43770 is a Cross-Site Scripting (XSS) vulnerability affecting Roundcube Webmail, a widely-used open-source webmail client. The vulnerability exists in the program/lib/Roundcube/rcube_string_replacer.php component, which improperly handles link references in text/plain email messages. Attackers can exploit this flaw by crafting malicious links within plain-text emails that, when rendered by the vulnerable application, execute arbitrary JavaScript code in the context of the victim's browser session.

This vulnerability is particularly dangerous because it targets the email rendering pipeline, meaning users can be compromised simply by viewing a malicious email. The CISA has added this vulnerability to its Known Exploited Vulnerabilities (KEV) catalog, confirming active exploitation in the wild.

Critical Impact

This XSS vulnerability is actively exploited in the wild and listed in CISA's Known Exploited Vulnerabilities catalog. Attackers can steal session cookies, credentials, and perform actions on behalf of authenticated users by sending crafted emails.

Affected Products

  • Roundcube Webmail versions before 1.4.14
  • Roundcube Webmail versions 1.5.x before 1.5.4
  • Roundcube Webmail versions 1.6.x before 1.6.3
  • Debian Linux 10.0 (with vulnerable Roundcube packages)

Discovery Timeline

  • 2023-09-15 - Roundcube releases security update 1.6.3
  • 2023-09-22 - CVE-2023-43770 published to NVD
  • 2025-10-31 - Last updated in NVD database

Technical Details for CVE-2023-43770

Vulnerability Analysis

The vulnerability resides in the rcube_string_replacer.php file, which is responsible for parsing and converting plain-text email content into HTML for display in the webmail interface. Specifically, the issue involves the regular expression patterns used to identify and process link references (linkrefs) within email messages.

The vulnerable code uses regex patterns that fail to properly sanitize angle brackets (< and >) in link reference parsing. This oversight allows attackers to inject HTML and JavaScript content through specially crafted link reference syntax in plain-text emails. When the email is rendered, the malicious payload executes in the user's browser with the same privileges as the authenticated session.

This vulnerability is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation), a common but dangerous class of web application security flaws. The attack requires no special privileges on the server—only the ability to send an email to a victim using a vulnerable Roundcube instance.

Root Cause

The root cause lies in the insufficient input validation within the linkref regex patterns in rcube_string_replacer.php. The original patterns:

$this->linkref_index   = '/\[([^\]#]+)\](:?\s*' . substr($this->pattern, 1, -1) . ')/';
$this->linkref_pattern = '/\[([^\]#]+)\]/';

These patterns do not exclude angle brackets from the captured content, allowing HTML tags to be embedded within link references. When the application processes an email containing [malicious<script>payload</script>] style references, the angle brackets pass through validation and are rendered as executable HTML.

Attack Vector

The attack is network-based and requires user interaction—specifically, the victim must view a malicious email in their Roundcube webmail interface. An attacker sends a crafted text/plain email containing specially formatted link references with embedded JavaScript. When the victim opens the email, the payload executes automatically.

The security patch addresses this by adding <> characters to the exclusion list in the regex patterns:

php
// Security patch in program/lib/Roundcube/rcube_string_replacer.php
// Fix cross-site scripting (XSS) vulnerability in handling of linkrefs in plain text
         $link_prefix = "([\w]+:\/\/|{$this->noword}[Ww][Ww][Ww]\.|^[Ww][Ww][Ww]\.)";
 
         $this->options         = $options;
-        $this->linkref_index   = '/\[([^\]#]+)\](:?\s*' . substr($this->pattern, 1, -1) . ')/';
-        $this->linkref_pattern = '/\[([^\]#]+)\]/';
+        $this->linkref_index   = '/\[([^<>\]#]+)\](:?\s*' . substr($this->pattern, 1, -1) . ')/';
+        $this->linkref_pattern = '/\[([^<>\]#]+)\]/';
         $this->link_pattern    = "/$link_prefix($utf_domain([$url1]*[$url2]+)*)/";
         $this->mailto_pattern  = "/("
             . "[-\w!\#\$%&*+~\/^`|{}=]+(?:\.[-\w!\#\$%&*+~\/^`|{}=]+)*"  // local-part

Source: GitHub Commit Update

A proof-of-concept exploit has been publicly released demonstrating the attack methodology:

text
python cve-2023-43770.py -e attacker@gmail.com -p Attack3rPwd -t victim@example.com

Source: CVE-2023-43770-POC Repository

Detection Methods for CVE-2023-43770

Indicators of Compromise

  • Unusual JavaScript execution events originating from the Roundcube webmail interface
  • Email messages containing suspicious link reference patterns with angle brackets or script tags
  • Unexpected session token exfiltration or cookie theft attempts in web server logs
  • Anomalous outbound connections from users' browsers after viewing emails in Roundcube

Detection Strategies

  • Monitor web application logs for requests containing XSS payload signatures such as <script>, javascript:, or encoded variants in email content
  • Implement Content Security Policy (CSP) headers to detect and block inline script execution attempts
  • Deploy web application firewalls (WAF) with rules to identify common XSS patterns in email-related endpoints
  • Use browser-based XSS auditor logs to identify exploitation attempts against users

Monitoring Recommendations

  • Enable detailed logging for the Roundcube application, particularly for email rendering operations
  • Configure SIEM alerts for patterns matching XSS exploitation in webmail traffic
  • Monitor for unusual authentication patterns that may indicate session hijacking following XSS attacks
  • Track email delivery logs for messages with suspicious content patterns targeting multiple internal users

How to Mitigate CVE-2023-43770

Immediate Actions Required

  • Upgrade Roundcube Webmail immediately to version 1.4.14, 1.5.4, 1.6.3, or later depending on your branch
  • Review web server logs for evidence of exploitation attempts before patching
  • Implement Content Security Policy (CSP) headers to provide defense-in-depth against XSS attacks
  • Consider temporarily disabling plain-text email rendering if immediate patching is not possible

Patch Information

Roundcube has released patched versions addressing this vulnerability:

  • Version 1.4.14 for the 1.4.x branch
  • Version 1.5.4 for the 1.5.x branch
  • Version 1.6.3 for the 1.6.x branch

The fix is available in the GitHub security commit. Debian Linux users should apply the security updates referenced in the Debian LTS Announcement. For complete details, see the Roundcube Security Update announcement.

Workarounds

  • Deploy a web application firewall (WAF) with rules to filter XSS patterns in email content
  • Implement strict Content Security Policy headers to block inline script execution
  • If patching is delayed, consider configuring email clients to render all messages as plain text without link processing
  • Restrict access to Roundcube webmail to trusted networks or VPN connections until patches are applied
bash
# Example Apache configuration to add CSP headers
<IfModule mod_headers.c>
    Header set Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; frame-ancestors 'none';"
    Header set X-Content-Type-Options "nosniff"
    Header set X-XSS-Protection "1; mode=block"
</IfModule>

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechRoundcube Webmail

  • SeverityMEDIUM

  • CVSS Score6.1

  • EPSS Probability73.06%

  • Known ExploitedYes
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityNone
  • CISA KEV Information
  • In CISA KEVYes
  • CWE References
  • CWE-79
  • Technical References
  • Debian LTS Announcement

  • Roundcube Security Update

  • CISA Known Exploits Catalog
  • Vendor Resources
  • GitHub Commit Update
  • Related CVEs
  • CVE-2025-68461: Roundcube Webmail XSS Vulnerability

  • CVE-2020-35730: Roundcube Webmail XSS Vulnerability

  • CVE-2024-37383: Roundcube Webmail XSS Vulnerability

  • CVE-2023-5631: Roundcube Webmail XSS Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English