Critical Severity

Body: CVE-2026-42897 Exchange OWA stored XSS

Description

Detects messages exploiting CVE-2026-42897, a stored XSS vulnerability in on-premises Exchange Outlook Web Access (OWA). The exploit embeds Base64-encoded JavaScript payload fragments after URL fragment identifiers (#) within data URI image src attributes, with a malformed img tag onload/onerror handler that reassembles and executes the fragments via eval(atob(...)). Detection covers both the delivery technique (img tags with event handlers combined with base64 data after # fragments) and implant content (OWAReaper-specific function names and API calls decoded from base64 within img tag src attributes). Simply opening the message in OWA's reading pane can trigger execution.

Sublime Security
Created Sep 9th, 2026 • Last updated Sep 9th, 2026
Source
type.inbound
and any(html.xpath(body.html, '//img[contains(@src,"data:image")]').nodes,
        (
          regex.icontains(.raw, '#[A-Za-z0-9+/=]{20,}')
          and regex.icontains(.raw, 'on(?:load|error)')
          and strings.icontains(.raw, 'eval(', 'atob(', 'Function(')
        )
        or (
          any(strings.scan_base64(.raw),
              strings.icontains(.,
                                'owaRequest',
                                'GetClientAccessToken',
                                'owa_offline_db',
                                'PageDataPayload',
                                'UpdateFolder'
              )
          )
        )
)
MQL Rule Console
DocsLearning Labs

Playground

Test against your own EMLs or sample data.

Share

Post about this on your socials.

Get Started. Today.

Managed or self-managed. No MX changes.

Deploy and integrate a free Sublime instance in minutes.
Get Started