On 23 November 2026, Roundcube published security updates 1.7.7 and 1.6.22, which close twelve webmail vulnerabilities between them. The list covers two Sieve script injections, an HTTP request injection through the ATD spellcheck backend, four ways around the CSS sandbox and remote content blocking, and a silent fall back to plaintext IMAP, SMTP and ManageSieve when STARTTLS is configured. The announcement names no CVE IDs, so there are none to search for yet. It also says this is the last 1.6 release.
That second fact matters more than the patch itself. A 1.6 server that takes 1.6.22 today has nowhere to go next time, so we treat the 1.6 to 1.7 move as part of this update, not a later project. Every command below ran in November 2026 on Debian 13 with PHP 8.4 and Ubuntu 26.04 with PHP 8.5, against tarball installs of 1.6.21 and 1.7.6 and against the distro packages, and no step turns a security control off.
Fixed versions by branch
Find your branch in the left column. Any build below the fixed version carries the code for all twelve bugs, though config and PHP version decide how many a host exposes, and anything older than 1.6 has been out of support for a while and should go straight to 1.7.7.
| Branch you run | Fixed version | Released | Future security fixes |
|---|---|---|---|
| 1.7.x | 1.7.7 | 23 Nov 2026 | Yes, the only supported line |
| 1.6.x (LTS) | 1.6.22 | 23 Nov 2026 | No, this is the final 1.6 release |
| 1.5.x and older | None | n/a | No, upgrade to 1.7.7 |
Both releases went up on GitHub within two minutes of each other, 1.6.22 at 11:23 and 1.7.7 at 11:25 UTC, and both tags are GPG signed. The vendor’s own wording is blunt: “This is the last 1.6 release. Please, upgrade to 1.7 asap.” The full text and reporter credits are in the Roundcube security announcement.
The twelve fixes and the config each one needs
Several of these bugs only exist when a particular plugin, backend or PHP version is in play, and that decides how exposed a server is until it’s patched. The right column is what a host has to run for the row to apply. We read each condition from the 1.6 and 1.7 defaults in config/defaults.inc.php, not from guesswork about the fix.
| Fix in 1.7.7 and 1.6.22 | What it exposes | Applies when |
|---|---|---|
| HTTP request injection via the spellcheck ATD backend (fixed again) | Requests the server sends to the spellcheck service can be altered | enable_spellcheck is true and spellcheck_engine is atd |
| CSS scoping bypass via HTML comments in inline style | Message CSS escapes its sandbox and restyles the webmail page | Any user opens a crafted HTML message |
| Remote content blocking bypass via CSS comments in SVG FuncIRI attributes | Remote resources load although images are blocked, which tells the sender the mail was read | Any user opens a crafted message |
| CSS scoping bypass via direct access to the CSS proxy and multiple style links | Same class as the inline style row, through a different path | Any logged in user |
| Response disclosure in the CSS proxy using leading whitespace or BOM | Content fetched through the CSS proxy leaks back to the page | Any logged in user |
| Namespace prefixed attribute bypass of the washtml allowlist | HTML attributes the sanitizer should strip survive | PHP older than 8.4 only |
| Insecure attachment content (PDF, PostScript, SVG) passed to ImageMagick (fixed again) | Untrusted attachments reach ImageMagick for thumbnails | im_convert_path is set or the PHP imagick extension is loaded |
| Sieve script injection via a comparator name | A user writes Sieve rules the filter UI should not allow | managesieve plugin enabled |
| DoS via an uncapped MAPI multi value loop in the TNEF decoder | A crafted winmail.dat attachment ties up a PHP worker | Any user opens such a message |
| XML injection in the XIMSS driver of the password plugin | Altered requests to the CommuniGate XIMSS server | password plugin with password_driver set to ximss |
| Fall back to an insecure IMAP, SMTP or ManageSieve connection when TLS is configured but not advertised | A network attacker who strips STARTTLS reads credentials and mail | tls:// STARTTLS hosts in the config |
| Sieve script injection via the body, address and envelope part fields | Same as the comparator row, through other rule fields | managesieve plugin enabled |
Five rows have no config condition at all: the three CSS rows, the proxy disclosure and the TNEF loop. They are reachable on every install by anyone who can send mail to one of your users, which is why we do not think any stopgap replaces the upgrade. The rest shrink a lot on a lean config. A server with spellcheck off, no ImageMagick, no managesieve or password plugin, PHP 8.4 or newer and implicit TLS to its mail backend is left with those five.
1.7.7 also carries ordinary bug fixes. One is worth knowing before you test: issue #9671, where deleting a search result after “select all” could delete every message in the folder. Read the 1.7.7 release notes on GitHub for the rest before you sign off on testing.
Distro packages and Docker images
Nothing downstream carried the fix on 23 November. We read the Debian security tracker and Launchpad that day and pulled the official images at 12:03 UTC, about 40 minutes after the release. We read both trackers and the Docker Hub tags again on 26 November, and by then Debian 13 and the container images had caught up:
| Source | Version on 23 Nov 2026 | Version on 26 Nov 2026 | Fixed? |
|---|---|---|---|
| Debian 13 trixie-security | 1.6.21+dfsg-0+deb13u1 | 1.6.22+dfsg-0+deb13u1 | Yes |
| Debian 12 bookworm-security | 1.6.5+dfsg-1+deb12u13 | 1.6.5+dfsg-1+deb12u13 | No, the tracker lists all twelve as vulnerable |
| Debian forky and sid | 1.6.21+dfsg-1 | 1.6.22+dfsg-1 | Yes |
| Ubuntu 26.04 resolute (universe) | 1.6.11+dfsg-1 | 1.6.11+dfsg-1 | No |
| Ubuntu 24.04 noble | 1.6.6+dfsg-2ubuntu0.1 | 1.6.6+dfsg-2ubuntu0.1 | No |
Docker roundcube/roundcubemail:latest-apache | 1.7.6 | Same digest as 1.7.7-apache | Yes |
Docker roundcube/roundcubemail:1.6.x-apache | 1.6.21 | Same digest as 1.6.22-apache | Yes |
On release day the Debian 13 server’s package was current and still vulnerable. An apt-get install --only-upgrade found nothing to do, which is the trap here: a host that runs unattended upgrades looks patched and isn’t until the security team ships the build. Debian 13 now has it as 1.6.22+dfsg-0+deb13u1, while Debian 12 still lists every one of the twelve issues as open for bookworm.

Ubuntu 26.04 is further behind. Its universe package is 1.6.11, so it misses this batch and every fix that went into 1.6.12 through 1.6.21 as well, unless Ubuntu has backported them. Universe packages get community security support at best, and we’d treat that version as a reason to run the tarball instead.
The container images had not been rebuilt at our 12:03 pull either. The 1.7.7 tag didn’t exist yet, and the moving tags still held the previous releases. Docker Hub shows 1.7.7-apache pushed at 12:37 UTC and 1.6.22-apache at 12:49 UTC that day, so a pull from the afternoon on gets the fixed builds:

This is the loop we ran, so you can repeat it on a Docker host:
for t in latest-apache 1.6.x-apache latest-fpm-alpine 1.7.7-apache; do echo "== $t"; sudo docker run --rm --pull always --entrypoint sh roundcube/roundcubemail:$t -c "grep -h \"define(.RCMAIL_VERSION\" /usr/src/roundcubemail/program/include/iniset.php /var/www/html/program/include/iniset.php 2>/dev/null | head -1"; done
Rerun it before you redeploy a container stack. A host still holding a cached latest-apache from before the rebuild keeps serving 1.7.6 until it pulls again, so the loop is also the quickest way to spot a node that never picked up the new image.
The version a server runs right now
Roundcube defines its version in program/include/iniset.php. On a tarball install that file sits under the web root you unpacked into; the Debian and Ubuntu packages keep it in /usr/share/roundcube.
grep -n "RCMAIL_VERSION" /var/www/roundcube/program/include/iniset.php
From outside the server, the login page gives the version away without a login. Roundcube writes rcversion into the page’s JavaScript environment as major times 10000 plus minor times 100 plus patch, so 1.6.21 reads as 10621 and 1.7.7 as 10707:
curl -s https://mail.example.com/ | grep -o '"rcversion":[0-9]*'
On our Debian test server, both checks agreed on 1.6.21, a build that carries every one of the twelve bugs:

The remote check is the one to script across a fleet, because it tests what the web server actually serves. A login page that still reports the old number after an upgrade usually means the PHP opcache has not picked up the new files yet, which we cover below.
Every Roundcube tree on one host
One server often holds more than one copy: a distro package someone installed first, a tarball that replaced it, and the backup directories left behind by earlier upgrades. Each one that the web server can reach is a live target. This search finds every tree on the root filesystem:
sudo find / -xdev -path "*/program/include/iniset.php" -exec grep -H "define(.RCMAIL_VERSION" {} \; 2>/dev/null
Our Debian server, after a few rounds of testing, turned up seven trees:

The two /var/www/roundcube.bak-* directories are the ones to worry about. If the vhost serves /var/www or an alias points at them, an attacker can use the old code even after the main tree is patched. Keep upgrade backups outside any served path, or as a tarball under /root as we do below.
The upgrade with installto.sh
For a tarball install, the vendor’s bin/installto.sh copies the new release over the old one, keeps your config, and runs the database schema update. We ran it from 1.7.6 to 1.7.7 on Ubuntu 26.04 and from 1.6.21 to 1.6.22 and on to 1.7.7 on Debian 13. Take a file backup first, outside the web root:
sudo tar czf /root/roundcube-files-$(date +%F).tgz -C /var/www roundcube
Back up the database the way you normally do as well, because the 1.6 to 1.7 step changes the schema. Then detect the latest release from the GitHub API, so the same commands keep working for 1.7.8 and later:
RC_VERSION=$(curl -s https://api.github.com/repos/roundcube/roundcubemail/releases/latest | grep -oP '"tag_name": "\K[^"]+')
echo "$RC_VERSION"
It printed 1.7.7 on release day. A server that has to stay on 1.6 for now, because its PHP is older than 8.1, can pin the last 1.6 build instead and should plan the 1.7 move straight after:
RC_VERSION="1.6.22" # pin: last 1.6 release, EOL #https://github.com/roundcube/roundcubemail/releases
Download the complete tarball and its detached signature, then check the signature against the Roundcube Developers key before anything gets unpacked:
wget -q https://github.com/roundcube/roundcubemail/releases/download/${RC_VERSION}/roundcubemail-${RC_VERSION}-complete.tar.gz{,.asc}
curl -sL https://roundcube.net/download/pubkey.asc | gpg --import
gpg --verify roundcubemail-${RC_VERSION}-complete.tar.gz.asc roundcubemail-${RC_VERSION}-complete.tar.gz
The line that matters is Good signature from "Roundcube Developers <[email protected]>" with the primary key fingerprint ending 41C4 F7D5. The trust warning under it only means you haven’t signed the key yourself, and it is expected on a fresh keyring.

We also compared the SHA-256 sums against the roundcube.net download page, and they matched: 1.7.7 complete is cc9358a2...1dd3fb and 1.6.22 complete is 09bb4c7f...91b1c2. With the signature good, unpack and run the installer against your live directory. It asks once before it copies anything:
tar xzf roundcubemail-${RC_VERSION}-complete.tar.gz
cd roundcubemail-${RC_VERSION}
sudo ./bin/installto.sh /var/www/roundcube
Answer y at Upgrading from 1.7.6. Do you want to continue? (y/N). A clean run ends like this:
Running update script at target...
Executing database schema update.
This instance of Roundcube is up-to-date.
Have fun!
All done.
The 1.6.21 to 1.6.22 run also printed NOTICE: The 'installer' directory still exists. You should remove it after the upgrade. Take that literally. The web installer has no business on a production host, so remove it, give the web server its writable directories back, and reload PHP-FPM:
sudo rm -rf /var/www/roundcube/installer
sudo chown -R www-data:www-data /var/www/roundcube/temp /var/www/roundcube/logs
sudo systemctl reload php8.5-fpm
Use your own PHP-FPM unit name there; Debian 13 has php8.4-fpm. Note that installto.sh copies with rsync -a, so the code keeps the owner of the files you unpacked. If you unpacked as your login user, reset the code tree to the owner your setup expects, because a webmail that its login user can edit is one more way in. Then confirm the version on disk and the version the web server hands out:
grep -n RCMAIL_VERSION /var/www/roundcube/program/include/iniset.php
curl -s http://localhost/ | grep -o '"rcversion":[0-9]*'
On the Ubuntu server both reported the fixed build:
30:define('RCMAIL_VERSION', '1.7.7');
"rcversion":10707
The 1.7 line moved the version define from line 29 to line 30 of iniset.php, so a monitoring check that greps a fixed line number breaks on the jump. Match on the name instead.
ERROR: Failed to execute command: rsync -aC –out-format=%n
Our first run on Debian 13 stopped right after the prompt. installto.sh copies files with rsync, and the Debian cloud image doesn’t ship it:

It fails on the first directory, before any file changes, so the live tree is untouched. Install rsync and run the same command again:
sudo apt-get install -y rsync
The second run completed and reported the instance up to date.
A version check that still shows the old build
On Ubuntu, a curl straight after installto.sh still returned "rcversion":10706 while the file on disk said 1.7.7. PHP-FPM was serving compiled scripts from opcache. With the stock settings it revalidates files every two seconds:
php-fpm8.5 -i 2>/dev/null | grep -E "^opcache.(validate_timestamps|revalidate_freq) "
The stock values on Ubuntu 26.04 were:
opcache.revalidate_freq => 2 => 2
opcache.validate_timestamps => On => On
Tuned servers often set opcache.validate_timestamps=0 for speed, and then the old code keeps running until FPM restarts or reloads. That’s why the reload is in the steps above, and why the remote rcversion check is the one that proves the patch.
The move from 1.6 to 1.7
Since 1.6 gets no more fixes, a 1.6 host should land on 1.7.7, not 1.6.22. The same installto.sh does it in one step, but 1.7 drops some things 1.6 allowed. Check the server against these before you run it:
- PHP is 8.1 or newer, the floor in the 1.7
composer.json. - The vhost document root points at
public_html/, which 1.7 makes the only supported entry point. - The database is MySQL or MariaDB, PostgreSQL or SQLite, since MS SQL Server and Oracle support is gone.
- The password plugin does not use the removed
virtualmindriver. - No cache option is set to the removed
apcdriver.
The public_html line is the one that bites. Plenty of 1.6 vhosts still point at the top of the tree and lean on .htaccess rules to hide config/, logs/ and temp/, so change the document root in the same window as the upgrade: root /var/www/roundcube/public_html; in nginx, or the matching DocumentRoot in Apache. The removals are listed under the 1.7 beta and rc entries of CHANGELOG.md inside the tarball, and docs/UPGRADING.md covers the document root. We took a 1.6.22 install on Debian 13 to 1.7.7 and the run applied two schema updates:

Note the .htaccess.new notice. The installer will not overwrite an existing public_html/.htaccess, so on Apache compare the two files and merge the new rules by hand. The login page answered HTTP 200 afterwards and reported "rcversion":10707.
Hosts on the distro package
On Debian 13, trixie-security now carries 1.6.22+dfsg-0+deb13u1, so the same apt-get install --only-upgrade roundcube-core that found nothing on release day picks it up. Debian 12 and the Ubuntu releases have no fixed package to install yet, so keep apt-get upgrade running there and watch the trackers linked above for the new version string. Debian’s package layout puts the config in /etc/roundcube/config.inc.php and the code in /var/lib/roundcube and /usr/share/roundcube, so the stopgaps below apply with those paths.
Ubuntu 26.04 is the case where we would stop waiting. At 1.6.11 the package is eleven point releases behind and on a branch that just ended, so moving the host to the 1.7.7 tarball is the only route to a supported build. Our Postfix, Dovecot and Roundcube mail server build uses the tarball for the same reason, and the Debian mail server guide shows the vhost layout.
Mail server bundles can carry their own copy outside the package paths, so a server set up with our iRedMail on Ubuntu guide or the Rocky and AlmaLinux version needs the find search above to locate it, then the same installto.sh run.
Stopgaps for a server that can’t upgrade today
These settings close the config dependent rows while you wait for a package or a change window. They do not touch the five rows that apply to every install, so they buy days, not weeks. Start by reading what the running config actually resolves to, defaults included, because a value set in an included file or left at its default does not show up in a grep.
cd /var/www/roundcube && sudo -u www-data php -r 'define("INSTALL_PATH", getcwd() . "/"); require INSTALL_PATH . "program/include/iniset.php"; $c = rcube::get_instance()->config; foreach (["enable_spellcheck", "spellcheck_engine", "im_convert_path", "imap_host", "smtp_host", "plugins"] as $k) { echo $k, " = ", json_encode($c->get($k), JSON_UNESCAPED_SLASHES), PHP_EOL; }'
On a package install, run it from /var/lib/roundcube instead. Our 1.6.21 tarball server, set up the way many older installs are, came back exposed on more rows than the stock package:
enable_spellcheck = true
spellcheck_engine = "atd"
im_convert_path = null
imap_host = "tls://mail.example.com:143"
smtp_host = "tls://mail.example.com:587"
plugins = ["archive","zipdownload","managesieve","password"]
Read against the fix table, that output leaves four rows open on this host, five if the password plugin’s password_driver is ximss (the one liner does not print it, so check the plugin’s config file). Each of these is a condition the stopgap has to make false:
- Spellcheck is enabled with the
atdengine, so the ATD request injection applies. - Both mail hosts use
tls://STARTTLS, so the insecure fallback applies. - The managesieve plugin is loaded, so both Sieve injections apply.
- The password plugin is loaded, so the XIMSS row applies if its driver is
ximss.
By contrast, the stock Debian 13 package is much leaner. It ships with spellcheck off with the enchant engine, localhost:143 for IMAP and no plugins at all. Only the TLS question applied there, and with IMAP on the same host a network attacker has no path to strip STARTTLS. On the tarball host, open the main config file.
sudo vim /var/www/roundcube/config/config.inc.php
Append these lines at the end, so they win over anything set earlier in the file. Replace mail.example.com with your IMAP and SMTP host, and keep in the plugin list only the plugins your users need that are not managesieve or password:
// Stopgaps until the 1.6.22 or 1.7.7 upgrade lands
$config['enable_spellcheck'] = false;
$config['im_convert_path'] = null;
$config['imap_host'] = 'ssl://mail.example.com:993';
$config['smtp_host'] = 'ssl://mail.example.com:465';
$config['plugins'] = ['archive', 'zipdownload'];
The ssl:// prefix means implicit TLS on 993 and 465, where there is no plaintext phase for an attacker to downgrade. Your mail server has to listen on those ports, so check that before saving. Dropping managesieve takes away your users’ filter editor, and dropping the password plugin takes away self service password changes; both are worth telling users about. A typo in this file takes the whole webmail down, so lint it first:
sudo php -l /var/www/roundcube/config/config.inc.php
It printed No syntax errors detected. Running the effective config check again showed every exposed value changed, and the login page still answered HTTP 200:
enable_spellcheck = false
spellcheck_engine = "atd"
im_convert_path = null
imap_host = "ssl://mail.example.com:993"
smtp_host = "ssl://mail.example.com:465"
plugins = ["archive","zipdownload"]
The engine still reads atd, which is fine: with spellcheck disabled the backend is never called. Two more checks cover the rows the config can’t reach. The washtml row needs PHP older than 8.4, and both our servers were past it, 8.4.28 on Debian 13 and 8.5.4 on Ubuntu 26.04:
php -r "echo PHP_VERSION, PHP_EOL;"
php -m | grep -i -x imagick || echo "imagick extension: not loaded"
On Debian 13 that printed 8.4.28 and imagick extension: not loaded, which with im_convert_path unset rules out the ImageMagick row. That reads the CLI module list, and Debian and Ubuntu keep separate conf.d directories for CLI and FPM, so confirm with php-fpm8.4 -m (or your FPM version) that the webmail’s own PHP agrees. Last, cut down who can reach the login page at all. Webmail that only staff use can sit behind the office or VPN range, and the firewalld cheat sheet on zones, ports and rules covers the firewall-cmd zones and rules for limiting HTTPS to a source network. That does not stop a crafted email reaching a user, but it means a stolen password alone is no longer enough to reach the CSS proxy rows from the internet.
Checks before you close the ticket
Run these on every webmail host once the upgrade is in and keep the output with the change record. A host that fails a line isn’t done, and the same list works for the PostfixAdmin mail server setups we’ve written up before.
- The public login page reports
"rcversion":10707, or10622on a host with a dated plan to reach 1.7. - The
findsearch returns no tree below the fixed version inside a path the web server can serve. - The
installerdirectory is absent from the Roundcube root. - The tarball’s GPG signature was good and its fingerprint ends
41C4 F7D5. - On a 1.7 host the vhost document root ends in
public_html. - The effective config shows
enable_spellcheckfalse or an engine other thanatd. - Every IMAP, SMTP and ManageSieve host uses
ssl://or a server on localhost. - Debian 13 hosts show 1.6.22+dfsg-0+deb13u1 installed; other package hosts have the tracker entry bookmarked and a date to switch to the tarball if no fixed package arrives.
- Container hosts pulled the rebuilt image and the version loop reports 1.7.7 or 1.6.22 on every node.
Once every line holds on a patched host, you can bring managesieve, the password plugin and spellcheck back by trimming the stopgap block. Keep the ssl:// host lines and any engine other than atd, so lines 6 and 7 stay true, and restart from line one after the next Roundcube release.