Skip to content

fix(deps): bump locked deps to resolve CVEs (HIGH + moderate) - #569

Open
joerg84 wants to merge 1 commit into
mainfrom
update-critical-high-cves
Open

fix(deps): bump locked deps to resolve CVEs (HIGH + moderate)#569
joerg84 wants to merge 1 commit into
mainfrom
update-critical-high-cves

Conversation

@joerg84

@joerg84joerg84 commented May 11, 2026

Copy link
Copy Markdown
Contributor

Summary

Refresh uv.lock and poetry.lock to clear known CVEs in transitive dev dependencies. pyproject.toml is unchanged — only the resolved lockfile versions move within their existing constraints.

Resolved vulnerabilities

SeverityPackageCVE / GHSANotes
HIGHlangchain-coreCVE-2026-44843 / GHSA-pjwx-r37v-7724Overly broad deserialization allowlist
HIGHlangchain-coreCVE-2026-34070 / GHSA-qh6h-p6c9-ff54Path traversal in legacy load_prompt (0.3.x fix is 0.3.85+)
HIGHorjsonGHSA-hx9q-6w63-j58vUnbounded recursion in deeply nested JSON
Moderatelangchain-coreCVE-2026-40087f-string prompt-template validation
ModeratelanggraphCVE-2026-28277Unsafe msgpack deserialization
ModeratelangsmithCVE-2026-41182Streaming token redaction bypass
Moderatepython-dotenvCVE-2026-28684Symlink follow on rewrite
ModeraterequestsCVE-2026-25645extract_zipped_paths tmp predictability
Lowlangchain-coreCVE-2026-26013SSRF in image URL token counting

Version bumps

uv.lock (uv lock --upgrade):

  • langchain 1.2.7 → 1.2.18
  • langchain-core 1.2.7 → 1.3.3
  • langgraph 1.0.7 → 1.1.10
  • langsmith 0.6.6 → 0.8.3
  • python-dotenv 1.2.1 → 1.2.2
  • requests 2.32.5 → 2.33.1
  • plus other transitive bumps (openai, pydantic, ruff, etc.)

poetry.lock (poetry update --lock, staying within langchain = \"^0.3.21\"):

  • langchain-core 0.3.83 → 0.3.86 (HIGH fix in 0.3.x patch line)
  • langsmith 0.3.45 → 0.8.3
  • python-dotenv 1.0.1 → 1.2.2
  • requests 2.32.3 → 2.33.1
  • orjson → 3.11.9 (≥ 3.11.6 fix)

Verification

pip-audit on both updated lockfiles:

  • uv.lock: 0 vulnerabilities
  • poetry.lock: only 1 remaining — langchain-text-splitters 0.3.11 / CVE-2026-41481 (MEDIUM, SSRF redirect bypass). Fix requires bumping langchain = \"^0.3.21\"^1.2.x, which is out of scope for a pure lockfile refresh.

Not addressed (follow-up)

learn/generation/langchain/langgraph/02-ollama-langgraph-agent/poetry.lock has 2 CRITICAL + 9 HIGH Dependabot alerts (h11, langchain-core, langgraph-checkpoint, langchain-text-splitters, orjson, tornado, urllib3). Its pyproject.toml hard-pins old versions (langchain = \"0.2.12\", langchain-core = \"0.2.43\", langgraph = \"0.2.3\"), so fixing those alerts requires manifest changes and notebook re-testing — best handled separately.

Test plan

  • pip-audit on the updated uv.lock (0 vulns)
  • pip-audit on the updated poetry.lock (only 1 medium remains, out of scope)
  • CI lint/notebook smoke tests on this branch

🤖 Generated with Claude Code


Note

Low Risk
Lockfile-only dependency bumps; low behavioral risk beyond possible environment/CI breakage from updated transitive packages.

Overview
Refreshes resolved dependency versions by updating only the lockfiles (uv.lock, poetry.lock) to pick up patched releases for several reported CVEs.

pyproject.toml constraints remain unchanged; the PR is strictly a lockfile refresh, so impact is limited to updated transitive (and some direct) pinned versions used in installs/CI.

Reviewed by Cursor Bugbot for commit 67d11a1. Bugbot is set up for automated code reviews on this repo. Configure here.

Refresh uv.lock and poetry.lock to clear known vulnerabilities in
transitive dev dependencies. Notably resolves the HIGH-severity
CVE-2026-44843 (langchain-core overly broad deserialization allowlist)
along with moderate CVEs in langgraph, langsmith, python-dotenv,
requests, and a low-severity SSRF in langchain-core image token
counting.
uv.lock: langchain 1.2.7 -> 1.2.18, langchain-core 1.2.7 -> 1.3.3,
langgraph 1.0.7 -> 1.1.10, langsmith 0.6.6 -> 0.8.3, python-dotenv
1.2.1 -> 1.2.2, requests 2.32.5 -> 2.33.1.
poetry.lock: langchain-core 0.3.83 -> 0.3.86 (HIGH fix in the 0.3.x
patch line), langsmith 0.3.45 -> 0.8.3, python-dotenv 1.0.1 -> 1.2.2,
requests 2.32.3 -> 2.33.1.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@joerg84