Skip to navigation

Threat reportVulnerabilityTL-2026-0780

Microsoft Exchange Server OWA Cross-Site Scripting Zero-Day CVE-2026-42897 Exploited In the Wild

criticalACTIVE

CVE-2026-42897 is an actively exploited cross-site scripting (XSS) zero-day in Microsoft Exchange Server Outlook Web Access (OWA). An unauthenticated attacker emails a victim a weaponized message; when opened in OWA under certain interaction conditions, attacker-supplied JavaScript runs in the victim's authenticated browser session, enabling session-token theft, mailbox impersonation, and email spoofing.

Key facts

IdentifiersTL-2026-0780, CVE-2026-42897
Also known asExchange OWA XSS Zero-Day, Exchange Server May 2026 OWA Spoofing Vulnerability
SeverityCRITICAL
CVSS8.1 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N)
Exploitation statusLinked CVE exploited in the wild; Listed in CISA KEV: CVE-2026-42897 (added )
EPSSCVE-2026-42897: 5.6% (91.9th percentile)
Affected productsMicrosoft Exchange Server 2016; Microsoft Exchange Server 2019; Microsoft Exchange Server Subscription Edition (SE); Microsoft Exchange Online (Microsoft 365)
Weaknesses (CWE)CWE-79
ToolsExchange On-Premises Mitigation Tool (EOMT.ps1)
MITRE ATT&CK techniquesT1056 Input Capture, T1059 Command and Scripting Interpreter, T1087 Account Discovery, T1098 Account Manipulation, T1114 Email Collection, T1185 Browser Session Hijacking, T1189 Drive-by Compromise, T1190 Exploit Public-Facing Application, T1204 User Execution, T1528 Steal Application Access Token, T1534 Internal Spearphishing, T1539 Steal Web Session Cookie and 5 more in the attack flow
MotivationUNKNOWN
Target sectorsgovernment, financial, healthcare, enterprise, education
Target regionsNorth America, Europe, Global
Detection rules9 (1 shown free)
Sources12 cited sources

Detection coverage

As of 2026-06-11, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-0780 across Splunk SPL, Microsoft KQL and Sigma, covering 16 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.

Free detection: Stolen OWA Session-Token Reuse & M365 Pivot (CVE-2026-42897)

Detects C2/lateral-movement from CVE-2026-42897: replay of a harvested OWA session cookie/token (T1539/T1528) from an IP, geo, or device context inconsistent with the user's normal sign-in, followed by access to identity-linked M365 services (SharePoint/Teams) using the same session material without a fresh authentication challenge (T1550.001/T1550.004). Detects mailbox access immediately followed by cross-service access from the same anomalous source.

  • Languages: Splunk SPL, Microsoft KQL, Sigma
  • ATT&CK: T1539, T1528, T1550.001, T1550.004
  • Data sources: o365:management:activity, OfficeActivity
  • Severity: critical
  • Confidence: medium

Splunk SPL

index=msexchange sourcetype="o365:management:activity" (Operation="MailItemsAccessed" OR Operation="FileAccessed" OR Operation="TeamsSessionStarted")
| eval auth=lower(coalesce(AuthenticationType,AuthType,""))
| where like(auth,"%cookie%") OR like(auth,"%session%")
| iplocation ClientIP
| stats dc(Workload) as services_touched values(Workload) as workloads values(ClientIP) as src_ips values(Country) as src_countries min(_time) as first_seen max(_time) as last_seen by UserId
| where services_touched >= 2
| sort - last_seen

Microsoft KQL

// Sentinel: OWA session-cookie reuse spanning Exchange + SharePoint/Teams from one source
let window = 1h;
OfficeActivity
| where TimeGenerated > ago(24h)
| where Operation in ("MailItemsAccessed", "FileAccessed", "FileDownloaded", "TeamsSessionStarted")
| extend auth = tolower(tostring(column_ifexists("AuthenticationType", "")))
| where auth has "cookie" or auth has "session" or isempty(auth)
| summarize Services=dcount(OfficeWorkload), Workloads=make_set(OfficeWorkload), SrcIPs=make_set(ClientIP), First=min(TimeGenerated), Last=max(TimeGenerated) by UserId, bin(TimeGenerated, window)
| where Services >= 2 and array_length(SrcIPs) >= 1

Sigma

title: OWA Session Token Reuse and M365 Pivot (CVE-2026-42897)
id: 8b3e4c9a-2d36-4f7c-a043-2c7e9f1b3d23
status: experimental
description: Detects reuse of an OWA-derived web session cookie/token from an anomalous context against mailbox and identity-linked M365 services, consistent with CVE-2026-42897 lateral movement.
references:
    - https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-42897
author: Threadlinqs Team
date: 2026/06/11
tags:
    - attack.credential_access
    - attack.lateral_movement
    - attack.defense_evasion
    - attack.t1539
    - attack.t1528
    - attack.t1550.001
    - attack.t1550.004
    - cve.2026.42897
logsource:
    product: m365
    service: exchange
detection:
    selection:
        Operation:
            - 'MailItemsAccessed'
            - 'FileAccessed'
            - 'TeamsSessionStarted'
    session_auth:
        AuthenticationType:
            - 'SessionCookie'
            - 'WebSession'
    condition: selection and session_auth
falsepositives:
    - Users legitimately roaming between networks or using VPN egress IPs
    - SSO sessions spanning multiple workloads in normal use
level: high

Known false positives:

  • Users roaming between networks or behind VPN/CGNAT egress IPs
  • Legitimate SSO sessions that span Exchange, SharePoint, and Teams in normal workflows

Tuning notes: Baseline each user's normal ASN/geo and alert on token reuse from new ASN within a short window of a mailbox access. Enforce session-token binding/conditional access to suppress benign multi-workload SSO. Tighten the correlation window from 1h if FPs are high.

8 more detection rules (Splunk SPL, Microsoft KQL, Sigma) · unlock with TL Creds. Sign up free to unlock the detection rules or query them with the Threadlinqs MCP server (Purple and Gold in full, 2 calls a day on a free account)
  • OWA Inline-Handler XSS Detonation in Browser Telemetry (CVE-2026-42897) · unlock with TL Creds
  • Anomalous Mailbox Access After OWA Compromise (CVE-2026-42897) · unlock with TL Creds
  • Internal Spearphishing / Spoofed Send From Hijacked OWA Session (CVE-2026-42897) · unlock with TL Creds
  • Weaponized OWA Email Body With Surviving Inline Event-Handler (CVE-2026-42897) · unlock with TL Creds
  • Exchange CVE-2026-42897 Mitigation Absent / EM Service Not Applied · unlock with TL Creds
  • OWA Session-Token Exfiltration to External Collector (CVE-2026-42897) · unlock with TL Creds
  • OWA XSS Exploitation — Inline Event-Handler Render in IIS/OWA Logs (CVE-2026-42897) · unlock with TL Creds
  • Unauthorized Inbox Forwarding/Hiding Rule After OWA Render (CVE-2026-42897) · unlock with TL Creds

Indicators of compromise

As of 2026-06-11, Threadlinqs Intelligence tracks 16 indicators of compromise for TL-2026-0780.

16 indicators of compromise · unlock with TL Creds. Compare plans

Technical analysis

Microsoft assesses it as 'Exploitation Detected' and CISA added it to the KEV catalog.

CVE-2026-42897 is a cross-site scripting vulnerability (CWE-79, improper neutralization of user-supplied input during web page generation) in the Outlook Web Access (OWA) component of on-premises Microsoft Exchange Server. The flaw lets an unauthenticated, remote attacker craft an email whose HTML body carries an obfuscated JavaScript payload — delivered via inline event-handler attributes that survive OWA's sanitization path. No attacker authentication is required and the only victim interaction needed is opening the message in OWA. When the message is rendered, the script executes inside the victim's already-authenticated OWA browser context.

Because the code runs in the victim's authenticated session, the attacker never has to touch the Exchange server directly. Post-exploitation the script can harvest OWA session cookies and authentication/session tokens, impersonate the mailbox owner, read and exfiltrate mailbox contents, send email as the victim, and silently create inbox forwarding or transport rules. Captured session tokens can be replayed to pivot into other identity-linked Microsoft 365 services — SharePoint, Teams, and cloud storage — without triggering a fresh authentication challenge. Microsoft classifies the primary impact as spoofing over the network.

Microsoft published the advisory on 2026-05-14 with an 'Exploitation Detected' assessment (Microsoft CNA CVSS 3.1 base 8.1, vector AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N; NVD reassessed the impact at base 6.1, vector AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N). CISA added CVE-2026-42897 to the Known Exploited Vulnerabilities catalog on 2026-05-15 with a Federal Civilian Executive Branch remediation deadline of 2026-05-29. For roughly four weeks there was no permanent patch; defenders depended on the Exchange Emergency Mitigation (EM/EEMS) Service, which auto-deploys the M2.1.x mitigation — a URL Rewrite rule applying a Content Security Policy 'script-src-attr none' directive to block inline event-handler execution — or the Exchange On-Premises Mitigation Tool (EOMT) for disconnected/air-gapped environments. The CSP-based mitigation does NOT protect clients using Internet Explorer or Microsoft Edge in Internet Explorer Mode, because IE does not support CSP, and it breaks several OWA features (calendar printing, inline image display in the reading pane, OWA Light, and published calendars). Permanent security updates shipped 2026-06-09 for Exchange Server SE RTM, 2019 CU14/CU15, and 2016 CU23. Microsoft also warned that EM and feature-flighting services stop accepting configurations from July 2026 unless servers are updated to the June 2026 build or later. Exchange Online (Microsoft 365) is not affected.

Attribution remains unconfirmed as of reporting; the tradecraft (a no-server-touch OWA XSS that blends into normal mailbox activity and bypasses attachment- and link-focused controls) reflects moderate-to-advanced capability. No public network IOCs (IPs, domains, hashes) have been released, which is consistent with the low-forensic-artifact nature of client-side XSS; detection therefore centers on behavioral signals in IIS/OWA logs, mailbox-rule auditing, and session-token abuse.

MITRE ATT&CK techniques by tactic:

Credential Access

T1056 Input Capture; T1528 Steal Application Access Token; T1539 Steal Web Session Cookie

Execution

T1059 Command and Scripting Interpreter; T1204 User Execution

Discovery

T1087 Account Discovery

Persistence

T1098 Account Manipulation

Collection

T1114 Email Collection

collection

T1185 Browser Session Hijacking

Initial Access

T1189 Drive-by Compromise; T1190 Exploit Public-Facing Application; T1566 Phishing

Lateral Movement

T1534 Internal Spearphishing; T1550 Use Alternate Authentication Material

lateral-movement

T1550 Use Alternate Authentication Material

stealth

T1564 Hide Artifacts

Exfiltration

T1567 Exfiltration Over Web Service

Resource Development

T1608 Stage Capabilities

Remediation

Patches

  • Exchange Server SE RTM June 2026 Security Update
  • Exchange Server 2019 CU14/CU15 June 2026 Security Update
  • Exchange Server 2016 CU23 June 2026 Security Update

Immediate actions

  • Ensure the Exchange Emergency Mitigation (EM/EEMS) Service is enabled so the automatic M2.1.x mitigation is applied to Exchange Server 2016, 2019, and SE
  • For disconnected/air-gapped environments, run the Exchange On-Premises Mitigation Tool (EOMT) to apply the URL Rewrite CSP mitigation manually
  • Restrict or block OWA access from Internet Explorer and Microsoft Edge Internet Explorer Mode, since the CSP mitigation does not protect those clients
  • Audit mailboxes for unauthorized inbox forwarding/transport rules and anomalous mail-send activity

Workarounds

  • Exchange Emergency Mitigation (EM/EEMS) automatic mitigation M2.1.x (CSP script-src-attr 'none' URL Rewrite rule)
  • Exchange On-Premises Mitigation Tool (EOMT) for offline application

Longer-term hardening

  • Apply the June 2026 Exchange security updates to reach a permanently patched build
  • Update servers to the June 2026 level or later before July 2026 to retain EM/feature-flighting configuration support
  • Migrate from out-of-support Exchange to Exchange Server Subscription Edition for ongoing security updates
  • Deploy session-token binding/conditional access and monitor for OWA session-token reuse from anomalous contexts

Affected and fixed versions

  • Microsoft — Exchange Server 2016
    Vulnerable versions: 2016 CU23 (all update levels)
    Fixed in: 2016 CU23 with June 2026 Security Update
  • Microsoft — Exchange Server 2019
    Vulnerable versions: 2019 CU14 (all update levels); 2019 CU15 (all update levels)
    Fixed in: 2019 CU14/CU15 with June 2026 Security Update
  • Microsoft — Exchange Server Subscription Edition (SE)
    Vulnerable versions: SE RTM
    Fixed in: SE RTM with June 2026 Security Update
  • Microsoft — Exchange Online (Microsoft 365)
    Fixed in: Not affected

Timeline

  • Active exploitation confirmed at disclosure; attackers send weaponized emails that execute JavaScript in victims' OWA sessions to steal session tokens and impersonate mailboxes.
  • Microsoft publishes the MSRC advisory for CVE-2026-42897, assessing it as 'Exploitation Detected' (active in-the-wild exploitation of the Exchange OWA XSS flaw). Microsoft CNA CVSS 3.1 base 8.1.
  • Microsoft publishes the automatic Exchange Emergency Mitigation (EM/EEMS) mitigation M2.1.x (URL Rewrite CSP 'script-src-attr none') for Exchange 2016, 2019, and SE; EOMT available for offline use.
  • CISA adds CVE-2026-42897 to the Known Exploited Vulnerabilities catalog, setting a Federal Civilian Executive Branch remediation deadline of 2026-05-29.
  • Public reporting highlights a five-day-old zero-day with no permanent patch and a growing list of mitigation side-effects (broken OWA print, inline images, OWA Light) plus IE/Edge IE-Mode coverage gaps.
  • CISA KEV remediation deadline for Federal Civilian Executive Branch agencies to apply mitigations for CVE-2026-42897.
  • Microsoft releases permanent June 2026 security updates for Exchange Server SE RTM, 2019 CU14/CU15, and 2016 CU23, providing the definitive fix.
  • Exchange Emergency Mitigation and feature-flighting services stop accepting configurations from July 2026 unless servers are updated to the June 2026 build or later.

Sources cited

Other reports on CVE-2026-42897

Previous and next in vulnerability

Drafted by the Threadlinqs research pipeline from 12 sources; published ; last updated —.

Threadlinqs Intelligence — Real-Time Threat Detection Platform

// threat_feed
$ sort --newest
Showing all threats

Live intelligence console

Threat level

Latest Threats