fix(security): bump langsmith, orjson, minimatch; drop Python 3.9 (ENG-12174)#21
Conversation
…G-12174) - langsmith 0.4.37 -> 0.6.4 (GHSA-v34v-rq6j-cj6p, CVSS medium) — requires Python >=3.10 - orjson 3.11.5 -> 3.11.7 (GHSA-hx9q-6w63-j58v, CVSS high) - minimatch 3.1.2 -> 3.1.5 in zapier (GHSA-7r86-cg39-jmmj, CVSS high) - Drop Python 3.9 support (langsmith >=0.6.3 requires Python >=3.10) - Remove expired osv-scanner.toml ignore for GHSA-v6h2-p8h4-qcjw (brace-expansion now fixed at 1.1.12) - Add osv-scanner.toml ignore for GHSA-2g6r-c272-w58r (langchain-core LOW; no semver-compatible fix) Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
📝 WalkthroughWalkthroughThe pull request updates project dependencies and configuration across three files. In 🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
langchain/pyproject.toml (1)
31-32: Use compatible release constraints for new runtime dependencies.At lines 31–32,
>=...allows unplanned major version upgrades (e.g.,langsmithto 1.x,orjsonto 4.x), risking breaking changes. Use Poetry's compatible release operator (~=) instead, which restricts to patch-level updates within the current minor version.Suggested diff
-langsmith = ">=0.6.3" -orjson = ">=3.11.6" +langsmith = "~=0.6.3" +orjson = "~=3.11.6"(This is equivalent to
>=0.6.3,<0.7.0and>=3.11.6,<3.12.0respectively, per Poetry's recommended approach for non-breaking compatible updates.)🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@langchain/pyproject.toml` around lines 31 - 32, The dependency constraints for langsmith and orjson in pyproject.toml use the unbounded ">=" operator which allows major/minor jumps; update those entries (the langsmith and orjson dependency lines) to use Poetry's compatible release operator ("~=") so they become compatible-release constraints (e.g., ~=0.6.3 and ~=3.11.6) to limit upgrades to non-breaking patch releases within the current minor series.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@langchain/pyproject.toml`:
- Around line 31-32: The dependency constraints for langsmith and orjson in
pyproject.toml use the unbounded ">=" operator which allows major/minor jumps;
update those entries (the langsmith and orjson dependency lines) to use Poetry's
compatible release operator ("~=") so they become compatible-release constraints
(e.g., ~=0.6.3 and ~=3.11.6) to limit upgrades to non-breaking patch releases
within the current minor series.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 9dd44237-b0fe-4d2b-8376-7b9ef71f0ce2
⛔ Files ignored due to path filters (2)
langchain/poetry.lockis excluded by!**/*.lockzapier/package-lock.jsonis excluded by!**/package-lock.json
📒 Files selected for processing (3)
langchain/pyproject.tomlosv-scanner.tomlzapier/package.json
Summary
Fixes ENG-12174 and all other open HIGH/MEDIUM Dependabot alerts in this repo.
Vulnerabilities Fixed
Changes
>=3.9to>=3.10(required by langsmith >=0.6.3). Added explicit floor pins forlangsmith >=0.6.3andorjson >=3.11.6."minimatch": "^3.1.3"override to force transitive dep past vulnerable range.Test plan
🤖 Generated with Claude Code