VYPR
Medium severity6.1NVD Advisory· Published Apr 3, 2026· Updated Apr 7, 2026

CVE-2026-35539

CVE-2026-35539

Description

An issue was discovered in Roundcube Webmail before 1.5.14 and 1.6.14. XSS exists because of insufficient HTML attachment sanitization in preview mode. A victim must preview a text/html attachment.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
roundcube/roundcubemailPackagist
>= 1.7-beta, < 1.7-rc51.7-rc5

Affected products

1

Patches

3
10a6d1fa8aca

Fix XSS issue in a HTML attachment preview

https://github.com/roundcube/roundcubemailAleksander MachniakMar 18, 2026via ghsa
2 files changed · +4 0
  • CHANGELOG.md+1 0 modified
    @@ -9,6 +9,7 @@
     - Security: Fix remote image blocking bypass via various SVG animate attributes
     - Security: Fix remote image blocking bypass via a crafted body background attribute
     - Security: Fix fixed position mitigation bypass via use of !important
    +- Security: Fix XSS issue in a HTML attachment preview
     
     ## Release 1.6.13
     
    
  • program/include/rcmail_action.php+3 0 modified
    @@ -691,6 +691,9 @@ public static function display_uploaded_file($file)
                 header('Content-Type: ' . $file['mimetype']);
                 header('Content-Length: ' . $file['size']);
     
    +            // Use strict security policy to make sure no javascript is executed
    +            header("Content-Security-Policy: script-src 'none'");
    +
                 if (isset($file['data']) && is_string($file['data'])) {
                     echo $file['data'];
                 }
    
1b30edf53696

Fix XSS issue in a HTML attachment preview

https://github.com/roundcube/roundcubemailAleksander MachniakMar 18, 2026via ghsa
2 files changed · +4 0
  • CHANGELOG.md+1 0 modified
    @@ -15,6 +15,7 @@ This file includes only changes we consider noteworthy for users, admins and plu
     - Security: Fix remote image blocking bypass via various SVG animate attributes
     - Security: Fix remote image blocking bypass via a crafted body background attribute
     - Security: Fix fixed position mitigation bypass via use of !important
    +- Security: Fix XSS issue in a HTML attachment preview
     
     ## 1.7-rc4
     
    
  • program/lib/Roundcube/rcube_uploads.php+3 0 modified
    @@ -255,6 +255,9 @@ public function display_uploaded_file($file, $thumbnail = false)
                 header('Content-Type: ' . $file['mimetype']);
                 header('Content-Length: ' . $file['size']);
     
    +            // Use strict security policy to make sure no javascript is executed
    +            header("Content-Security-Policy: script-src 'none'");
    +
                 if (isset($file['data']) && is_string($file['data'])) {
                     echo $file['data'];
                 } elseif (!empty($file['path'])) {
    
d742954ccbcd

Fix XSS issue in a HTML attachment preview

https://github.com/roundcube/roundcubemailAleksander MachniakMar 18, 2026via ghsa
2 files changed · +4 0
  • CHANGELOG.md+1 0 modified
    @@ -8,6 +8,7 @@
     - Security: Fix remote image blocking bypass via various SVG animate attributes
     - Security: Fix remote image blocking bypass via a crafted body background attribute
     - Security: Fix fixed position mitigation bypass via use of !important
    +- Security: Fix XSS issue in a HTML attachment preview
     
     ## Release 1.5.13
     
    
  • program/include/rcmail_action.php+3 0 modified
    @@ -683,6 +683,9 @@ public static function display_uploaded_file($file)
                 header('Content-Type: ' . $file['mimetype']);
                 header('Content-Length: ' . $file['size']);
     
    +            // Use strict security policy to make sure no javascript is executed
    +            header("Content-Security-Policy: script-src 'none'");
    +
                 if (isset($file['data']) && is_string($file['data'])) {
                     echo $file['data'];
                 }
    

Vulnerability mechanics

Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

9

News mentions

0

No linked articles in our index yet.