The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-20945

CVE-2026-20945: Microsoft SharePoint XSS Vulnerability

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

Published: April 17, 2026

CVE-2026-20945 Overview

CVE-2026-20945 is a Cross-Site Scripting (XSS) vulnerability in Microsoft Office SharePoint that stems from improper neutralization of input during web page generation. This vulnerability allows an authorized attacker with network access to perform spoofing attacks by injecting malicious scripts into SharePoint pages viewed by other users.

Critical Impact

Authenticated attackers can exploit this XSS vulnerability to spoof content, steal session credentials, or perform actions on behalf of other SharePoint users, potentially compromising organizational data and user trust.

Affected Products

  • Microsoft Office SharePoint

Discovery Timeline

  • April 14, 2026 - CVE-2026-20945 published to NVD
  • April 14, 2026 - Last updated in NVD database

Technical Details for CVE-2026-20945

Vulnerability Analysis

This vulnerability is classified as CWE-79: Improper Neutralization of Input During Web Page Generation, commonly known as Cross-Site Scripting (XSS). The flaw exists in how Microsoft SharePoint processes and renders user-supplied input within web pages. When user input is not properly sanitized or encoded before being included in dynamically generated HTML content, attackers can inject malicious scripts that execute in the context of other users' browser sessions.

The attack requires the attacker to have authenticated access to the SharePoint environment (low privilege requirement) and requires user interaction to trigger the exploit. The vulnerability affects both confidentiality and integrity on a limited basis, allowing attackers to access sensitive information displayed to victims or modify content they view.

Root Cause

The root cause of this vulnerability lies in insufficient input validation and output encoding mechanisms within SharePoint's web page generation functionality. When SharePoint constructs HTML pages, certain input fields or parameters are not adequately sanitized, allowing HTML and JavaScript code to be interpreted as executable content rather than being rendered as plain text.

This type of vulnerability typically occurs when:

  • User-controlled data is embedded directly into HTML without proper encoding
  • Input validation only occurs on the client side
  • Output encoding is missing or incorrectly implemented for specific contexts (HTML, JavaScript, URL)

Attack Vector

The attack is conducted over the network and requires the attacker to have authenticated access to the SharePoint environment. The attacker crafts a malicious payload containing JavaScript code and injects it through a vulnerable input field or URL parameter within SharePoint.

When another authenticated user views the affected page or clicks a crafted link, the injected script executes within their browser session. This can enable the attacker to:

  • Steal session cookies or authentication tokens
  • Capture keystrokes or form data
  • Redirect users to phishing pages
  • Modify the appearance of SharePoint pages to display misleading information
  • Perform actions within SharePoint on behalf of the victim user

The exploitation mechanism relies on social engineering to convince users to visit the compromised page or click the malicious link, which is reflected in the user interaction requirement for successful exploitation.

Detection Methods for CVE-2026-20945

Indicators of Compromise

  • Unusual JavaScript code fragments in SharePoint page source containing encoded or obfuscated scripts
  • Unexpected outbound requests from user browsers to external domains when accessing SharePoint
  • Modified SharePoint web parts or page content containing suspicious <script> tags or event handlers
  • User reports of unexpected behavior such as redirects or pop-ups when accessing SharePoint pages

Detection Strategies

  • Monitor SharePoint web application logs for requests containing suspicious characters such as <script>, javascript:, or encoded equivalents like %3Cscript%3E
  • Implement Web Application Firewall (WAF) rules to detect and block common XSS payload patterns targeting SharePoint
  • Deploy Content Security Policy (CSP) headers to detect and report inline script execution attempts
  • Review SharePoint audit logs for unusual content modifications or page edits by users

Monitoring Recommendations

  • Enable detailed IIS logging for SharePoint web applications and monitor for XSS attack patterns
  • Configure browser-based XSS auditors and CSP violation reporting to a centralized security monitoring solution
  • Implement user behavior analytics to identify accounts exhibiting unusual content posting or editing patterns
  • Regularly scan SharePoint content databases for stored malicious scripts using automated security tools

How to Mitigate CVE-2026-20945

Immediate Actions Required

  • Apply the Microsoft security update for CVE-2026-20945 as soon as it becomes available from the Microsoft Security Update Guide
  • Review recent SharePoint content changes for any injected malicious scripts and remediate affected pages
  • Educate users about the risks of clicking unknown links within SharePoint or receiving unexpected content
  • Implement additional input validation controls at the network perimeter using a WAF

Patch Information

Microsoft has released a security update to address this vulnerability. Organizations should obtain and apply the official patch from the Microsoft Security Update Guide for CVE-2026-20945. The patch addresses the improper input neutralization by implementing proper encoding and sanitization of user-supplied data before it is rendered in web pages.

It is recommended to test the patch in a non-production environment before deploying to production SharePoint farms to ensure compatibility with custom solutions and configurations.

Workarounds

  • Implement Content Security Policy (CSP) headers that restrict inline script execution and limit script sources to trusted domains
  • Configure SharePoint to use strict input validation through custom web application firewall rules
  • Limit user permissions to reduce the number of accounts that can create or modify SharePoint content
  • Consider temporarily restricting access to vulnerable SharePoint features if the patch cannot be immediately applied

For organizations unable to immediately patch, implementing defense-in-depth controls through CSP headers and WAF rules can reduce the risk of successful exploitation. Monitor the Microsoft Security Update Guide for the latest patch information and apply updates during the next available maintenance window.

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechMicrosoft Office Sharepoint

  • SeverityMEDIUM

  • CVSS Score4.6

  • EPSS Probability0.06%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • Microsoft Security Update CVE-2026-20945
  • Related CVEs
  • CVE-2026-26114: SharePoint RCE Vulnerability

  • CVE-2026-26106: SharePoint RCE Vulnerability

  • CVE-2026-20963: SharePoint Deserialization RCE Vulnerability

  • CVE-2026-20958: Microsoft SharePoint SSRF Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English