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): update Python base images to 3.14.10 (#8018)

dependabot[bot]aec2847ffd2c
diff --git a/.grype.yaml b/.grype.yaml
index 8b55de071b..0af3ba475e 100644
--- a/.grype.yaml
+++ b/.grype.yaml
@@ -337,12 +337,12 @@ ignore:
# Python's pyexpat does not link this package: it embeds CPython's bundled
# expat, which Grype cannot see. The builder-base and ldr stages of the
# Dockerfile fail the build if that bundled copy is older than 2.9.0, the
- # expat that the pinned Python 3.14.9 bundles. BUNDLED_EXPAT in
+ # expat that the pinned Python 3.14.10 bundles. BUNDLED_EXPAT in
# tests/deployment/test_deployment_surface_contracts.py maps each CPython
# release to its bundled expat, and the contract test fails while the
# minimum differs from the entry for the release in the base image tag, so
# a change of that release has to move the minimum with it. The current
- # minimum is expat 2.9.0, matching CPython 3.14.9's bundled copy.
+ # minimum is expat 2.9.0, matching CPython 3.14.10's bundled copy.
# No expat release fixes CVE-2025-66382 yet.
- vulnerability: CVE-2025-66382
package: { name: libexpat1, type: deb }
@@ -445,7 +445,7 @@ ignore:
- vulnerability: CVE-2023-37769
reason: "FPE in stress-test tool. Debian: unimportant. Crash in test tool, no security impact."
- # --- python3.14 (base image python:3.14.9-slim) ---
+ # --- python3.14 (base image python:3.14.10-slim) ---
# 3.14.5 fixed CVE-2026-6100, -4786, -1502, -6019; 3.14.6 (2026-06-11)
# fixed CVE-2026-8328, -9669, -7774, -3276 — those entries were removed.
# Also removed: CVE-2025-13462 (tarfile, fixed in 3.14.4), CVE-2025-15366
@@ -516,7 +516,7 @@ ignore:
# partition_md() (fetched via requests.get with no host validation).
# Critical per the advisory. NO LOCKABLE FIX: every fixed release (0.24.0
# through 0.27.6) requires Python <3.14, while this project pins
- # requires-python >=3.12,<3.15 with a Python 3.14.9 production image.
+ # requires-python >=3.12,<3.15 with a Python 3.14.10 production image.
# MITIGATED — the URL sinks are unreachable in this codebase:
# es_utils.index_file calls partition(filename=<PathValidator-vetted local
# path>); every other touchpoint is langchain-community's file-based
@@ -573,6 +573,6 @@ ignore:
- vulnerability: CVE-2026-2219
reason: "High vuln in dpkg 1.22.22. No fix in Trixie yet. Base image python:3.14-slim ships this version."
- # --- sed (GNU sed from Debian base image python:3.14.9-slim) ---
+ # --- sed (GNU sed from Debian base image python:3.14.10-slim) ---
- vulnerability: CVE-2026-5958
reason: "Low CVE in GNU sed from base image. No public info — may be very new, disputed, or not yet indexed. sed not explicitly installed in Dockerfile; comes from the python slim base image. Container does not process untrusted input with sed. No fix in Trixie."
diff --git a/Dockerfile b/Dockerfile
index 36355609c9..68157c830a 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,24 +1,24 @@
####
# Used for building the LDR service dependencies.
####
-FROM python:3.14.9-slim@sha256:b347e2dcbc7f0b6f9fb7182e9da6a187fb10ae715e0692518c1aed0eec94a700 AS builder-base
+FROM python:3.14.10-slim@sha256:3cabfd7d7aaf394e6040e79fa1eec6ca1c52b74ed9188650472695d9a9326999 AS builder-base
# Set shell to bash with pipefail for safer pipe handling
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
-# Fail the build if the base image's interpreter is older than 3.14.9,
+# Fail the build if the base image's interpreter is older than 3.14.10,
# the minimum production interpreter version. Docker pulls a
# `name:tag@sha256:...` reference by its digest and ignores the tag,
# so this checks the interpreter the digest actually contains. It calls
# sys.exit rather than assert: python -O and PYTHONOPTIMIZE strip assert
# statements, and the check must fail the build in either case.
# See .grype.yaml (CPYTHON).
-RUN python3 -c "import sys; v = sys.version.split()[0]; print(f'base image Python {v}'); sys.exit(0 if sys.version_info >= (3, 14, 9) else f'base image Python {v} is older than the minimum production version 3.14.9')"
+RUN python3 -c "import sys; v = sys.version.split()[0]; print(f'base image Python {v}'); sys.exit(0 if sys.version_info >= (3, 14, 10) else f'base image Python {v} is older than the minimum production version 3.14.10')"
ARG DEBIAN_FRONTEND=noninteractive
# Fail the build if pyexpat embeds an expat older than 2.9.0, the expat that
-# CPython 3.14.9 bundles. The official python images build CPython with its
+# CPython 3.14.10 bundles. The official python images build CPython with its
# bundled expat instead of Debian's libexpat1, so Grype sees libexpat1 but not
# the copy that pyexpat uses. Keep this floor, and the floor of the ldr
# stage's copy of this check, at the bundled expat version of the pinned base
@@ -341,14 +341,14 @@ RUN python3 -I /tmp/install_nltk_data.py /nltk_data \
####
# Runs the LDR service.
###
-FROM python:3.14.9-slim@sha256:b347e2dcbc7f0b6f9fb7182e9da6a187fb10ae715e0692518c1aed0eec94a700 AS ldr
+FROM python:3.14.10-slim@sha256:3cabfd7d7aaf394e6040e79fa1eec6ca1c52b74ed9188650472695d9a9326999 AS ldr
# Set shell to bash with pipefail for safer pipe handling
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
# Same interpreter check as builder-base: this stage starts from the base
# image again, and its interpreter is the one the image ships.
-RUN python3 -c "import sys; v = sys.version.split()[0]; print(f'base image Python {v}'); sys.exit(0 if sys.version_info >= (3, 14, 9) else f'base image Python {v} is older than the minimum production version 3.14.9')"
+RUN python3 -c "import sys; v = sys.version.split()[0]; print(f'base image Python {v}'); sys.exit(0 if sys.version_info >= (3, 14, 10) else f'base image Python {v} is older than the minimum production version 3.14.10')"
ARG DEBIAN_FRONTEND=noninteractive
diff --git a/tests/deployment/test_deployment_surface_contracts.py b/tests/deployment/test_deployment_surface_contracts.py
index fe6fd63adf..d5af79fc0e 100644
--- a/tests/deployment/test_deployment_surface_contracts.py
+++ b/tests/deployment/test_deployment_surface_contracts.py
@@ -30,12 +30,14 @@ import re
import shutil
import subprocess
import sys
+import tomllib
from pathlib import Path
from types import SimpleNamespace
import pytest
import yaml
from defusedxml import ElementTree as DefusedET
+from packaging.specifiers import SpecifierSet
from packaging.version import Version
from local_deep_research.security.file_upload_validator import (
@@ -2343,7 +2345,7 @@ class TestUnraidTemplate:
# The minimum production CPython version. The base image's tag and the floor
# of each root stage's build-time interpreter check must both be this version
# or newer.
-PATCHED_PYTHON = (3, 14, 9)
+PATCHED_PYTHON = (3, 14, 10)
PATCHED_PYTHON_TEXT = ".".join(str(part) for part in PATCHED_PYTHON)
# The build-time interpreter check, matched against a root stage's whole RUN
@@ -3288,7 +3290,7 @@ class TestCPythonBaseImage:
"""
def test_all_root_stages_use_patched_python(self, dockerfile_instructions):
- """The base is digest-pinned and its tag names PATCHED_PYTHON+."""
+ """The base is digest-pinned, patched, and in the supported range."""
base, rooted = stages_from_base_image(dockerfile_instructions)
match = re.fullmatch(
r"python:(3\.\d+\.\d+)-slim@sha256:[0-9a-f]{64}", base
@@ -3300,6 +3302,13 @@ class TestCPythonBaseImage:
f"Python {match.group(1)} predates {PATCHED_PYTHON_TEXT}, the "
"minimum production interpreter version"
)
+ python_range = tomllib.loads(
+ (REPO_ROOT / "pyproject.toml").read_text(encoding="utf-8")
+ )["project"]["requires-python"]
+ assert Version(match.group(1)) in SpecifierSet(python_range), (
+ f"Python {match.group(1)} is outside the supported range "
+ f"{python_range}"
+ )
assert {"builder-base", "ldr"} <= set(rooted), (
"expected builder-base and ldr to be built directly from "
f"{base}, got {sorted(rooted)}"
@@ -3583,7 +3592,7 @@ class TestCPythonBaseImage:
def test_fixed_cves_are_not_suppressed(self):
"""CVEs that no longer apply to the pinned Python stay unsuppressed.
- The fixes are included in 3.14.9. The CVE records of two others
+ The fixes are included in 3.14.10. The CVE records of two others
list 3.14 as affected only below 3.14.8, although 3.14 keeps the
behaviour they describe.
"""
@@ -3599,6 +3608,8 @@ class TestCPythonBaseImage:
"CVE-2026-15806", # urllib, fixed in 3.14.8
"CVE-2026-17084", # stringprep, fixed in 3.14.8
"CVE-2026-12345", # tempfile, fixed in 3.14.9
+ "CVE-2026-114583", # fixed in 3.14.10
+ "CVE-2026-115557", # fixed in 3.14.10
}
outside_record_range = {
# base64 altchars: affected below 3.14.1 per the record; the
@@ -3740,6 +3751,7 @@ BUNDLED_EXPAT = {
(3, 14, 7): (2, 8, 2),
(3, 14, 8): (2, 8, 5),
(3, 14, 9): (2, 9, 0),
+ (3, 14, 10): (2, 9, 0),
}
# The build-time pyexpat check, matched against a root stage's whole RUN