Skip to content

Commit 0e76258

Browse files
authored
fix: bump nltk to 3.10.3 for PYSEC-2026-3726 (#7162)
Force the xml extra and workspace override onto the patched release so pip-audit stops failing on the 3.10.0 symlink file-read advisory.
1 parent a35fbc8 commit 0e76258

3 files changed

Lines changed: 15 additions & 12 deletions

File tree

lib/crewai-tools/pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,11 @@ rag = [
121121
]
122122
xml = [
123123
"unstructured[local-inference, all-docs]>=0.17.2",
124-
# unstructured allows nltk>=3.9.2, but <3.10.0 has GHSA-qvv7-cg9c-w4x3
125-
# (DNS-rebinding SSRF bypass), GHSA-fg7f-2386-8897 (ReDoS) and
126-
# GHSA-xh95-f55m-82fw (path traversal). Declared here, not only as a uv
127-
# override, so consumers installing crewai-tools[xml] get the fixed version.
128-
"nltk>=3.10.0",
124+
# unstructured allows nltk>=3.9.2, but <3.10.3 still has PYSEC-2026-3726
125+
# (symlink file read in IPIPANCorpusReader; 3.10.0-3.10.1) plus later
126+
# 3.10.2 findings. Declared here, not only as a uv override, so consumers
127+
# installing crewai-tools[xml] get the fixed version.
128+
"nltk>=3.10.3",
129129
]
130130
oxylabs = [
131131
"oxylabs==2.0.0"

pyproject.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,10 @@ exclude-newer-package = { pypdf = "2026-08-07T00:00:00Z", msgpack = "2026-06-20T
220220
# nltk.pathsec.urlopen), GHSA-fg7f-2386-8897 (ReDoS in ReviewsCorpusReader), and
221221
# GHSA-xh95-f55m-82fw (path traversal in FramenetCorpusReader.frame); all fixed
222222
# in 3.10.0. 3.10.0 also clears PYSEC-2026-597, whose last affected version is
223-
# 3.9.4, so that ignore is no longer needed. Transitive via
223+
# 3.9.4, so that ignore is no longer needed. 3.10.0-3.10.1 have PYSEC-2026-3726
224+
# (symlink-based arbitrary file read in IPIPANCorpusReader); fixed in 3.10.2.
225+
# 3.10.3 also clears later 3.10.2 findings (proxy SSRF, pickle allowlist RCE,
226+
# JVM option injection, XML entity expansion). Transitive via
224227
# crewai-tools[xml] -> unstructured.
225228
# pydantic-settings <2.14.2 has GHSA-4xgf-cpjx-pc3j.
226229
# h2 <=4.4.0 has GHSA-6hr6-w5qg-qmwg (CVE-2026-71554): duplicate Host headers
@@ -257,7 +260,7 @@ override-dependencies = [
257260
"msgpack>=1.2.1",
258261
"pydantic-settings>=2.14.2",
259262
"setuptools>=83.0.0", # PYSEC-2026-3447
260-
"nltk>=3.10.0",
263+
"nltk>=3.10.3",
261264
"h2>=4.4.1",
262265
"torch>=2.13.0",
263266
]

uv.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)