[v1.x] fix: prevent command injection in example URL opening by maxisbey · Pull Request #2085 · modelcontextprotocol/python-sdk

@maxisbey

Backport of #2082 to v1.x.

Replace platform-specific subprocess calls with webbrowser.open() and add
URL scheme validation (http/https allowlist) to block dangerous protocol
handlers in the URL elicitation example client.

felixweinberger

@maxisbey

felixweinberger

@maxisbey maxisbey deleted the fix/example-command-injection-v1x branch

February 18, 2026 19:04