Skip to content

dotnet-mcp-builder: pin sample dependency versions - #2699

Open
jeanpaulhassane-225 wants to merge 1 commit into
github:mainfrom
jeanpaulhassane-225:fix/dotnet-mcp-builder-pin-versions
Open

dotnet-mcp-builder: pin sample dependency versions#2699
jeanpaulhassane-225 wants to merge 1 commit into
github:mainfrom
jeanpaulhassane-225:fix/dotnet-mcp-builder-pin-versions

Conversation

@jeanpaulhassane-225

Copy link
Copy Markdown

Summary

  • The MCP Apps sample HTML bundle imported @modelcontextprotocol/ext-apps from esm.sh using an unpinned major-version tag (@1). Snyk flags this as a medium-risk unverifiable external dependency / third-party content exposure (indirect prompt-injection surface, since the imported module can call app.updateModelContext and app.callServerTool). Pinned to the current release, 1.7.5.
  • Pinned the sample dotnet add package commands for ModelContextProtocol, ModelContextProtocol.AspNetCore, ModelContextProtocol.Core, and Microsoft.Extensions.Hosting to their current exact versions (2.2.0 / 10.0.11) across packages.md, transport-stdio.md, transport-http.md, and client.md.
  • Corrected a stale "2.0.0 is current" note in packages.md to 2.2.0.

Test plan

  • Docs-only change — no build required.

The MCP Apps sample HTML bundle imported ext-apps from esm.sh using an
unpinned major-version tag (@1), which Snyk flags as an unverifiable
external dependency / third-party content exposure risk (indirect
prompt-injection surface, since the imported module can call
app.updateModelContext and app.callServerTool). Pin it to the current
release (1.7.5).

Also pin the sample `dotnet add package` commands for the
ModelContextProtocol* and Microsoft.Extensions.Hosting packages to
their current exact versions (2.2.0 / 10.0.11), and correct a stale
"2.0.0 is current" note in packages.md.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant