Security best practices: SSRF section does not cover local stdio-to-HTTP bridges acting as OAuth clients
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 42/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- markdown
- Domain
- documentation, security
Research direction
The change goes in docs/docs/draft/tutorials/security/security_best_practices.mdx, directly after the "DNS Resolution Considerations" subsection and before "SSRF Against Authorization Servers". Read the existing SSRF mitigations first, since the proposed text refers back to them. Done means the subsection is inserted as written, or revised with maintainers, and the docs build still renders. The issue is open with no comments, and the wording itself is a policy decision, so confirm scope with a maintainer before editing.
Written by the indexing model from the issue text.
Description
What's broken?
The spec doesn't cover a case it clearly should
Where in the spec or docs?
Security Best Practices, section "Server-Side Request Forgery (SSRF)". Source file: docs/docs/draft/tutorials/security/security_best_practices.mdx. The spot is the end of "DNS Resolution Considerations", right before "SSRF Against Authorization Servers".
What should happen?
The SSRF section should name the local stdio-to-HTTP bridge as a client that runs OAuth discovery on the user's machine. It should say that the section's mitigations apply to it. Proposed subsection below, ready to drop in after "DNS Resolution Considerations". It is 34 lines; nothing existing changes.
#### Local Bridges Acting as Clients
A local bridge that turns a stdio connection into Streamable HTTP runs
the whole OAuth client role on the user's machine. The client in this
section is then the bridge rather than the application the user sees. The
bridge reads `WWW-Authenticate` and fetches the protected resource
metadata. It picks an authorization server from `authorization_servers`.
Then it sends the token request to the `token_endpoint` named in that
server's metadata. The remote server controls each of those values. The bridge makes the requests from inside the user's network.
The mitigations above are written for clients deployed to a server. A
bridge on a laptop or a CI runner needs the same mitigations. The
reachable targets differ in two ways. Loopback and link-local addresses are now
the user's own services and, on a cloud-hosted development machine, the
instance metadata endpoint. A bridge is also usually started from a host
application's configuration, so the user never sees the URLs it was sent
to.
**Bridge Authors**
Bridge authors **SHOULD**:
- Apply the HTTPS, private-range and redirect checks of this section
before every discovery fetch and before the token request
- Record the destinations they chose where the user can inspect them
**Hosts That Launch a Bridge**
Hosts that start a bridge from their own configuration flows **SHOULD**:
- Pin it to a reviewed version
- Prefer a native remote transport where they have one, so that the host
itself performs the client-side validation
What actually happens?
The mitigation text reads: "MCP clients deployed to a server MUST consider SSRF risks and implement appropriate mitigations when fetching OAuth-related URLs." A local stdio-to-HTTP bridge runs that same discovery from the user's machine, and nothing in that setup is deployed to a server. It takes resource_metadata, authorization_servers and the token endpoint from the remote server and then sends its requests wherever they point, including the token request. The page does not cover that case. Host applications start such bridges from their configuration flows, for users who never see those URLs.
Anything else?
Why I think it is needed. Five CVE records exist for one such bridge, mcp-remote on npm: CVE-2026-51994, -51995, -51996, -51997 and -52001. MITRE published them on 24 September 2026; the CNA text gives 0.1.16 through 0.1.38 as affected. I reported them. On 15 October I ran the current release, 0.15.1, against loopback canaries with the procedure in my research record. It still followed the server-selected discovery paths of the first two records. Evidence, procedures and limits: https://github.com/playb0t/mcp-remote-oauth-security.
On the channel: the repository lets only collaborators open pull requests at the moment, so this comes as a documentation issue with the text inline. If a maintainer prefers it as a PR, I will open one the moment a fork is allowed to. Happy to move it under another heading or trim it if the docs team prefers a shorter note.
AI disclosure: I drafted this with AI assistance (Claude Code) from my own research notes and reviewed every sentence; the evidence and the rationale are mine.
- Dominant language
- TypeScript
- Stars
- 9.8k
- Forks
- 1.9k
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 73
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from modelcontextprotocol/modelcontextprotocol
-
docs: add Gravitee Access Management to the Enterprise-Managed Authorization implementation tableOpenbug
Difficulty 1/5 Under an hour Newbie friendliness 85/100
modelcontextprotocol/modelcontextprotocol#3583 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 72/100
modelcontextprotocol/modelcontextprotocol#3581 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
modelcontextprotocol/modelcontextprotocol#3571 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
modelcontextprotocol/modelcontextprotocol#3554 ·
Maintainers usually reply within 1 day
-
Sampling with tools: two small correctionsMay be free again @AbarnaaSree claimed this 19 days ago, and no pull request is open. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
modelcontextprotocol/modelcontextprotocol#3490 · 2 comments ·
Maintainers usually reply within 1 day
All issues in modelcontextprotocol/modelcontextprotocol
Similar issues
-
bug
Difficulty 2/5 Half a day Newbie friendliness 62/100
garethgeorge/backrest#1451 ·
Maintainers usually reply within 1 day
-
fix(core): \.pluck() returns values in key insertion order instead of requested argument orderPossibly taken @ManyaS-Git claimed this 1 day ago. Openstatus:in-linear
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
n8n-io/n8n#45027 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 13 days
-
bug
Difficulty 2/5 Half a day Newbie friendliness 68/100
navikt/skjemabygging-formio#2399 ·
Maintainers usually reply within 3 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
lidofinance/validator-ejector#233 ·
Maintainers usually reply within 1 day