@devries-cameron20 / composio-1 / commits / c1ffdd009
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

ci(py): scope the MCP server advisory exception to workspace (#4918)

This PR: - scopes the CVE-2026-59951 exception to the Python workspace audit that includes CrewAI. - documents why the affected stateful MCP HTTP server transport is outside Composio's adapter execution path, the upstream dependency constraint, and the removal condition. - keeps the standalone provider audits unchanged and preserves `pip-audit --strict`. The [upstream advisory](https://github.com/modelcontextprotocol/python-sdk/security/advisories/GHSA-84m7-p3x7-pcfv) describes unbounded session retention in stateful Streamable HTTP servers. The Composio CrewAI adapter wraps `crewai.tools.BaseTool`; it does not start an MCP HTTP server. Inspection of the locked CrewAI 1.15.22 wheel found MCP client transports and no affected server implementation. Composio's MCP configuration calls target its hosted API. A dependency upgrade is currently blocked: both locked CrewAI 1.15.22 and the [latest published CrewAI 1.15.28 metadata](https://pypi.org/pypi/crewai/1.15.28/json) require `mcp~=1.28.1`, excluding the patched 1.30.0 release. This PR leaves dependency versions unchanged. Applications independently hosting an affected MCP server still need an upstream patch or mitigation; this exception applies to the repository's client-only integration. Validation: - Reproduced the existing Python 3.12 workspace audit failure: `mcp 1.28.1 CVE-2026-59951` was the single remaining finding. - Re-ran the same pinned `pip-audit==2.10.1` command with this exception: `No known vulnerabilities found, 6 ignored` (including the pre-existing Chroma exceptions/aliases). - `actionlint .github/workflows/py.audit.yml`, both repository guidance validators, and `git diff --check` passed. Only workflow configuration changes, so no runtime tests were added.

Alberto Schiabel committed Oct 16, 2026 at 03:33 UTC c1ffdd009b187aa623fd0c24b241f34ec592c331
1 file changed +12 -1
.github/workflows/py.audit.yml
+12 -1
@@ -77,6 +77,15 @@ jobs:
77 directory: '.'
78 export-flags: '--all-packages'
79 standalone: false
80 + # CVE-2026-59951 / GHSA-84m7-p3x7-pcfv exhausts memory in
81 + # stateful Streamable HTTP *servers*. Composio does not run that
82 + # transport; the locked crewai 1.15.22 uses mcp.client transports.
83 + # CrewAI still pins mcp~=1.28.1, excluding the 1.30.0 fix (the
84 + # latest published crewai 1.15.28 has the same constraint).
85 + # Remove this exception once CrewAI permits a patched MCP, or
86 + # reassess it before adding a stateful MCP HTTP server here.
87 + # https://github.com/modelcontextprotocol/python-sdk/security/advisories/GHSA-84m7-p3x7-pcfv
88 + ignored-vulns: 'CVE-2026-59951'
89 # Provider projects with their own lockfiles, which pin the published
90 # `composio` from PyPI rather than the workspace checkout. uv resolves
91 # them on their own even though python/providers/openai is listed as
@@ -143,9 +152,11 @@ jobs:
152 echo "Audited the $origin lockfile"
153
154 - name: Run pip-audit
155 + env:
156 + LOCK_IGNORED_VULNS: ${{ matrix.lock.ignored-vulns }}
157 run: |
158 ignore_flags=()
148 - for id in $IGNORED_VULNS; do
159 + for id in $IGNORED_VULNS $LOCK_IGNORED_VULNS; do
160 ignore_flags+=(--ignore-vuln "$id")
161 done
162 uvx --from "pip-audit==$PIP_AUDIT_VERSION" pip-audit \