@devries-cameron20 / composio-1 / commits / 1049942ed
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.

fix(py): raise `requests` and `urllib3` floors past open advisories (#4404)

This PR: - raises the `composio` package floors to `requests>=2.32.4` and `urllib3>=2.7.0` in `python/pyproject.toml`, `python/setup.py`, and `uv.lock` - closes GHSA-9hjg-9r4m-mvj7 (`requests` `.netrc` credential leak via malicious URLs) for downstream installs; `url_safety` fetches user- and server-supplied URLs through a `trust_env` session - closes GHSA-mf9v-mfxr-j63j (decompression-bomb guard bypass in the `urllib3` streaming API that `_fetch_file_from_url` relies on for its size limit) and GHSA-qccp-gfcp-xxvc (sensitive headers forwarded across origins) - the workspace lock already resolves 2.34.2 / 2.7.0, so only the `requires-dist` specifiers change; `uv lock --check` passes and `import composio` still works - documents the advisory IDs next to each floor so the next bump has context

Alberto Schiabel committed Sep 9, 2026 at 18:37 UTC 1049942edbd704bdacbcd00d386da07d38e04379
3 files changed +13 -6
python/pyproject.toml
+7 -2
@@ -15,11 +15,16 @@ dependencies = [
15 # The pinning adapter mounts through `get_connection_with_tls_context`,
16 # which `HTTPAdapter.send` only calls on requests >= 2.32.2; older
17 # versions silently skip it and the pinning never engages.
18 - "requests>=2.32.2",
18 + # 2.32.4 fixes GHSA-9hjg-9r4m-mvj7 (.netrc credentials leaked to a
19 + # malicious URL); `url_safety` fetches user- and server-supplied URLs.
20 + "requests>=2.32.4",
21 # `url_safety` imports urllib3 directly: `NameResolutionError` only exists
22 # from 2.0, and the pinning adapter reaches into 2.x connection internals.
23 # requests alone allows 1.x, which would fail at import time.
22 - "urllib3>=2",
24 + # 2.7.0 fixes GHSA-mf9v-mfxr-j63j (decompression-bomb guard bypass in
25 + # the streaming API our download size limit relies on) and
26 + # GHSA-qccp-gfcp-xxvc (sensitive headers forwarded across origins).
27 + "urllib3>=2.7.0",
28 ]
29 classifiers = [
30 "Programming Language :: Python :: 3",
python/setup.py
+4 -2
@@ -32,10 +32,12 @@ setup(
32 "jsonschema>=4.23.0",
33 # `get_connection_with_tls_context` (the pinning adapter's mount
34 # point) is only called by `HTTPAdapter.send` on requests >= 2.32.2.
35 - "requests>=2.32.2",
35 + # 2.32.4 fixes GHSA-9hjg-9r4m-mvj7 (.netrc credentials leak).
36 + "requests>=2.32.4",
37 # `url_safety` imports urllib3 directly and needs 2.x: 1.x has no
38 # `NameResolutionError` and different connection internals.
38 - "urllib3>=2",
39 + # 2.7.0 fixes GHSA-mf9v-mfxr-j63j and GHSA-qccp-gfcp-xxvc.
40 + "urllib3>=2.7.0",
41 ],
42 include_package_data=True,
43 )
uv.lock
+2 -2
@@ -826,9 +826,9 @@ requires-dist = [
826 { name = "openai", specifier = ">=2.48.0" },
827 { name = "pydantic", specifier = ">=2.11.9" },
828 { name = "pysher", specifier = ">=1.0.8" },
829 - { name = "requests", specifier = ">=2.32.2" },
829 + { name = "requests", specifier = ">=2.32.4" },
830 { name = "typing-extensions", specifier = ">=4.16.0" },
831 - { name = "urllib3", specifier = ">=2" },
831 + { name = "urllib3", specifier = ">=2.7.0" },
832 ]
833
834 [package.metadata.requires-dev]