SecPod

Learn Search

Search across all Learn content

← Back to Security Research
From PoC to Payload: CVE-2026-55040 SharePoint Auth Bypass Sees Rapid Exploitation

From PoC to Payload: CVE-2026-55040 SharePoint Auth Bypass Sees Rapid Exploitation

Aug 14, 2026By Manasvini R
CVSS Score
9.1
Security Impact
Critical
CWE
CWE‑347

Summary

CVE‑2026‑55040 is a critical authentication bypass vulnerability in Microsoft SharePoint Server, carrying a CVSS score of 9.1. The flaw resides in the JSON Web Token (JWT) validation pipeline used for Bearer service‑to‑service (S2S) tokens, and stems from a chain of four distinct weaknesses in the SPJsonWebSecurityTokenHandlerV2 and SPJsonWebSecurityBaseTokenHandlerV2 classes. Microsoft patched the issue as part of its July 2026 Patch Tuesday updates.

Successful exploitation allows a completely unauthenticated remote attacker to forge a valid‑looking JWT and impersonate any SharePoint site user, including an administrator. Microsoft's advisory confirms the flaw does not affect system availability, but it does permit file disclosure and data modification — both severe outcomes for an internet‑facing collaboration platform.

Active exploitation confirmed: On August 12, 2026, Rapid7 published a working Python‑based Proof‑of‑Concept exploit. Within hours, honeypot telemetry recorded real exploitation attempts, underscoring how fast public exploit code compresses the gap between patch availability and mass exploitation.

Vulnerability Details

CVE ID CVSS Score EPSS Score Affected Products
CVE‑2026‑55040 9.1 (Critical) 2.96% Microsoft SharePoint Server Subscription Edition, Microsoft SharePoint Server 2019, Microsoft SharePoint Enterprise Server 2016

Root Cause Analysis

CVE‑2026‑55040 traces back to fundamental weaknesses in how SharePoint validates Bearer S2S JWTs. A four‑step chain of failures that, combined, allow a completely forged token to be treated as trustworthy:

  1. ● The attacker submits a JWT with "alg": "none" in the outer header, removing the requirement for a valid signature on the outer token entirely.
  2. ● The actor token's x5t header is set to SharePoint's own Security Token Service (STS) certificate thumbprint, tricking the validation logic into resolving a signing key without properly verifying it.
  3. ● Even when the resolved certificate is not present in the server's TrustedSecurityTokenServices list, the system still accepts the token issuer — a check that should have rejected the request outright.
  4. ● Finally, the actor token's signature field is populated with an arbitrary, non‑empty value (for example, "AAAA"), which the validation pipeline never actually verifies.

Each of these steps is a distinct logic flaw; none is exploitable alone at this severity. Chained together, they let an attacker construct a JWT that SharePoint's token handlers accept as legitimate — without ever presenting a real signature or a certificate the server actually trusts. Because the flaw sits in the S2S token handling used for internal trust relationships, a successfully forged token can be used to impersonate any site user, including a farm administrator.

How CVE‑2026‑55040 Can Be Exploited

Attack prerequisites

  1. ● Network reachability to a SharePoint Server Subscription Edition endpoint that exposes the S2S JWT authentication path.
  2. ● Knowledge of SharePoint's own STS certificate thumbprint, used to populate the actor token's x5t header.
  3. ● No valid credentials, prior access, or user interaction of any kind — the vulnerability is exploitable pre‑authentication.

Conceptual exploitation flow

  1. ● The attacker crafts an outer JWT header with "alg": "none", removing the outer signature requirement.
  2. ● The actor token's x5t header is set to SharePoint's own STS certificate thumbprint, causing the server to resolve a signing key improperly.
  3. ● The forged token is submitted with an arbitrary, unverified signature value.
  4. ● SharePoint's token handlers accept the forged token as valid and grant the attacker the identity specified in the token's claims — up to and including a site administrator.
  5. ● With administrator‑level impersonation, the attacker can enumerate users, access protected SharePoint API endpoints, disclose files, and modify data across the farm.

PoC automates this flow to query a target's domain controller, enumerate users by Security Identifier (SID), and locate the SID belonging to a site administrator. A simplified conceptual outline of that logic:

# Simplified conceptual representation of the PoC logic
# This is illustrative and not the full exploit code.

import requests
import json

def forge_jwt_token(sts_thumbprint):
    # Craft a JWT with alg: none, spoofed x5t, and dummy signature
    header = {"alg": "none", "x5t": sts_thumbprint}
    payload = {"iss": "spoofed_issuer", "aud": "sharepoint_audience", "exp": 1234567890}
    signature = "AAAA"  # Dummy signature, never verified

    encoded_header = base64url_encode(json.dumps(header))
    encoded_payload = base64url_encode(json.dumps(payload))

    forged_token = f"{encoded_header}.{encoded_payload}.{signature}"
    return forged_token

def exploit_sharepoint(target_url, forged_token):
    headers = {"Authorization": f"Bearer {forged_token}"}
    response = requests.get(f"{target_url}/_api/web", headers=headers, verify=False)

    if response.status_code == 200:
        print("Authentication bypass successful! Access granted.")
        print(response.json())
    else:
        print(f"Failed to bypass authentication. Status code: {response.status_code}")
        print(response.text)
Observed activity: Following the PoC's release, researchers observed attackers actively leveraging it against SharePoint honeypots. Telemetry recorded 12 exploitation attempts since July 19, 2026, with a spike of eight attempts on August 12–13, 2026, directly correlating with the public PoC release. These attempts originated from eight unique IP addresses spanning Hong Kong, Japan, the Netherlands, Taiwan, and the United States.

Chaining to remote code execution

Research further demonstrated that CVE‑2026‑55040 can be chained with a second flaw, CVE‑2026‑63520 (CVSS 8.1) — an unsafe .NET type instantiation in SharePoint's Business Connectivity Services — to achieve unauthenticated remote code execution. This second flaw affects SharePoint Server Subscription Edition, 2019, and 2016, as well as Project Server 2013 SP1 and Office Web Apps 2013 SP1.

Good news: The July 2026 patch for CVE‑2026‑55040 also breaks this RCE chain — applying it resolves both issues in a single fix.

Impact

Impact Area Description
Unauthenticated identity impersonation A remote attacker with no credentials can forge a token and assume the identity of any SharePoint user, including administrators.
Sensitive data disclosure Administrative impersonation grants access to documents, libraries, and configuration data stored across the farm.
Data integrity risk Beyond disclosure, the flaw permits modification of data within SharePoint, undermining trust in stored content.
Foothold into Microsoft 365 Administrative‑level access to a SharePoint farm can serve as a pivot point into broader connected Microsoft 365 infrastructure.
Escalation to remote code execution Chaining with CVE‑2026‑63520 enables unauthenticated RCE, elevating the impact from data compromise to full system compromise.
Rapid, low‑effort exploitation A public Python PoC lowers the technical bar significantly, as reflected in the exploitation spike observed immediately after its release.

MITRE ATT&CK Mapping

Technique ID Technique Name Tactic
T1190 Exploit Public‑Facing Application Initial Access (TA0001)
T1550.004 Use Alternate Authentication Material: Web Session Cookie Defense Evasion (TA0005)
T1078 Valid Accounts (impersonated via forged token) Privilege Escalation (TA0004)
T1068 Exploitation for Privilege Escalation Privilege Escalation (TA0004)
T1005 Data from Local System Collection (TA0009)
T1565.001 Stored Data Manipulation Impact (TA0040)

Mitigation

  1. ● Apply Microsoft's July 2026 Patch Tuesday update for CVE‑2026‑55040 immediately; it also breaks the RCE chain with CVE‑2026‑63520.
  2. ● Ensure all SharePoint instances — Server Subscription Edition, Server 2019, and Server 2016 — are fully updated to their patched versions.
  3. ● Review SharePoint authentication and access logs for anomalous S2S token activity or unexpected administrative actions.
  4. ● Restrict direct internet exposure of SharePoint management and API endpoints wherever possible.
  5. ● Monitor for indicators of compromise associated with this campaign and correlate against the known attacker IP ranges reported in Hong Kong, Japan, the Netherlands, Taiwan, and the U.S.

Instantly Fix Risks with Saner Patch Management

Saner patch management is a continuous, automated, and integrated software that instantly fixes risks exploited in the wild. The software supports major operating systems like Windows, Linux, and macOS, as well as 550+ third-party applications.

It also allows you to set up a safe testing area to test patches before deploying them in a primary production environment. Saner patch management additionally supports a patch rollback feature in case of patch failure or a system malfunction.

Experience the fastest and most accurate patching software here.

Featured Posts

Open Operation CameraSwarm: Inside the Toolkit Behind 14,530 Compromised Dahua Cameras
Operation CameraSwarm: Inside the Toolkit Behind 14,530 Compromised Dahua Cameras

CVE Research

Operation CameraSwarm: Inside the Toolkit Behind 14,530 Compromised Dahua Cameras

A single operator compromised 14,530+ Dahua cameras across Ukraine and Russia in 35 days, chaining credential brute-force, a CVE-2021-33044/33045 authentication bypass, and P2P relay abuse to plant a persistent backdoor and harvest transferable admin access.

Aug 21, 2026

Open Critical GitLab Flaw Exposes Public Projects to Deletion — Two CVEs Patched, Including High-Severity CSRF
Critical GitLab Flaw Exposes Public Projects to Deletion — Two CVEs Patched, Including High-Severity CSRF

CVE Research

Critical GitLab Flaw Exposes Public Projects to Deletion — Two CVEs Patched, Including High-Severity CSRF

CVE-2026-19478 is a critical code injection vulnerability in GitLab CE/EE that allows an unauthenticated attacker to modify or delete public projects and user data by abusing a GraphQL directive. A second high-severity issue, CVE-2026-19650, involves cross-site request forgery in the GraphQL multiplex query handler. This article examines how the critical vulnerability works, the availability of a public proof-of-concept, the potential impact on self-managed instances, the affected versions, and the security updates released to remediate both issues.

Aug 19, 2026

Open No Password Needed: macOS Screen Sharing Flaw (CVE-2026-65400) Used to Deploy Monero Miners
No Password Needed: macOS Screen Sharing Flaw (CVE-2026-65400) Used to Deploy Monero Miners

CVE Research

No Password Needed: macOS Screen Sharing Flaw (CVE-2026-65400) Used to Deploy Monero Miners

Aug 19, 2026

Open Evooo1Bot: Mirai-Based Linux Botnet Turns Edge Devices Into SOCKS5 Proxies
Evooo1Bot: Mirai-Based Linux Botnet Turns Edge Devices Into SOCKS5 Proxies

CVE Research

Evooo1Bot: Mirai-Based Linux Botnet Turns Edge Devices Into SOCKS5 Proxies

Aug 19, 2026