Skip to main content
Vulnerability Database/CVE-2026-114719

CVE-2026-114719: Roundcube Webmail CSRF Vulnerability

CVE-2026-114719 is a cross-site request forgery bypass flaw in Roundcube Webmail that allows attackers to execute unauthorized mark-as-junk actions. This post explains its technical details, affected versions, and mitigation steps.

Published:

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

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-114719 Overview

CVE-2026-114719 is a Cross-Site Request Forgery (CSRF) validation bypass [CWE-352] in the markasjunk plugin of Roundcube Webmail. The flaw affects Roundcube Webmail versions before 1.6.20 and 1.7.x before 1.7.5. The mark-as-junk action reads the _uid parameter from POST data but passes it to rcmail::get_uids() without constraining the input mode. As a result, values re-read inside that helper can be taken from the query string, allowing the action to execute without a valid CSRF token.

Critical Impact

An attacker can trick an authenticated Roundcube user into marking arbitrary messages as junk or ham through a crafted link, bypassing CSRF protection on the markasjunk plugin.

Affected Products

  • Roundcube Webmail versions prior to 1.6.20
  • Roundcube Webmail 1.7.x versions prior to 1.7.5
  • Deployments using the bundled markasjunk plugin

Discovery Timeline

  • 2026-10-19 - Roundcube publishes security updates 1.6.20 and 1.7.5
  • 2026-10-22 - CVE-2026-114719 published to NVD
  • 2026-10-22 - Last updated in NVD database

Technical Details for CVE-2026-114719

Vulnerability Analysis

The vulnerability lives in plugins/markasjunk/markasjunk.php. The plugin fetches the _uid POST parameter using rcube_utils::get_input_value('_uid', rcube_utils::INPUT_POST), which looks correct at first glance. However, that value is passed into rcmail::get_uids() without specifying the input source. Inside the helper, the UID list can be re-read from any input scope, including the query string (GET), which Roundcube does not require a CSRF token for. An attacker can therefore submit a crafted GET request that triggers the junk or ham action on messages selected by UID, with no POST body and no CSRF token.

The impact is limited to integrity of the mailbox state. An attacker can cause legitimate messages to be moved to the spam folder, or move spam back into the inbox, if the victim visits an attacker-controlled page while authenticated to Roundcube.

Root Cause

The root cause is improper enforcement of input source in a state-changing action. CSRF defenses depend on binding the request to a POST body that includes a session-bound token. By calling rcmail::get_uids() without pinning the input mode, the plugin allowed the UID input to fall back to a different scope, breaking the CSRF boundary. This is a classic [CWE-352] Cross-Site Request Forgery pattern where a protected handler trusts a helper that silently reads untrusted input.

Attack Vector

Exploitation requires the victim to be authenticated to Roundcube and to load attacker-controlled content in the same browser. The attacker crafts a request to the markasjunk endpoint with _uid and _mbox parameters. Because the vulnerable code path accepts those values outside of POST, no CSRF token is required and the action executes under the victim's session.

php
// Patched code in plugins/markasjunk/markasjunk.php
// Source: https://github.com/roundcube/roundcubemail/commit/15b0dc0d6e5712310c8f663577361bf8132a7f81
$is_spam    = $this->rcube->action == 'plugin.markasjunk.junk';
$uids       = rcube_utils::get_input_value('_uid', rcube_utils::INPUT_POST);
$mbox_name  = rcube_utils::get_input_string('_mbox', rcube_utils::INPUT_POST);
// Before: $messageset = rcmail::get_uids($uids, $mbox_name, $multifolder);
// After:  pass INPUT_POST explicitly so get_uids() cannot fall back to GET
$messageset = rcmail::get_uids($uids, $mbox_name, $multifolder, rcube_utils::INPUT_POST);
$dest_mbox  = $is_spam ? $this->spam_mbox : $this->ham_mbox;

The equivalent fix for the 1.7.x branch applies the same change to rcmail_action::get_uids(). Source: Roundcube Commit 6ea2bbe3.

Detection Methods for CVE-2026-114719

Indicators of Compromise

  • Unexpected movement of messages between the inbox and spam/junk folders without corresponding user activity in Roundcube UI logs
  • HTTP requests to ?_task=mail&_action=plugin.markasjunk.junk or plugin.markasjunk.ham with _uid and _mbox values supplied in the query string rather than the POST body
  • Requests to the markasjunk endpoint with a missing or stale _token parameter
  • Referer headers on markasjunk requests that point to external, non-Roundcube origins

Detection Strategies

  • Inspect webserver access logs for GET requests targeting the markasjunk plugin actions, which should normally be POST-only
  • Correlate markasjunk actions with Roundcube session identifiers to flag actions that originate from cross-origin requests
  • Compare installed Roundcube versions against 1.6.20 and 1.7.5 to identify vulnerable instances exposed to users

Monitoring Recommendations

  • Enable Roundcube's user activity logging and forward webmail access logs to a centralized SIEM for correlation
  • Alert on anomalous spikes in mark-as-junk or mark-as-ham actions per account
  • Monitor outbound links clicked from webmail sessions to detect delivery of CSRF payloads targeting authenticated users

How to Mitigate CVE-2026-114719

Immediate Actions Required

  • Upgrade Roundcube Webmail to 1.6.20 or 1.7.5, as announced in the Roundcube Security Updates Announcement
  • Audit installed plugins and confirm that markasjunk is running the patched version shipped with these releases
  • Review mail server logs for evidence of unexpected junk/ham reclassification during the exposure window

Patch Information

The upstream fix is tracked in the commit titled "Fix CSRF validation bypass in the mark-as-junk action". It modifies plugins/markasjunk/markasjunk.php to pass rcube_utils::INPUT_POST explicitly to rcmail::get_uids() (1.6.x) and rcmail_action::get_uids() (1.7.x). See Roundcube Commit 15b0dc0d, Roundcube Release 1.6.20, and Roundcube Release 1.7.5. Debian tracking is available in Debian Bug Report #1151279.

Workarounds

  • Disable the markasjunk plugin in config/config.inc.php by removing it from the plugins array until the patched version can be deployed
  • Enforce POST-only access to Roundcube plugin endpoints at the reverse proxy or web application firewall, rejecting GET requests to plugin.markasjunk.* actions
  • Set SameSite=Lax or SameSite=Strict on Roundcube session cookies to reduce cross-origin exploitation reliability
bash
# Example: disable the markasjunk plugin in Roundcube config
# Edit config/config.inc.php and remove 'markasjunk' from the plugins list
$config['plugins'] = [
    'archive',
    'zipdownload',
    // 'markasjunk',  // disabled pending upgrade to 1.6.20 / 1.7.5
];

# Example nginx rule to reject GET requests to the markasjunk action
if ($request_method = GET) {
    if ($arg__action ~* "^plugin\.markasjunk\.") {
        return 405;
    }
}

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

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.