Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-2026-35540

CVE-2026-35540: Roundcube Webmail SSRF Vulnerability

CVE-2026-35540 is an SSRF vulnerability in Roundcube Webmail caused by insufficient CSS sanitization in HTML emails. This flaw allows attackers to access local network hosts. Learn about technical details, versions, and fixes.

Published: April 10, 2026

CVE-2026-35540 Overview

An insufficient CSS sanitization vulnerability has been discovered in Roundcube Webmail versions 1.6.0 through 1.6.13. The vulnerability exists in the handling of HTML email messages containing Cascading Style Sheets (CSS) with external stylesheet links. When processing these emails, Roundcube fails to properly validate and sanitize stylesheet URLs, allowing attackers to craft malicious emails with CSS links pointing to local network hosts.

Critical Impact

Attackers can exploit this vulnerability to perform Server-Side Request Forgery (SSRF) attacks or exfiltrate sensitive information by tricking the Roundcube server into making requests to internal network resources via maliciously crafted email stylesheet links.

Affected Products

  • Roundcube Webmail versions 1.6.0 to 1.6.13
  • Roundcube Webmail versions prior to 1.7-rc5
  • Roundcube Webmail versions prior to 1.5.14

Discovery Timeline

  • March 18, 2026 - Roundcube releases security patches in versions 1.7-rc5, 1.6.14, and 1.5.14
  • April 3, 2026 - CVE-2026-35540 published to NVD
  • April 7, 2026 - Last updated in NVD database

Technical Details for CVE-2026-35540

Vulnerability Analysis

This vulnerability stems from inadequate input validation in the CSS handling routines within Roundcube Webmail. When an HTML email contains <link> tags referencing external stylesheets, Roundcube processes these references to enable CSS styling of email content. However, the application fails to check whether stylesheet URLs resolve to internal or local network addresses before fetching them.

The vulnerable code path allows HTTP/HTTPS URLs without validating whether they point to private IP ranges (such as 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, or 127.0.0.0/8). This oversight enables attackers to craft emails with stylesheet links targeting internal infrastructure, cloud metadata endpoints, or other sensitive network resources accessible from the Roundcube server.

Root Cause

The root cause is classified as CWE-669 (Incorrect Resource Transfer Between Spheres). The application transfers control to fetch external resources without properly validating that the target URLs are safe to access. The original code only verified that the URL matched an HTTP/HTTPS pattern but did not check whether the destination was a local or internal network address.

Attack Vector

An attacker can exploit this vulnerability through the network by sending a specially crafted HTML email to a victim's mailbox. When the victim opens the email in Roundcube Webmail, the server-side CSS processing attempts to fetch the malicious stylesheet URL. Since no validation is performed against local network addresses, the Roundcube server makes the request on behalf of the attacker, potentially exposing internal services, cloud metadata APIs, or other sensitive resources.

The following patch demonstrates the security fix applied to address this vulnerability:

php
         if (isset($attrib['href'])) {
             $attrib['href'] = preg_replace('/[\\x00-\\x1F]/', '', $attrib['href']);
 
-            if ($tag == 'link' && preg_match('/^https?:\/\//i', $attrib['href'])) {
+            if ($tag == 'link' && preg_match('/^https?:\/\//i', $attrib['href']) && !rcube_utils::is_local_url($attrib['href'])) {
                 $tempurl = 'tmp-' . md5($attrib['href']) . '.css';
                 $_SESSION['modcssurls'][$tempurl] = $attrib['href'];
                 $attrib['href'] = $rcmail->url([

Source: Roundcube GitHub Commit

The fix introduces a new function rcube_utils::is_local_url() that validates URLs against local and private network ranges before allowing external stylesheet fetches. Additionally, the mlocati/ip-lib library was added as a dependency to provide robust IP address validation:

text
         "guzzlehttp/promises": "^2.0",
         "league/commonmark": "^2.7",
         "masterminds/html5": "~2.9.0",
+        "mlocati/ip-lib": "^1.22.0",
         "pear/auth_sasl": "~1.2.0",
         "pear/crypt_gpg": "~1.6.3",
         "pear/mail_mime": "~1.10.11",

Source: Roundcube GitHub Commit

Detection Methods for CVE-2026-35540

Indicators of Compromise

  • Unusual outbound HTTP/HTTPS requests from the Roundcube server to internal IP addresses (e.g., 127.0.0.1, 10.x.x.x, 172.16.x.x, 192.168.x.x)
  • Email messages containing <link rel="stylesheet"> tags with URLs pointing to private network ranges or localhost
  • Unexpected connections to cloud metadata endpoints such as 169.254.169.254 from the webmail server
  • Log entries showing CSS fetch requests to internal hostnames or IP addresses not typically accessed

Detection Strategies

  • Deploy network monitoring rules to alert on HTTP/HTTPS requests from webmail servers to RFC1918 private address ranges
  • Implement web application firewall (WAF) rules to detect and block emails containing stylesheet links to internal network addresses
  • Review Roundcube access logs for patterns indicating stylesheet requests to unusual or internal destinations
  • Configure intrusion detection systems (IDS) to monitor for SSRF attack patterns targeting cloud metadata services

Monitoring Recommendations

  • Enable verbose logging on the Roundcube server to capture all external resource fetch attempts
  • Set up alerts for any outbound connections from the webmail server to private IP ranges
  • Monitor for emails with suspicious CSS link patterns in your mail filtering infrastructure
  • Implement egress filtering to restrict the Roundcube server from accessing internal network segments unnecessarily

How to Mitigate CVE-2026-35540

Immediate Actions Required

  • Upgrade Roundcube Webmail to version 1.6.14, 1.5.14, or 1.7-rc5 immediately
  • If immediate patching is not possible, disable external CSS loading in Roundcube configuration
  • Review server logs for any evidence of exploitation attempts
  • Implement network segmentation to limit what internal resources the webmail server can access

Patch Information

Roundcube has released security updates addressing this vulnerability. The fix introduces the rcube_utils::is_local_url() function that validates stylesheet URLs against local and private IP address ranges before fetching external resources. The patch also adds the mlocati/ip-lib library (version 1.22.0 or higher) as a dependency for robust IP address validation.

Patched versions are available:

  • Roundcube 1.6.14
  • Roundcube 1.7-rc5
  • Roundcube 1.5.14 (for legacy installations)

For detailed patch information, see the Roundcube Security Update Announcement.

Workarounds

  • Disable remote CSS loading by setting $config['allow_remote_resources'] = false; in your Roundcube configuration
  • Implement network-level egress filtering to prevent the webmail server from making requests to internal IP ranges
  • Deploy a reverse proxy or WAF to inspect and block suspicious stylesheet URLs in incoming emails
  • Consider running Roundcube in an isolated network segment with limited access to internal resources
bash
# Configuration example - Disable remote resources in Roundcube config
# Add to config/config.inc.php

# Disable loading of remote resources (images, stylesheets) in HTML messages
$config['allow_remote_resources'] = false;

# Alternatively, implement network-level restrictions via iptables
# Block outbound connections to private IP ranges from webmail server
iptables -A OUTPUT -d 10.0.0.0/8 -p tcp --dport 80 -j DROP
iptables -A OUTPUT -d 10.0.0.0/8 -p tcp --dport 443 -j DROP
iptables -A OUTPUT -d 172.16.0.0/12 -p tcp --dport 80 -j DROP
iptables -A OUTPUT -d 172.16.0.0/12 -p tcp --dport 443 -j DROP
iptables -A OUTPUT -d 192.168.0.0/16 -p tcp --dport 80 -j DROP
iptables -A OUTPUT -d 192.168.0.0/16 -p tcp --dport 443 -j DROP
iptables -A OUTPUT -d 169.254.169.254 -j DROP

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

  • Vulnerability Details
  • TypeSSRF

  • Vendor/TechRoundcube Webmail

  • SeverityMEDIUM

  • CVSS Score6.5

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-669
  • Technical References
  • Roundcube Release 1.6.14

  • Roundcube Release 1.7-rc5
  • Vendor Resources
  • Roundcube Commit Update

  • Roundcube Commit Update

  • Roundcube Security Update Announcement
  • Related CVEs
  • CVE-2026-35544: Roundcube Webmail XSS Vulnerability

  • CVE-2026-35538: Roundcube Webmail CSRF Vulnerability

  • CVE-2026-35539: Roundcube Webmail XSS Vulnerability

  • CVE-2026-35541: Roundcube Webmail Auth Bypass Vulnerability
Default Legacy - Prefooter | 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