Skip to content

fix(ci): bump mcp to 1.28.1 to resolve osv-scan CVEs - #33683

Closed
cursor[bot] wants to merge 1 commit into
litellm_internal_stagingfrom
cursor/ci-autofix-automation-dd2f
Closed

cursor[bot] wants to merge 1 commit into
litellm_internal_stagingfrom
cursor/ci-autofix-automation-dd2f

Conversation

@cursor

@cursor cursor Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Relevant issues

Linear ticket

Pre-Submission checklist

Please complete all items before asking a LiteLLM maintainer to review your PR

  • I have added meaningful tests
  • My PR passes all CI/CD checks (e.g., lint, format, unit tests)
  • My PR's scope is as isolated as possible; it only solves 1 specific problem
  • I have received a Greptile Confidence Score of at least 4/5 before requesting a maintainer review (Greptile reviews automatically once the PR is opened; only comment @greptileai to re-request a review after pushing changes)

Delays in PR merge?

If you're seeing a delay in your PR being merged, ping the LiteLLM Team on Slack (#pr-review).

Screenshots / Proof of Fix

Before (any PR against litellm_internal_staging at HEAD 4d33964898, e.g. https://github.com/BerriAI/litellm/actions/runs/29574961486/job/83553076108): the osv-scan check fails with

Total 1 package affected by 3 known vulnerabilities (0 Critical, 3 High, 0 Medium, 0 Low, 0 Unknown) from 1 ecosystem.
3 vulnerabilities can be fixed.

| https://osv.dev/GHSA-hvrp-rf83-w775 | 7.6  | PyPI | mcp | 1.26.0 | 1.27.2 | uv.lock |
| https://osv.dev/GHSA-jpw9-pfvf-9f58 | 7.1  | PyPI | mcp | 1.26.0 | 1.27.2 | uv.lock |
| https://osv.dev/GHSA-vj7q-gjh5-988w | 7.6  | PyPI | mcp | 1.26.0 | 1.28.1 | uv.lock |
##[error]Process completed with exit code 1.

After: the osv-scan check on this PR runs against mcp 1.28.1 and reports no known vulnerabilities for it (proof is the green osv-scan check on this PR's HEAD; will update here once CI completes)

No runtime behavior changes; sanity-checked with the litellm mcp import surface against mcp 1.28.1:

$ .venv/bin/python -c 'from mcp import ClientSession, ReadResourceResult, Resource, StdioServerParameters; from mcp.client.sse import sse_client; from mcp.client.stdio import stdio_client; from mcp.types import Tool, EmbeddedResource, ImageContent, TextContent, CallToolRequestParams, CallToolResult; import mcp.client.streamable_http; import litellm.experimental_mcp_client.client, litellm.responses.mcp.litellm_proxy_mcp_handler, litellm.proxy._experimental.mcp_server.sse_transport; print("ok")'
ok
$ .venv/bin/python -c 'import importlib.metadata; print("mcp:", importlib.metadata.version("mcp"))'
mcp: 1.28.1

Also ran the pure-python subset of tests/mcp_tests/ against the new lock; 140/140 pass, and the small handful of pre-existing failures reproduce on staging without this change (they need a system-python mcp install or an OPENAI_API_KEY)

Type

Bug Fix
Infrastructure

Changes

Bumps the mcp floor in the proxy extra from >=1.26.0,<2.0 to >=1.28.1,<2.0 in pyproject.toml and regenerates uv.lock via uv lock --upgrade-package mcp. The lock was regenerated with uv 0.10.9 (the version family that wrote the current staging lock) so the diff touches only mcp's entry (version, sdist, wheel hashes) plus uv's exclude-newer timestamp; regenerating with uv 0.11.x adds several hundred lines of unrelated marker normalization churn.

mcp 1.26.0 has three known high-severity GHSAs, all fixed no later than 1.28.1, which made the osv-scan check fail on every PR:

  • GHSA-hvrp-rf83-w775 (7.6, fixed in 1.27.2): experimental task handlers allow any client to access and cancel other clients' tasks
  • GHSA-jpw9-pfvf-9f58 (7.1, fixed in 1.27.2): HTTP transports serve session requests without verifying the authenticated principal
  • GHSA-vj7q-gjh5-988w (7.6, fixed in 1.28.1): WebSocket server transport does not support Host/Origin validation

Final Attestation

  • The tests check the right things, including the edge cases, and regressions in the respective real-world customer use-cases are not possible after this PR
Open in Web View Automation 

mcp 1.26.0 has 3 known high-severity GHSAs (all fixed in <=1.28.1):

- GHSA-hvrp-rf83-w775: experimental task handlers allow any client to
  access and cancel other clients' tasks (fixed in 1.27.2)
- GHSA-jpw9-pfvf-9f58: HTTP transports serve session requests without
  verifying the authenticated principal (fixed in 1.27.2)
- GHSA-vj7q-gjh5-988w: WebSocket server transport does not support
  Host/Origin validation (fixed in 1.28.1)

Bumps the proxy extra floor from >=1.26.0 to >=1.28.1 in pyproject.toml
and refreshes uv.lock (regenerated with uv 0.10.9 to keep the diff to
mcp only). The <2.0 upper bound is unchanged

Co-authored-by: Krrish Dholakia <krrish-berri-2@users.noreply.github.com>
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@codecov

codecov Bot commented Jul 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@codspeed

codspeed Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 31 untouched benchmarks


Comparing cursor/ci-autofix-automation-dd2f (16b9f62) with litellm_internal_staging (4d33964)

Open in CodSpeed

@yuneng-berri
yuneng-berri deleted the branch litellm_internal_staging September 13, 2026 04:32
@yuneng-berri yuneng-berri reopened this Sep 13, 2026
@mateo-berri

Copy link
Copy Markdown
Contributor

Closing as superseded, since main requires mcp 2.2 or newer after #41718 and this bump to 1.28.1 no longer applies

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.

4 participants