Skip to content

Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.

fix(deps): bump oauthlib to 4.0.0 to clear PYSEC-2026-4114 (#7906)

Vidit Ostwal1133f16cab27
diff --git a/.github/workflows/vulnerability-scan.yml b/.github/workflows/vulnerability-scan.yml
index 8d853b662..4052f1e77 100644
--- a/.github/workflows/vulnerability-scan.yml
+++ b/.github/workflows/vulnerability-scan.yml
@@ -117,16 +117,6 @@ jobs:
# patched release; keep the ignore list in sync with
# .pre-commit-config.yaml.
--ignore-vuln GHSA-4j2p-28q2-5m79
- # oauthlib <4.0.0: GHSA-xpv3-w29h-x7cv: timing side channel in the
- # server-side PKCE code_verifier check (authorization_code grant).
- # The fix, 4.0.0 (published 2026-09-28), is inside the 3-day
- # exclude-newer cooldown. Transitive via chromadb -> kubernetes ->
- # requests-oauthlib, which uses oauthlib as an OAuth client only;
- # CrewAI never runs an oauthlib authorization server.
- # TODO: drop this ignore and run `uv lock --upgrade-package oauthlib`
- # once 4.0.0 clears the cooldown (after 2026-10-01 06:01 UTC); keep
- # the ignore list in sync with .pre-commit-config.yaml.
- --ignore-vuln GHSA-xpv3-w29h-x7cv
)
uv run pip-audit "${pip_audit_args[@]}"
continue-on-error: true
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index cffd7dc99..64ec22459 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -31,7 +31,6 @@ repos:
# Keep this ignore list in sync with .github/workflows/vulnerability-scan.yml.
# TODO: drop --ignore-vuln GHSA-8mgp-746c-j5xp when bumping nltk past 3.10.3.
# TODO: drop --ignore-vuln GHSA-4j2p-28q2-5m79 when bumping accelerate past 1.14.0.
- # TODO: drop --ignore-vuln GHSA-xpv3-w29h-x7cv when bumping oauthlib to 4.0.0 (after 2026-10-01 06:01 UTC).
entry: >-
bash -c 'case "$OSTYPE" in msys*|cygwin*|win32*) source .venv/Scripts/activate ;; *) source .venv/bin/activate ;; esac && uv run pip-audit --skip-editable
--ignore-vuln PYSEC-2024-277
@@ -64,8 +63,7 @@ repos:
--ignore-vuln GHSA-36p7-vc44-83pf
--ignore-vuln GHSA-xph7-9rjv-w5fr
--ignore-vuln GHSA-8mgp-746c-j5xp
- --ignore-vuln GHSA-4j2p-28q2-5m79
- --ignore-vuln GHSA-xpv3-w29h-x7cv' --
+ --ignore-vuln GHSA-4j2p-28q2-5m79' --
language: system
pass_filenames: false
stages: [pre-push, manual]
diff --git a/pyproject.toml b/pyproject.toml
index 865686943..710796355 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -274,6 +274,10 @@ exclude-newer-package = { msgpack = "2026-06-20T00:00:00Z", pydantic-settings =
# a client SDK, but pip-audit flags the package). The floor lives in lib/crewai/pyproject.toml (the
# crewai[litellm] extra, "litellm>=1.88.6,<2") rather than here, since crewai declares litellm directly.
# 1.88.6 is older than the global 3-day cutoff, so no exclude-newer-package override is needed.
+# oauthlib <4.0.0 has GHSA-xpv3-w29h-x7cv / PYSEC-2026-4114 (PKCE code_verifier timing side channel)
+# and GHSA-hj66-6f7g-4r5v (JSONP callback injection on RevocationEndpoint). Fixed in 4.0.0.
+# Transitive via chromadb -> kubernetes -> requests-oauthlib, which uses oauthlib as a client.
+# 4.0.0 (2026-09-28) is older than the global 3-day cutoff, so no exclude-newer-package override is needed.
# Keep OpenAI on the SDK range required by CrewAI when transitive dependencies
# loosen or pin their own lower versions.
override-dependencies = [
@@ -311,6 +315,7 @@ override-dependencies = [
"snowflake-connector-python>=4.7.1",
"snowflake-sqlalchemy>=1.11.0",
"soupsieve>=2.9.2",
+ "oauthlib>=4.0.0",
]
[tool.uv.workspace]
diff --git a/uv.lock b/uv.lock
index 82ca62228..c72d4c74e 100644
--- a/uv.lock
+++ b/uv.lock
@@ -47,6 +47,7 @@ overrides = [
{ name = "langsmith", specifier = ">=0.8.18,<1" },
{ name = "msgpack", specifier = ">=1.2.1" },
{ name = "nltk", specifier = ">=3.10.3" },
+ { name = "oauthlib", specifier = ">=4.0.0" },
{ name = "onnxruntime", marker = "python_full_version < '3.11'", specifier = "<1.24" },
{ name = "openai", specifier = ">=2.30.0,<3" },
{ name = "paramiko", specifier = ">=5.0.0" },
@@ -5626,11 +5627,11 @@ wheels = [
[[package]]
name = "oauthlib"
-version = "3.3.1"
+version = "4.0.0"
source = { registry = "https://pypi.org/simple" }
-sdist = { url = "https://files.pythonhosted.org/packages/0b/5f/19930f824ffeb0ad4372da4812c50edbd1434f678c90c2733e1188edfc63/oauthlib-3.3.1.tar.gz", hash = "sha256:0f0f8aa759826a193cf66c12ea1af1637f87b9b4622d46e866952bb022e538c9", size = 185918, upload-time = "2025-06-19T22:48:08.269Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/7a/d8/a1bcc8ba112a627f8ffbdc212a78ce18d3ac07e91a5ca65d27918eee25a1/oauthlib-4.0.0.tar.gz", hash = "sha256:efb274799819440f95b4ab3b818869f1ce9ae26c5beacba0201d1a1b76b54f86", size = 187232, upload-time = "2026-09-28T06:01:18.77Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/be/9c/92789c596b8df838baa98fa71844d84283302f7604ed565dafe5a6b5041a/oauthlib-3.3.1-py3-none-any.whl", hash = "sha256:88119c938d2b8fb88561af5f6ee0eec8cc8d552b7bb1f712743136eb7523b7a1", size = 160065, upload-time = "2025-06-19T22:48:06.508Z" },
+ { url = "https://files.pythonhosted.org/packages/d9/f4/78229a1066068ca14fc60fb26cf7381cabe4382261392b90e5f9552722d4/oauthlib-4.0.0-py3-none-any.whl", hash = "sha256:624c28c13a0a59cabf9747dfa52af63be3e512a7f2714df16e91b5b3a145e6cd", size = 159715, upload-time = "2026-09-28T06:01:17.008Z" },
]
[[package]]