Skip to content

Commit 06b8b04

Browse files
chore: upgrade urllib3 to resolve CVEs (#320)
Resolves CVE-2025-66471 and CVE-2025-66418 <!-- CURSOR_SUMMARY --> --- > [!NOTE] > Addresses dependency security and stability updates. > > - **Upgrade** `urllib3` from `2.5.0` to `2.6.2` in `poetry.lock` (includes extras changes) > - **Bump** package version to `0.42.7` in `pyproject.toml` > - **Test fix**: add Python 3.9 workaround in `_test_contract/conftest.py` to eagerly import `unstructured_client.utils.retries` to avoid a lazy-import race `KeyError` > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit e46c9cb. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY --> --------- Co-authored-by: Cursor Agent <[email protected]>
1 parent 4bd07ac commit 06b8b04

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

_test_contract/conftest.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77

88
from unstructured_client import UnstructuredClient, utils
99

10+
# Python 3.9 workaround: eagerly import retries to avoid lazy import race condition
11+
# This prevents a KeyError in module lock when templates.py triggers lazy import of utils.retries
12+
from unstructured_client.utils import retries # noqa: F401
13+
1014
FAKE_API_KEY = "91pmLBeETAbXCpNylRsLq11FdiZPTk"
1115

1216

poetry.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.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
[project]
33
name = "unstructured-client"
4-
version = "0.42.6"
4+
version = "0.42.7"
55
description = "Python Client SDK for Unstructured API"
66
authors = [{ name = "Unstructured" },]
77
readme = "README-PYPI.md"

0 commit comments

Comments
 (0)