Skip to main content
CVE Vulnerability Database
Vulnerability Database/CVE-2026-64897

CVE-2026-64897: Microsoft SharePoint Server XSS Vulnerability

CVE-2026-64897 is a cross-site scripting flaw in Microsoft SharePoint Server that enables authorized attackers to perform spoofing attacks. This article covers the technical details, affected versions, impact, and mitigation.

Published:

CVE-2026-64897 Overview

CVE-2026-64897 is a stored or reflected cross-site scripting (XSS) vulnerability in Microsoft Office SharePoint Server. The flaw stems from improper neutralization of user-supplied input during web page generation [CWE-79]. An authenticated attacker with low privileges can inject malicious script content that executes in the context of another user's session. Successful exploitation enables spoofing over a network, allowing the attacker to alter rendered content or impersonate trusted UI elements. The vulnerability affects SharePoint Server Subscription Edition, SharePoint Server 2019, and SharePoint Server 2016 Enterprise. User interaction is required, and the scope is changed, meaning injected script can affect resources beyond the vulnerable component.

Critical Impact

An authenticated attacker can inject persistent script into SharePoint pages to spoof content, capture session data, or trick users into performing unintended actions within the SharePoint environment.

Affected Products

  • Microsoft SharePoint Server Subscription Edition
  • Microsoft SharePoint Server 2019
  • Microsoft SharePoint Server 2016 Enterprise

Discovery Timeline

  • 2026-08-11 - CVE-2026-64897 published to the National Vulnerability Database
  • 2026-08-11 - Last updated in NVD database

Technical Details for CVE-2026-64897

Vulnerability Analysis

The vulnerability is a cross-site scripting flaw classified under [CWE-79], improper neutralization of input during web page generation. SharePoint Server accepts user-controlled input and reflects or stores it in rendered web pages without adequate output encoding. When another authenticated user loads the affected page, the browser parses and executes attacker-controlled script under the SharePoint origin. Because the scope is changed, injected code can access data and functionality outside the initially vulnerable component, extending impact to the victim's browser session and any linked SharePoint resources.

Root Cause

The root cause is insufficient sanitization or contextual output encoding of attacker-controlled fields processed by SharePoint's web rendering pipeline. Input flows into HTML, attribute, or script contexts on generated pages without escaping characters such as <, >, ", and '. SharePoint content types that accept rich user input, such as list items, web part properties, or page fields, are common sinks for this class of defect.

Attack Vector

Exploitation requires an authenticated account with permissions to submit or modify content on the SharePoint site. The attacker crafts a payload containing HTML or JavaScript and stores or reflects it through a vulnerable input field. A second authenticated user must then view the affected page for the payload to execute. The injected script runs with the victim's SharePoint privileges and can spoof interface elements, exfiltrate tokens accessible to the page, or perform actions on the victim's behalf. See the Microsoft CVE-2026-64897 Advisory for vendor-specific details.

No verified public proof-of-concept code is available for CVE-2026-64897 at this time. Exploitation follows the standard pattern for stored XSS in enterprise collaboration platforms: submit a payload, wait for a privileged user to render the page, and act on the resulting script execution.

Detection Methods for CVE-2026-64897

Indicators of Compromise

  • SharePoint list items, page fields, or web part properties containing <script> tags, javascript: URIs, or event-handler attributes such as onerror, onload, or onmouseover.
  • Unexpected outbound HTTP requests from SharePoint client sessions to attacker-controlled domains shortly after page loads.
  • Audit log entries showing content edits by low-privilege accounts immediately followed by views from privileged users.

Detection Strategies

  • Inspect SharePoint content databases and unified audit logs for stored HTML or JavaScript payloads in user-editable fields.
  • Monitor IIS and SharePoint ULS logs for anomalous requests to _layouts, _api, or list form endpoints containing encoded script fragments.
  • Correlate content modification events with subsequent session token or cookie access anomalies for the same document or page.

Monitoring Recommendations

  • Enable SharePoint audit logging for item edits, page updates, and web part changes across all site collections.
  • Forward SharePoint, IIS, and endpoint telemetry to a centralized SIEM for correlation and long-term retention.
  • Alert on Content Security Policy violation reports generated by SharePoint front-end pages.

How to Mitigate CVE-2026-64897

Immediate Actions Required

  • Apply the security update referenced in the Microsoft CVE-2026-64897 Advisory to all affected SharePoint Server instances.
  • Review permissions and remove content-contribution rights from accounts that do not require them.
  • Audit recent content changes on high-value site collections for embedded script or suspicious HTML.

Patch Information

Microsoft has published a security update for CVE-2026-64897 through the Microsoft Security Response Center. Administrators should consult the Microsoft CVE-2026-64897 Advisory for the exact package identifiers, prerequisites, and installation guidance corresponding to SharePoint Server Subscription Edition, 2019, and 2016.

Workarounds

  • Restrict content contribution and web part editing privileges to trusted administrators until patches are deployed.
  • Enforce a strict Content Security Policy on SharePoint web front ends to limit inline script execution.
  • Disable custom scripting on self-service created sites using the SharePoint admin center DenyAddAndCustomizePages setting.
bash
# Disable custom scripting on a SharePoint site collection (PowerShell)
Set-SPOSite -Identity https://contoso.sharepoint.com/sites/target -DenyAddAndCustomizePages 1

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.