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.

chore(deps): require the reviewed pypdf 6.21.4 patch (#8187)

LearningCircuit909419e855e3
diff --git a/pdm.lock b/pdm.lock
index 5e193e45d7..49459a7fe5 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:aa0217f5647e13929244b0197cb5b4052701ce154b3d49afce0dd3470f4c33a4"
+content_hash = "sha256:b807416d349ca081dd911df7fde0f708cc8ed78ff138aa845980d5d9245fba8c"
[[metadata.targets]]
requires_python = ">=3.12,<3.15"
@@ -4748,7 +4748,7 @@ files = [
[[package]]
name = "pypdf"
-version = "6.21.2"
+version = "6.21.4"
requires_python = ">=3.9"
summary = "A pure-python PDF library capable of splitting, merging, cropping, and transforming PDF files"
groups = ["default"]
@@ -4756,8 +4756,8 @@ dependencies = [
"typing-extensions>=4.0; python_version < \"3.11\"",
]
files = [
- {file = "pypdf-6.21.2-py3-none-any.whl", hash = "sha256:1d44d1a3a200f25062adff0085b02040e4646431ac2ccac22e42679e91466084"},
- {file = "pypdf-6.21.2.tar.gz", hash = "sha256:0a3e1c5c886a1be03646c16a04827cc166c2a0575c971b26a4bf89686551c2d4"},
+ {file = "pypdf-6.21.4-py3-none-any.whl", hash = "sha256:33e4fb41ca352810eb4e9838aa0d82d6888a5f8bf682f43e99cce5faa666255c"},
+ {file = "pypdf-6.21.4.tar.gz", hash = "sha256:c8817e3f888d47a087872ded69812c1ef30cacb871d6e053e0c00bbaf0bc2163"},
]
[[package]]
diff --git a/pyproject.toml b/pyproject.toml
index 2c9a4b258a..9dcee51ec3 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -54,7 +54,7 @@ dependencies = [
"wikipedia~=1.4",
"arxiv>=4.0.1,<5",
# Keep the published minimum aligned with the reviewed lock version.
- "pypdf>=6.21.2,<7", # GHSA-fp3h-c4fm-7vvf, GHSA-g9cg-prrw-2r8q, GHSA-jw7q-gvrg-4vj3 (fixed 6.18.1), GHSA-php9-fj8v-98fj, GHSA-v247-6f48-mgcj, GHSA-w23x-9jrw-r45c (fixed 6.19.0), CVE-2026-33123, CVE-2026-31826, GHSA-9m86-7pmv-2852, CVE-2026-27888, CVE-2026-27024, CVE-2026-0777, CVE-2025-55197, GHSA-3crg-w4f6-42mx, GHSA-248m-82v9-q6g6, GHSA-cj93-chg6-vgv8, GHSA-jm82-fx9c-mx94, CVE-2026-71852, CVE-2026-71870, CVE-2026-102999, CVE-2026-113786, GHSA-5hx5-vpf9-5wcv (fixed 6.21.1) fixes
+ "pypdf>=6.21.4,<7", # Reviewed patch minimum; retain the tested 6.x series.
"sentence-transformers~=5.2",
"faiss-cpu~=1.13.0", # 1.14.x wheels SIGILL on CPUs without AVX2 (#4480); unpin criteria tracked in #4499
"pydantic~=2.12",
diff --git a/tests/ci/test_dependency_floors.py b/tests/ci/test_dependency_floors.py
index a40f229297..fa4c758efa 100644
--- a/tests/ci/test_dependency_floors.py
+++ b/tests/ci/test_dependency_floors.py
@@ -120,13 +120,9 @@ def test_arxiv_floor_requires_the_4x_api_port():
def test_pypdf_floor_covers_2026_advisory_batch():
- """pypdf>=6.21.2,<7 — GHSA-jw7q-gvrg-4vj3 et al. fixed in 6.18.1/6.19.0
- (incl. CVE-2026-102999); CVE-2026-113786 / GHSA-5hx5-vpf9-5wcv fixed in
- 6.21.1. Upstream security fixes #4239/#4240 in 6.21.2 bound xref sizes
- and repeated full-file recovery reads; 6.21.1 must not resolve.
- """
+ """Require the reviewed 6.21.4 patch while retaining the 6.x cap."""
req = _project_dependencies()["pypdf"]
- _assert_window(req, floor_excluded="6.21.1", floor="6.21.2", cap="7.0.0")
+ _assert_window(req, floor_excluded="6.21.3", floor="6.21.4", cap="7.0.0")
def test_urllib3_floor_covers_2026_advisory_batch():
diff --git a/tests/security/test_osv_reachability_exceptions.py b/tests/security/test_osv_reachability_exceptions.py
index 61ca59836c..271fdf9251 100644
--- a/tests/security/test_osv_reachability_exceptions.py
+++ b/tests/security/test_osv_reachability_exceptions.py
@@ -34,8 +34,7 @@ def test_osv_exceptions_are_exact_and_expiring() -> None:
assert len(entry["reason"]) > 80
-# First version with all security fixes required by the release: OSV-listed
-# advisories plus pypdf's upstream 6.21.2 security fixes (#4239/#4240). A floor
+# First version with all security fixes required by the release. A floor
# below this lets a fresh pip install (which does not read pdm.lock) resolve
# a still-vulnerable release.
FIRST_FIXED = {
@@ -45,7 +44,7 @@ FIRST_FIXED = {
"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)
- "pypdf": "6.21.2", # GHSA-5hx5-vpf9-5wcv; upstream SEC #4239/#4240
+ "pypdf": "6.21.4",
"setuptools": "84.1.0",
"urllib3": "2.8.0", # GHSA-8988-9cw3-xx77, GHSA-gh4c-6fx4-qh6g, ...
"virtualenv": "21.14.13",