Microsoft SharePoint JWT Authentication Bypass (CVE-2026-55040)
Published: 2026-11-27 • Researcher: Stephen Fewer (Rapid7 Labs)
Exploitation signals
Confirmed exploited in the wild. Added to CISA KEV 2026-08-18. Federal remediation deadline 2026-08-21.
EPSS 17.5% · 98th percentile
- Severity
- Critical
- CVE
- CVE-2026-55040
- Category
- web
- Affected product
- Microsoft SharePoint Server
- Affected versions
- Microsoft SharePoint Server builds prior to 16.0.19725.20434 (NVD range, end excluding)
- Disclosed
- 2026-11-27
- Patch status
- Patched
Tags
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-55040
- https://github.com/sfewer-r7/CVE-2026-55040
- https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-55040
- https://www.rapid7.com/blog/post/ra-microsoft-sharepoint-jwt-token-authentication-bypass-cve-2026-55040/
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-55040
Archive entry
intelseclab/poc-archiveOn this page
Metadata
| Field | Value |
|---|---|
| Date Added | 2026-11-27 |
| Last Updated | 2026-08-10 |
| Author / Researcher | Stephen Fewer (Rapid7 Labs) |
| CVE / Advisory | CVE-2026-55040 |
| Category | web |
| Severity | Critical |
| CVSS Score | 9.1 (CVSSv3.1, NVD) |
| Status | Weaponized |
| Tags | authentication-bypass, JWT, alg-none, SharePoint, Microsoft, unauthenticated, token-forgery, SID, UPN, CWE-1390 |
| Related | N/A |
Affected Target
| Field | Value |
|---|---|
| Software / System | Microsoft SharePoint Server |
| Versions Affected | Microsoft SharePoint Server builds prior to 16.0.19725.20434 (NVD range, end excluding) |
| Language / Platform | Python 3 attacker script; target is Windows Server / IIS hosting SharePoint; curl required |
| Authentication Required | No (the flaw bypasses authentication) |
| Network Access Required | Yes |
Summary
Microsoft SharePoint Server contains a weak authentication flaw that lets an unauthenticated network attacker present a JSON Web Token the server accepts as a trusted identity. The public PoC from Rapid7 Labs discovers the SharePoint realm and the STS signing certificate thumbprint from the metadata endpoint, then forges an unsigned token carrying an actor token, the “none” algorithm header, and an attacker-chosen security identifier or user principal name. A successful bypass returns the current SharePoint user object and a valid form digest, giving the attacker authenticated access as a site user or site administrator. CISA added the issue to its Known Exploited Vulnerabilities catalog on 2026-08-18.
Vulnerability Details
Root Cause
SharePoint’s security token service trusts the actor token embedded in a delegated JWT (the “actortoken” claim) and validates that actor token against the STS signing certificate identified by the x5t thumbprint. The outer token, however, is not required to carry a valid signature: a token whose header declares “alg”:“none” is still processed, so the identity claims in the outer payload (nameid, nii, upn or SID) are accepted without a cryptographic signature. Because the realm and the public signing certificate thumbprint are both published by the SharePoint STS metadata endpoint, an attacker can construct a syntactically valid token for any identity. This is classified by NVD as CWE-1390, weak authentication.
Attack Vector
The attacker needs network access to the SharePoint web front end. The PoC performs the following unauthenticated steps:
- Requests the STS metadata document at the layouts metadata endpoint to learn the realm GUID and the x5t thumbprint of the signing certificate.
- Optionally discovers the target host name from the NTLM challenge and the domain SID from an SMB null session using LSARPC, or takes a known SID or UPN directly.
- Builds an actor JWT and an outer JWT with the “none” algorithm, setting nameid and nii to an Active Directory SID, a UPN, or the local service identity.
- Sends the forged token as a Bearer Authorization header to the current-user API endpoint to confirm the identity, then to the context-info endpoint to obtain a form digest for post-authentication operations.
Impact
An unauthenticated attacker gains a SharePoint-authenticated session as an arbitrary user. If a site administrator SID or UPN is chosen, the attacker obtains site collection administration, which can be chained to further SharePoint post-authentication exploitation and, depending on configuration, code execution on the SharePoint server. The PoC’s SID iteration mode can discover a site administrator automatically by walking domain RIDs.
Environment / Lab Setup
OS: Linux or Windows attacker host
Target: Microsoft SharePoint Server (unpatched, e.g. Subscription Edition
build < 16.0.19725.20434) with an STS metadata endpoint reachable
Attacker: Python 3.8+ with curl on PATH
Tools: curl, python3, impacket (optional, only for SMB/LSARPC SID discovery)Setup Steps
The upstream repository does not include lab build or installation instructions, and this entry does not add a lab harness. Reproduction requires an existing SharePoint deployment (or a lab VM built from Microsoft media) that is reachable over the network, plus either a known user SID/UPN, a domain controller reachable over SMB for SID discovery, or a certificate whose CN reveals the domain for the automatic UPN mode. Install the optional SMB dependency with python3 -m pipx install impacket as documented upstream.
| |
Proof of Concept
Step-by-Step Reproduction
- Discover the realm and signing thumbprint — the script requests the layouts metadata endpoint over HTTPS and extracts the realm from the issuer claim and the x5t thumbprint from the embedded signing certificate.
- Choose an identity — pass a known SID with
--sid, a known UPN with--upn, a domain controller with--domain-ipfor automatic SID enumeration, or use the default local service identity. - Forge the token — the script builds the actor token with RS256/x5t metadata and the outer token with the “none” algorithm, an hour-long window, and the trusted-for-delegation claim.
- Validate the bypass — the forged Bearer token is sent to the current-user endpoint; a 200 response containing the chosen login name confirms the bypass.
- Obtain a form digest — the same Bearer token is posted to the context-info endpoint and the returned form digest can be reused for authenticated SharePoint operations.
Exploit Code
See
CVE-2026-55040.pyin this folder. The upstream README with full usage examples isupstream-README.md.
| |
Expected Output
======================================================================
Rapid7 Labs - Microsoft SharePoint Authentication Bypass (CVE-2026-55040)
======================================================================
[1] Auto-discovery...
[+] Discovering x5t and realm from STS metadata...
[*] x5t: a1g8DVePm6FB892C0AAB23-Wl7M
[*] realm: 66aaa1e2-b658-41c4-8911-ff2d5bab5423
[+] Targeting: https://WIN-79B765S1R4G
[2] Forging JWT token...
[+] Token forged (1047 bytes)
[3] Obtaining form digest...
[+] Digest obtained.With automatic SID enumeration the output also shows the RID walk, for example [+] RID 1605: SHAREPOINT\system (System Account) ** SITE ADMIN ** followed by the chosen site-admin SID.
Detection & Indicators of Compromise
SIEM / IDS Rule (example):
alert http any any -> any any (msg:"Possible SharePoint CVE-2026-55040 forged JWT"; \
content:"Authorization|3a| Bearer"; http_header; \
content:"eyJhbGciOiJub25l"; http_header; sid:90055040;)Remediation
| Action | Detail |
|---|---|
| Patch | Apply the Microsoft security update for CVE-2026-55040; SharePoint Server builds must be at or above 16.0.19725.20434. |
| Workaround | Restrict external access to the SharePoint STS metadata endpoint and the SharePoint web front end until patched, and add a WAF/reverse-proxy rule that rejects Bearer JWTs whose header declares the “none” algorithm or that carry an unexpected actor token. |
| Config Hardening | Enforce signed-token validation, monitor for unsolicited metadata endpoint access, review site collection administrators, and keep the SharePoint farm and its identity integration on supported builds. |
References
Notes
Auto-prepared 2026-11-27 from https://github.com/sfewer-r7/CVE-2026-55040 (last upstream commit 2026-08-10, Stephen Fewer / Rapid7 Labs). Review verdict: genuine authentication-bypass PoC. The script performs the actual token forgery and validates the bypass against a live SharePoint service, so it was ingested; it is not a scanner or version checker. The upstream repository has no explicit license file, so the exploit is archived with attribution for authorized security research only. Limitations: the script’s final step after obtaining the form digest is an unfinished placeholder, so it demonstrates the authentication bypass rather than a full remote code execution chain; auto-SID discovery needs SMB/LSARPC reachability to a domain controller; UPN or SID modes need a valid identity; and the target must expose the STS metadata endpoint. CISA added this CVE to its KEV catalog on 2026-08-18. Run only against systems you own or have written authorization to test.
| |