Skip to content

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)

Alberto Schiabel1049942edbd7
diff --git a/python/pyproject.toml b/python/pyproject.toml
index 0185aa8e4..d59abccd6 100644
--- a/python/pyproject.toml
+++ b/python/pyproject.toml
@@ -15,11 +15,16 @@ dependencies = [
# The pinning adapter mounts through `get_connection_with_tls_context`,
# which `HTTPAdapter.send` only calls on requests >= 2.32.2; older
# versions silently skip it and the pinning never engages.
- "requests>=2.32.2",
+ # 2.32.4 fixes GHSA-9hjg-9r4m-mvj7 (.netrc credentials leaked to a
+ # malicious URL); `url_safety` fetches user- and server-supplied URLs.
+ "requests>=2.32.4",
# `url_safety` imports urllib3 directly: `NameResolutionError` only exists
# from 2.0, and the pinning adapter reaches into 2.x connection internals.
# requests alone allows 1.x, which would fail at import time.
- "urllib3>=2",
+ # 2.7.0 fixes GHSA-mf9v-mfxr-j63j (decompression-bomb guard bypass in
+ # the streaming API our download size limit relies on) and
+ # GHSA-qccp-gfcp-xxvc (sensitive headers forwarded across origins).
+ "urllib3>=2.7.0",
]
classifiers = [
"Programming Language :: Python :: 3",
diff --git a/python/setup.py b/python/setup.py
index bae7ae894..ee4541498 100644
--- a/python/setup.py
+++ b/python/setup.py
@@ -32,10 +32,12 @@ setup(
"jsonschema>=4.23.0",
# `get_connection_with_tls_context` (the pinning adapter's mount
# point) is only called by `HTTPAdapter.send` on requests >= 2.32.2.
- "requests>=2.32.2",
+ # 2.32.4 fixes GHSA-9hjg-9r4m-mvj7 (.netrc credentials leak).
+ "requests>=2.32.4",
# `url_safety` imports urllib3 directly and needs 2.x: 1.x has no
# `NameResolutionError` and different connection internals.
- "urllib3>=2",
+ # 2.7.0 fixes GHSA-mf9v-mfxr-j63j and GHSA-qccp-gfcp-xxvc.
+ "urllib3>=2.7.0",
],
include_package_data=True,
)
diff --git a/uv.lock b/uv.lock
index 56f10690e..d70b45eaa 100644
--- a/uv.lock
+++ b/uv.lock
@@ -826,9 +826,9 @@ requires-dist = [
{ name = "openai", specifier = ">=2.48.0" },
{ name = "pydantic", specifier = ">=2.11.9" },
{ name = "pysher", specifier = ">=1.0.8" },
- { name = "requests", specifier = ">=2.32.2" },
+ { name = "requests", specifier = ">=2.32.4" },
{ name = "typing-extensions", specifier = ">=4.16.0" },
- { name = "urllib3", specifier = ">=2" },
+ { name = "urllib3", specifier = ">=2.7.0" },
]
[package.metadata.requires-dev]