Skip to content

Commit 240047b

Browse files
committed
chore(deps): bump pydantic-settings, transformers, soupsieve (security)
Clears the pydantic-settings Dependabot alert across all affected manifests plus the three high-severity alerts in the root lock. pydantic-settings 2.12.0/2.14.0/2.14.1 -> 2.14.2 GHSA-4xgf-cpjx-pc3j transformers 5.3.0 -> 5.12.1 GHSA-fgcw-684q-jj6r soupsieve 2.8 -> 2.8.4 GHSA-2wc2-fm75-p42x GHSA-836r-79rf-4m37 pydantic-settings is transitive everywhere (no direct declaration), so the locks are the only lever. crewai is deliberately left at 2.10.1: the advisory's range is >=2.12.0,<2.14.2 and NestedSecretsSettingsSource did not exist in 2.10.x, so it is unaffected. transformers is a direct dep, and hindsight-api is published, so the declared floor -- not our lock -- is what protects installers of the local-ml/local-onnx extras. The old >=4.53.0 floor resolved to 4.57.6 (vulnerable) under any downstream cap of transformers<5, so raise it to the advisory's first patched version. Note this now fails resolution for consumers pinned below transformers 5 rather than silently installing a vulnerable build. The >=4.53.0 floor was already unreachable in practice: 4.53.0 requires tokenizers<0.22, which our own cap excludes. The tokenizers<=0.23.0 cap is kept. #2055 was caused by transformers declaring a wider tokenizers range in metadata than its import-time check enforces, and the cap is what blocks that; the comment now records this so it does not read as removable. Root uv.lock is reformatted from lock revision 1 to 3 because uv rewrites in its current format whenever it writes. The other 32 locks in the repo are already revision 3 and CI's setup-uv is unpinned, so this aligns root rather than drifting it. Only 3 versions actually change. Verified: local-ml sync resolves tokenizers 0.22.2 under transformers 5.12.1; LocalSTEmbeddings and LocalSTCrossEncoder both initialize and run (the #2055 import path). Lint passes.
1 parent d2b14e5 commit 240047b

8 files changed

Lines changed: 3379 additions & 3378 deletions

File tree

hindsight-api-slim/pyproject.toml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,11 @@ dependencies = [
8181
local-ml = [
8282
# Local ML models for embeddings/reranking
8383
"sentence-transformers>=3.3.0",
84-
"transformers>=4.53.0", # Security fixes for ReDoS vulnerabilities
85-
# transformers (incl. latest 5.x) hard-requires tokenizers<=0.23.0 via a
86-
# runtime check; without this cap an in-place upgrade can pull tokenizers
87-
# 0.23.1 and break local embeddings/reranker startup. See issue #2055.
84+
"transformers>=5.5.0", # ReDoS fixes; 5.5.0 clears GHSA-fgcw-684q-jj6r (LightGlue RCE)
85+
# transformers enforces tokenizers<=0.23.0 with a runtime check, but has
86+
# shipped metadata declaring a wider range than it actually enforces. Keep
87+
# this cap: without it an in-place upgrade can pull tokenizers 0.23.1 and
88+
# break local embeddings/reranker startup. See issue #2055.
8889
"tokenizers>=0.22.0,<=0.23.0",
8990
"torch>=2.6.0", # CVE fix for remote code execution
9091
"einops>=0.8.2",
@@ -104,7 +105,7 @@ local-llm = [
104105
local-onnx = [
105106
# In-process ONNX Runtime embeddings without an Ollama/TEI sidecar
106107
"onnxruntime>=1.17.0",
107-
"transformers>=4.53.0",
108+
"transformers>=5.5.0", # 5.5.0 clears GHSA-fgcw-684q-jj6r (LightGlue RCE)
108109
"tokenizers>=0.22.0,<=0.23.0", # See issue #2055 (transformers caps tokenizers<=0.23.0)
109110
"huggingface-hub>=0.20.0",
110111
"numpy>=1.26.0",

hindsight-integration-tests/uv.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

hindsight-integrations/agno/uv.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

hindsight-integrations/claude-agent-sdk/uv.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

hindsight-integrations/dify/uv.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

hindsight-integrations/openai-agents/uv.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

hindsight-integrations/strands/uv.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)