Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

fix(deps): align filelock minimum and application lock (#7859)

LearningCircuit2ce7edfdee22
diff --git a/changelog.d/+filelock-minimum.security.md b/changelog.d/+filelock-minimum.security.md
new file mode 100644
index 0000000000..0bf3fc6b5f
--- /dev/null
+++ b/changelog.d/+filelock-minimum.security.md
@@ -0,0 +1 @@
+Require filelock 4.2.1 or newer for package installations and align the application lock with the reviewed bootstrap version.
diff --git a/pdm.lock b/pdm.lock
index 76b43c244c..f415eb3877 100644
--- a/pdm.lock
+++ b/pdm.lock
@@ -5,7 +5,7 @@
groups = ["default", "dev", "mcp"]
strategy = ["inherit_metadata"]
lock_version = "4.5.1"
-content_hash = "sha256:d2d1fa44ff11db2196732844aeecb9aab86d5ef1d34806362e744e055fcdd391"
+content_hash = "sha256:29489b1f104331fdc08a8d23c644e5cfe4faa09478678651e751ce8d38b0ddaf"
[[metadata.targets]]
requires_python = ">=3.12,<3.15"
@@ -1522,13 +1522,13 @@ files = [
[[package]]
name = "filelock"
-version = "4.1.1"
+version = "4.2.4"
requires_python = ">=3.11"
summary = "A platform independent file lock."
groups = ["default", "dev"]
files = [
- {file = "filelock-4.1.1-py3-none-any.whl", hash = "sha256:3f4a557945a7b0f95efeb1f432267affe5d45ac8ddde2aed1b97ebb62382c089"},
- {file = "filelock-4.1.1.tar.gz", hash = "sha256:7ba0927482c5a814b0a7f391d029ccdb8010f576f0a74c0dcde1811e8bc4c1b6"},
+ {file = "filelock-4.2.4-py3-none-any.whl", hash = "sha256:301241438c57936ef93f4243a94f2559022268bfcf9b375a9a72eb0f8db8358e"},
+ {file = "filelock-4.2.4.tar.gz", hash = "sha256:c6d8663535e1650ee430507b4ffbac7b464dd64b7647ea0112a9f406499d163d"},
]
[[package]]
diff --git a/pyproject.toml b/pyproject.toml
index 695d028e2c..13c7832ad9 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -66,6 +66,7 @@ dependencies = [
"urllib3~=2.8", # CVE-2026-44431 CVE-2026-44432 fix; 2.8.0 fixes GHSA-8988-9cw3-xx77, GHSA-gh4c-6fx4-qh6g, GHSA-vxq7-64xx-v4gw
"brotli>=1.2.1",
"brotlicffi>=1.2.1.0; platform_python_implementation != \"CPython\"",
+ "filelock>=4.2.1",
"tiktoken~=0.12",
"xmltodict~=1.0",
"lxml>=5.3", # >=5.3 to satisfy crawl4ai; PDM override ensures >=6.0 in dev
diff --git a/tests/ci/test_dependency_floors.py b/tests/ci/test_dependency_floors.py
index 632b62aa19..5950e493c2 100644
--- a/tests/ci/test_dependency_floors.py
+++ b/tests/ci/test_dependency_floors.py
@@ -142,6 +142,11 @@ def test_brotli_minimum_is_preserved():
_assert_floor(req, floor_excluded="1.2.0", floor="1.2.1")
+def test_filelock_minimum_is_preserved():
+ req = _project_dependencies()["filelock"]
+ _assert_floor(req, floor_excluded="4.2.0", floor="4.2.1")
+
+
def test_brotlicffi_minimum_preserves_its_interpreter_scope():
req = _project_dependencies()["brotlicffi"]
assert str(req.marker) == 'platform_python_implementation != "CPython"'
diff --git a/tests/security/test_osv_reachability_exceptions.py b/tests/security/test_osv_reachability_exceptions.py
index 8beefdd49d..16e1ce4793 100644
--- a/tests/security/test_osv_reachability_exceptions.py
+++ b/tests/security/test_osv_reachability_exceptions.py
@@ -69,6 +69,7 @@ def test_no_first_party_nltk_model_artifact_imports() -> None:
# a still-vulnerable release.
FIRST_FIXED = {
"certifi": "2026.10.19", # PYSEC-2026-4320 / GHSA-6q48-6c7w-9gw2
+ "filelock": "4.2.1",
"oauthlib": "4.0.0", # GHSA-hj66-6f7g-4r5v, GHSA-xpv3-w29h-x7cv
"pillow": "13.0.0", # CVE-2026-112390 … CVE-2026-112406, CVE-2026-112891 … CVE-2026-112902
"pyjwt": "2.15.0", # GHSA-42vr-xj54-vc7v (the 2.14.0 set is older)