Skip to content

Commit 3553569

Browse files
build(deps): bump github.com/modelcontextprotocol/go-sdk from 1.4.0 to 1.4.1 in the go_modules group across 1 directory (#2659)
Bumps the go_modules group with 1 update in the / directory: [github.com/modelcontextprotocol/go-sdk](https://github.com/modelcontextprotocol/go-sdk). Updates `github.com/modelcontextprotocol/go-sdk` from 1.4.0 to 1.4.1 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/modelcontextprotocol/go-sdk/releases">github.com/modelcontextprotocol/go-sdk's releases</a>.</em></p> <blockquote> <h2>v1.4.1</h2> <p><em><strong>This release is a patch release for v1.4.0.</strong></em></p> <p>It contains cherry-picks for several security improvements. Security advisories will follow.</p> <h1>Fixes</h1> <h2>Update of the <code>segmentio/encoding</code> module version</h2> <p>The JSON parsing library that was adopted to avoid attacks taking advantage of the Go's standard parser being case insensitive turned out to contain an issue itself. We have submitted the fix upstream and this release updates the dependency to the patched version.</p> <h2>Cross-origin requests protection</h2> <p>We have added additional protection against cross origin requests. From now on, we verify that <code>Content-Type</code> for JSON-RPC <code>POST</code> requests is set to <code>application/json</code> and use the new <code>http.CrossOriginProtection</code> functionality to verify the origin of the request. Usage of this functionality required <strong>increasing the required Go version to 1.25</strong>, which is in line with our Go version policy of supporting two newest Go versions. The behavior can be customized by passing a configured <code>http.CrossOriginProtection</code> object to <code>StreamableHTTPOptions</code>.</p> <p>Since this is a behavior change, we introduced a compatibility parameter <code>disablecrossoriginprotection</code> that will allow to temporarily disable it. It will be removed in <code>v1.6.0</code> version of the SDK. See <a href="https://github.com/modelcontextprotocol/go-sdk/blob/main/docs/mcpgodebug.md">here</a> for more details about behavior changes and a history of compatibility parameters across SDK versions.</p> <h2>Allowing customization of <code>http.Client</code> for client-side OAuth</h2> <p>We have introduced an optional <code>http.Client</code> parameter to <code>AuthorizationCodeHandlerConfig</code>. This allows customization of the transport, for example implementing environment specific protection against <a href="https://modelcontextprotocol.io/docs/tutorials/security/security_best_practices#server-side-request-forgery-ssrf">Server-Side Request Forgery</a>.</p> <h1>Pull requests</h1> <ul> <li>internal: fix Unicode zero character handling by <a href="https://github.com/maciej-kisiel"><code>@​maciej-kisiel</code></a> in <a href="https://redirect.github.com/modelcontextprotocol/go-sdk/pull/841">modelcontextprotocol/go-sdk#841</a></li> <li>auth: allow passing custom http.Client to AuthorizationCodeHandler by <a href="https://github.com/maciej-kisiel"><code>@​maciej-kisiel</code></a> in <a href="https://redirect.github.com/modelcontextprotocol/go-sdk/pull/840">modelcontextprotocol/go-sdk#840</a></li> <li>mcp: verify 'Origin' and 'Content-Type' headers by <a href="https://github.com/maciej-kisiel"><code>@​maciej-kisiel</code></a> in <a href="https://redirect.github.com/modelcontextprotocol/go-sdk/pull/842">modelcontextprotocol/go-sdk#842</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/modelcontextprotocol/go-sdk/compare/v1.4.0...v1.4.1">https://github.com/modelcontextprotocol/go-sdk/compare/v1.4.0...v1.4.1</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/modelcontextprotocol/go-sdk/commit/580f2a09be5c5b7ed4d868aa74ad1019dfd5160a"><code>580f2a0</code></a> mcp: verify 'Origin' and 'Content-Type' headers (<a href="https://redirect.github.com/modelcontextprotocol/go-sdk/issues/842">#842</a>)</li> <li><a href="https://github.com/modelcontextprotocol/go-sdk/commit/421ddf1ef286bfd1e8173621fd9a2d587f54135f"><code>421ddf1</code></a> auth: allow passing custom http.Client to AuthorizationCodeHandler (<a href="https://redirect.github.com/modelcontextprotocol/go-sdk/issues/840">#840</a>)</li> <li><a href="https://github.com/modelcontextprotocol/go-sdk/commit/515f11be07c6a34b8ed48e669c2c9bbfa85eb9f9"><code>515f11b</code></a> internal: fix Unicode zero character handling (<a href="https://redirect.github.com/modelcontextprotocol/go-sdk/issues/841">#841</a>)</li> <li>See full diff in <a href="https://github.com/modelcontextprotocol/go-sdk/compare/v1.4.0...v1.4.1">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/modelcontextprotocol/go-sdk&package-manager=go_modules&previous-version=1.4.0&new-version=1.4.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore <dependency name> major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself) - `@dependabot ignore <dependency name> minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself) - `@dependabot ignore <dependency name>` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself) - `@dependabot unignore <dependency name>` will remove all of the ignore conditions of the specified dependency - `@dependabot unignore <dependency name> <ignore condition>` will remove the ignore condition of the specified dependency and ignore conditions You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/google/osv-scanner/network/alerts). </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent 9043690 commit 3553569

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ require (
2222
github.com/google/osv-scalibr v0.4.6-0.20260318175007-ec4239d68fb9
2323
github.com/ianlancetaylor/demangle v0.0.0-20251118225945-96ee0021ea0f
2424
github.com/jedib0t/go-pretty/v6 v6.7.8
25-
github.com/modelcontextprotocol/go-sdk v1.4.0
25+
github.com/modelcontextprotocol/go-sdk v1.4.1
2626
github.com/muesli/reflow v0.3.0
2727
github.com/opencontainers/go-digest v1.0.0
2828
github.com/ossf/osv-schema/bindings/go v0.0.0-20260304051245-ec3272c283e4
@@ -170,7 +170,7 @@ require (
170170
github.com/santhosh-tekuri/jsonschema/v6 v6.0.1 // indirect
171171
github.com/secDre4mer/pkcs7 v0.0.0-20240322103146-665324a4461d // indirect
172172
github.com/segmentio/asm v1.1.3 // indirect
173-
github.com/segmentio/encoding v0.5.3 // indirect
173+
github.com/segmentio/encoding v0.5.4 // indirect
174174
github.com/sergi/go-diff v1.4.0 // indirect
175175
github.com/shirou/gopsutil v3.21.11+incompatible // indirect
176176
github.com/sirupsen/logrus v1.9.4-0.20230606125235-dd1b4c2e81af // indirect

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -344,8 +344,8 @@ github.com/moby/sys/userns v0.1.0 h1:tVLXkFOxVu9A64/yh59slHVv9ahO9UIev4JZusOLG/g
344344
github.com/moby/sys/userns v0.1.0/go.mod h1:IHUYgu/kao6N8YZlp9Cf444ySSvCmDlmzUcYfDHOl28=
345345
github.com/moby/term v0.0.0-20221205130635-1aeaba878587 h1:HfkjXDfhgVaN5rmueG8cL8KKeFNecRCXFhaJ2qZ5SKA=
346346
github.com/moby/term v0.0.0-20221205130635-1aeaba878587/go.mod h1:8FzsFHVUBGZdbDsJw/ot+X+d5HLUbvklYLJ9uGfcI3Y=
347-
github.com/modelcontextprotocol/go-sdk v1.4.0 h1:u0kr8lbJc1oBcawK7Df+/ajNMpIDFE41OEPxdeTLOn8=
348-
github.com/modelcontextprotocol/go-sdk v1.4.0/go.mod h1:Nxc2n+n/GdCebUaqCOhTetptS17SXXNu9IfNTaLDi1E=
347+
github.com/modelcontextprotocol/go-sdk v1.4.1 h1:M4x9GyIPj+HoIlHNGpK2hq5o3BFhC+78PkEaldQRphc=
348+
github.com/modelcontextprotocol/go-sdk v1.4.1/go.mod h1:Bo/mS87hPQqHSRkMv4dQq1XCu6zv4INdXnFZabkNU6s=
349349
github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 h1:RWengNIwukTxcDr9M+97sNutRR1RKhG96O6jWumTTnw=
350350
github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826/go.mod h1:TaXosZuwdSHYgviHp1DAtfrULt5eUgsSMsZf+YrPgl8=
351351
github.com/morikuni/aec v1.0.0 h1:nP9CBfwrvYnBRgY6qfDQkygYDmYwOilePFkwzv4dU8A=
@@ -415,8 +415,8 @@ github.com/secDre4mer/pkcs7 v0.0.0-20240322103146-665324a4461d h1:RQqyEogx5J6wPd
415415
github.com/secDre4mer/pkcs7 v0.0.0-20240322103146-665324a4461d/go.mod h1:PegD7EVqlN88z7TpCqH92hHP+GBpfomGCCnw1PFtNOA=
416416
github.com/segmentio/asm v1.1.3 h1:WM03sfUOENvvKexOLp+pCqgb/WDjsi7EK8gIsICtzhc=
417417
github.com/segmentio/asm v1.1.3/go.mod h1:Ld3L4ZXGNcSLRg4JBsZ3//1+f/TjYl0Mzen/DQy1EJg=
418-
github.com/segmentio/encoding v0.5.3 h1:OjMgICtcSFuNvQCdwqMCv9Tg7lEOXGwm1J5RPQccx6w=
419-
github.com/segmentio/encoding v0.5.3/go.mod h1:HS1ZKa3kSN32ZHVZ7ZLPLXWvOVIiZtyJnO1gPH1sKt0=
418+
github.com/segmentio/encoding v0.5.4 h1:OW1VRern8Nw6ITAtwSZ7Idrl3MXCFwXHPgqESYfvNt0=
419+
github.com/segmentio/encoding v0.5.4/go.mod h1:HS1ZKa3kSN32ZHVZ7ZLPLXWvOVIiZtyJnO1gPH1sKt0=
420420
github.com/sergi/go-diff v1.4.0 h1:n/SP9D5ad1fORl+llWyN+D6qoUETXNZARKjyY2/KVCw=
421421
github.com/sergi/go-diff v1.4.0/go.mod h1:A0bzQcvG0E7Rwjx0REVgAGH58e96+X0MeOfepqsbeW4=
422422
github.com/shirou/gopsutil v3.21.11+incompatible h1:+1+c1VGhc88SSonWP6foOcLhvnKlUeu/erjjvaPEYiI=

0 commit comments

Comments
 (0)