Commit b547150
authored
chore(deps): bump Python deps to resolve security advisories (#1440)
Resolves 33 of 35 known CVEs reported by pip-audit by bumping direct and
transitive dependencies. Two residual issues remain: pytest 8.x (local
UNIX tmpdir CVE; bumping cascades to pytest-asyncio 1.x major API break)
and diskcache 5.6.3 (no upstream fix; pulled by outlines under the
transformers/huggingface extras only, local write-access exploit only).
Direct bumps in pyproject.toml:
- cryptography >=46.0.5 -> >=46.0.7
- langchain-core >=1.2.15 -> >=1.2.28
- langsmith >=0.7.6 -> >=0.7.31
- litellm ^1.80.11 -> ^1.83.14 (drags in fixed aiohttp + python-dotenv)
- requests ^2.32 -> >=2.33.0
- pillow >=12.1.1 -> >=12.2.0
- pypdf >=6.9.1 -> >=6.10.2
- transformers >=4.49 -> >=5.0.0 (also drops the darwin x86_64 <=4.51.3 cap)
- peft ^0.17.1 -> ^0.19.1 (required for transformers 5.x compat)
Transitive bumps via poetry update: aiohttp 3.13.4, authlib 1.6.11,
langchain-text-splitters 1.1.2, lxml 6.1.0, pygments 2.20.0,
python-dotenv 1.2.2, python-multipart 0.0.26.
Code adjustments forced by the upgrade:
- a2a/serve/server.py: starlette 1.0 removed Starlette.add_event_handler;
switched the health endpoint readiness tracking to a lifespan context
manager assigned via app.router.lifespan_context.
- transformers/backend/chat.py: transformers 5.x retyped
AutoTokenizer.from_pretrained as TokenizersBackend | None and broadened
apply_chat_template/decode return types; added casts so type checks pass.
Signed-off-by: Tomáš Dvořák <toomas2d@gmail.com>1 parent 8435ae4 commit b547150
4 files changed
Lines changed: 3824 additions & 3834 deletions
File tree
- python
- beeai_framework/adapters
- a2a/serve
- transformers/backend
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | 152 | | |
159 | 153 | | |
160 | 154 | | |
161 | 155 | | |
162 | 156 | | |
163 | | - | |
164 | | - | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
165 | 167 | | |
166 | 168 | | |
167 | 169 | | |
| |||
Lines changed: 20 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
16 | 23 | | |
17 | 24 | | |
18 | 25 | | |
| |||
71 | 78 | | |
72 | 79 | | |
73 | 80 | | |
74 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
75 | 87 | | |
76 | 88 | | |
77 | 89 | | |
| |||
252 | 264 | | |
253 | 265 | | |
254 | 266 | | |
255 | | - | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
256 | 270 | | |
257 | 271 | | |
258 | 272 | | |
| |||
305 | 319 | | |
306 | 320 | | |
307 | 321 | | |
308 | | - | |
| 322 | + | |
| 323 | + | |
309 | 324 | | |
310 | 325 | | |
311 | 326 | | |
| |||
0 commit comments