
Probe MCP OAuth discovery issuer validation (CVE-2026-104850 class)
Run it in CI — fails the build on findings at or above your threshold:
- uses: actions/checkout@v4
- uses: Iceman2050/mcp-oauth-discovery-prober@v1
with:
mode: 'strict' # or 'lax' to demonstrate the vulnerable class
# sdk-version: '1.20.0' # optional: check against fixed releases
Full input reference: action.yml.
Your MCP server shouldn't decide where your credentials go.
In October 2026, CVE-2026-104850 (CVSS 7.5) showed the official MCP TypeScript SDK would send client secrets, authorization codes, and PKCE proof keys to attacker-controlled token endpoints: when a malicious server returned 404 on the OAuth discovery endpoint, the fallback path skipped issuer validation. Like a valet who asks a restaurant where to leave your car keys — the restaurant says "with my cousin round the back," and the valet just does it.
This tool probes the OAuth discovery trust boundary: it feeds a mock rogue server (attacker-controlled authorization endpoint) to a client-side issuer-validation function and reports whether the client would hand its secrets to the attacker. It also checks a declared SDK version against the fixed releases (1.31.0 / 2.2.0). Deterministic, stdlib only, no real network — the rogue server is a local mock.
# probe the reference strict validation logic
python3 mcp_oauth_discovery_prober.py --mode strict
# demonstrate the vulnerable fallback class
python3 mcp_oauth_discovery_prober.py --mode lax
# also check your declared SDK version
python3 mcp_oauth_discovery_prober.py --mode lax --sdk-version 1.12.0 --json
Verdicts: VULNERABLE (accepts the rogue issuer), PROTECTED (rejects rogue, accepts expected), UNKNOWN (rejects even the expected issuer — misconfiguration, investigate).
from mcp_oauth_discovery_prober import run_probe
def my_validation(issuer, expected):
return issuer.rstrip("/") == expected.rstrip("/")
print(run_probe(my_validation)["verdict"]) # PROTECTED or VULNERABLE
PROTECTED verdict means the injected validation logic rejects rogue issuers, not that your deployed client is configured correctly.Python standard library only. No network, no dependencies.
This tool is built and maintained by Ingenious AI. Get early access to our AI security platforms:
Built by Ingenious AI