Commit fffc397
security: Update LangChain to 1.x to fix critical vulnerabilities
Fixed 5 security vulnerabilities (3 HIGH, 1 MEDIUM + 1 HIGH RCE):
- GHSA-6qv9-48xg-fc7f (HIGH): Template injection in langchain-core
- GHSA-c67j-w6g6-q2cm (HIGH): Serialization injection enabling secret extraction
- GHSA-m42m-m8cr-8m58 (HIGH): XXE vulnerability in langchain-text-splitters
- GHSA-wwqv-p2pp-99h5 (HIGH): RCE in langgraph-checkpoint deserialization
- GHSA-428g-f7cq-pgp5 (MEDIUM): DoS in marshmallow Schema.load
Final dependency versions:
- langchain: 0.1.0 → 1.0.0 (major upgrade)
- langchain-core: 0.1.0 → 1.2.5 (both 0.3.81 and 1.2.5+ have fixes)
- langchain-text-splitters: added at 0.3.9+
- langgraph: 0.1.0 → 1.0.0 (major upgrade, required for checkpoint 3.x)
- langgraph-checkpoint: added at 3.0.0+ (RCE fix)
- marshmallow: added at 4.1.2+
This is a major version upgrade (0.x → 1.x) due to dependency constraints.
LangGraph 1.0+ requires langchain-core 1.x, which is compatible with
langchain 1.x. Both 0.3.81 and 1.2.5+ contain the security patches.
Breaking changes expected - comprehensive testing required.
Also resolves tenacity conflict with google-genai, enabling future
migration from deprecated google-generativeai.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <[email protected]>1 parent e0d5619 commit fffc397
1 file changed
+21
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
80 | | - | |
81 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
82 | 85 | | |
83 | 86 | | |
84 | 87 | | |
| |||
150 | 153 | | |
151 | 154 | | |
152 | 155 | | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
157 | 163 | | |
158 | 164 | | |
159 | 165 | | |
| |||
167 | 173 | | |
168 | 174 | | |
169 | 175 | | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
174 | 183 | | |
175 | 184 | | |
176 | 185 | | |
| |||
0 commit comments