Skip to content

chore(deps): update module github.com/mark3labs/mcp-go to v1 [security] - #2537

Merged
ramizpolic merged 1 commit into
mainfrom
renovate/go-github.com-mark3labs-mcp-go-vulnerability
Nov 24, 2026
Merged

ramizpolic merged 1 commit into
mainfrom
renovate/go-github.com-mark3labs-mcp-go-vulnerability

Conversation

@agntcy-automation

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
github.com/mark3labs/mcp-go v0.58.0 → v1.6.0 age confidence

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


SSRF and credential leak via unvalidated redirects and SSE endpoint origin in github.com/mark3labs/mcp-go

GO-2026-6911

More information

Details

In github.com/mark3labs/mcp-go/client/transport, NewStreamableHTTP, NewSSE, and NewOAuthHandler construct default http.Client instances with a nil CheckRedirect policy when no custom HTTP client (WithHTTPBasicClient, WithHTTPClient, or OAuthConfig.HTTPClient) is supplied. Additionally, SSE.handleSSEEvent validates the server-supplied endpoint event URL only against the connection's host, without verifying the scheme or port.

When an MCP or OAuth server responds with a 3xx redirect, net/http follows up to 10 http or https redirects to arbitrary origins:

  • Custom headers configured via WithHTTPHeaders, WithHTTPHeaderFunc, WithHeaders, or WithHeaderFunc are copied onto requests to any redirect host.
  • The Authorization header (including OAuth bearer tokens) is preserved when redirecting to the same host or a subdomain, including across port changes or https-to-http scheme downgrades.
  • On 307 and 308 redirects, the request body is resent to the redirect target, exposing JSON-RPC payloads on transport requests and form bodies containing client_secret, authorization codes, or refresh tokens on OAuth token, refresh, and client registration requests.

This enables server-side request forgery (SSRF) and credential or payload disclosure.

Severity

Unknown

References

This data is provided by OSV and the Go Vulnerability Database (CC-BY 4.0).


Release Notes

mark3labs/mcp-go (github.com/mark3labs/mcp-go)

v1.6.0

Compare Source

What's Changed
New Contributors

Full Changelog: mark3labs/mcp-go@v1.5.0...v1.6.0

v1.5.0

Compare Source

What's Changed
New Contributors

Full Changelog: mark3labs/mcp-go@v1.4.0...v1.5.0

v1.4.0

Compare Source

What's Changed
New Contributors

Full Changelog: mark3labs/mcp-go@v1.3.0...v1.4.0

v1.3.0

Compare Source

What's Changed
New Contributors

Full Changelog: mark3labs/mcp-go@v1.2.1...v1.3.0

v1.2.1

Compare Source

What's Changed
  • fix(oauth): validate resource in well-known protected resource metadata by @​ezynda3 in #​1053

Full Changelog: mark3labs/mcp-go@v1.2.0...v1.2.1

v1.2.0

Compare Source

What's Changed
  • fix(client): don't write transport and trace headers into the caller's header map by @​serhiizghama in #​1028
  • fix(server): preserve typed JSON-RPC handler errors by @​FlameHost10 in #​1027
  • fix(server): send empty arrays instead of null in results by @​po-et in #​989
  • fix(server): reject missing client capabilities with invalid params by @​po-et in #​990
  • fix(server): send URLElicitationRequiredError from handlers as -32042 by @​po-et in #​992
  • fix(streamable-http): deliver notifications on modern subscriptions/listen streams by @​po-et in #​993
  • fix(mcp): parse an input_required tool result that has no content by @​po-et in #​994
  • fix(client): exclude tools with invalid x-mcp-header annotations by @​po-et in #​996
  • test(client): remove the mock server's build cache after building it by @​po-et in #​998
  • fix(server): report handlers that return no result as internal errors by @​po-et in #​999
  • fix(sse): send a recovered panic's error with the request's id by @​po-et in #​1000
  • fix(mcp): accept an Mcp-Param header sent with an empty value by @​po-et in #​1001
  • fix(stdio): recover handler panics on the read loop by @​po-et in #​1002
  • fix(oauth): reject authorization server metadata for another issuer by @​po-et in #​1004
  • fix(oauth): authenticate at the token endpoint the way the server supports by @​po-et in #​1005
  • fix(client): resume an SSE response stream the server ends early by @​po-et in #​1010
  • fix(client): don't answer a server's request with null by @​po-et in #​1011
  • fix(server): run a session's own tool when it is called as a task by @​po-et in #​1012
  • fix(oauth): share one token refresh among concurrent callers by @​po-et in #​1013
  • fix(oauth): discover the authorization server again after a failure by @​po-et in #​1014
  • fix(oauth): send a token without a type as a bearer token by @​po-et in #​1015
  • fix(client): cancel requests over stdio when their context ends by @​po-et in #​1016
  • fix(sse): wait for room in the event queue instead of dropping a response by @​po-et in #​1017
  • fix(client): support re-initializing after the server ends the session by @​po-et in #​1018
  • fix(client): follow pagination cursors when listing tasks by @​o-mid in #​1020
  • fix(mcp): omit empty completion context arguments by @​hmdsefi in #​1024
  • perf(server): touch a known session without allocating by @​pbednarcik in #​1026
  • fix: parse sampling content sent as an array by @​hmdsefi in #​1029
  • fix(server): reject an unsupported MCP-Protocol-Version header by @​hmdsefi in #​1030
  • fix(mcp): keep structuredContent on tool_result content by @​hmdsefi in #​1031
  • fix(client): reject repeated pagination cursors on list APIs by @​o-mid in #​1033
  • test(conformance): add official MCP server suite to CI by @​mikamikasuki in #​1038
New Contributors

Full Changelog: mark3labs/mcp-go@v1.1.1...v1.2.0

v1.1.1

Compare Source

v1.1.0

Compare Source

v1.0.0

Compare Source

What's Changed
New Contributors

Full Changelog: mark3labs/mcp-go@v0.58.0...v1.0.0

@agntcy-automation
agntcy-automation Bot requested a review from a team as a code owner November 24, 2026 00:18
@agntcy-automation agntcy-automation Bot added go Pull requests that update go code security labels Nov 24, 2026
@github-actions github-actions Bot added the size/XS Denotes a PR that changes 0-49 lines label Nov 24, 2026
@codecov

codecov Bot commented Nov 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@agntcy-automation
agntcy-automation Bot force-pushed the renovate/go-github.com-mark3labs-mcp-go-vulnerability branch from 304c928 to 7bb48e2 Compare November 24, 2026 12:13
@ramizpolic
ramizpolic added this pull request to the merge queue Nov 24, 2026
Merged via the queue into main with commit e4d0685 Nov 24, 2026
36 checks passed
@ramizpolic
ramizpolic deleted the renovate/go-github.com-mark3labs-mcp-go-vulnerability branch November 24, 2026 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

go Pull requests that update go code security size/XS Denotes a PR that changes 0-49 lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant