Commit 3553569
authored
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 />
[](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
2 files changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
| 173 | + | |
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
344 | 344 | | |
345 | 345 | | |
346 | 346 | | |
347 | | - | |
348 | | - | |
| 347 | + | |
| 348 | + | |
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
| |||
415 | 415 | | |
416 | 416 | | |
417 | 417 | | |
418 | | - | |
419 | | - | |
| 418 | + | |
| 419 | + | |
420 | 420 | | |
421 | 421 | | |
422 | 422 | | |
| |||
0 commit comments