Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

security: upgrade langchain (#11302)

Max Deichmann7d7ec1ed6c64
diff --git a/packages/shared/package.json b/packages/shared/package.json
index 689f8909f5..eca356e310 100644
--- a/packages/shared/package.json
+++ b/packages/shared/package.json
@@ -94,7 +94,7 @@
"ipaddr.js": "^2.2.0",
"jsonpath-plus": "10.3.0",
"kysely": "^0.27.4",
- "langchain": "^0.3.30",
+ "langchain": "^0.3.37",
"langfuse-langchain": "3.38.6",
"lodash": "^4.17.21",
"lossless-json": "^4.1.1",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index d1789fac81..ebbf1a3647 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -235,11 +235,11 @@ importers:
specifier: ^0.27.4
version: 0.27.4
langchain:
- specifier: ^0.3.30
+ specifier: ^0.3.37
langfuse-langchain:
specifier: 3.38.6
lodash:
specifier: ^4.17.21
version: 4.17.21
@@ -573,7 +573,7 @@ importers:
version: 4.23.7(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])
'@uiw/react-codemirror':
specifier: ^4.25.4
ai:
specifier: ^3.4.9
@@ -641,8 +641,8 @@ importers:
specifier: ^0.27.4
version: 0.27.4
langchain:
- specifier: ^0.3.30
+ specifier: ^0.3.37
langfuse:
specifier: 3.38.4
version: 3.38.4
@@ -2203,8 +2203,8 @@ packages:
'@codemirror/[email protected]':
resolution: {integrity: sha512-9HBM2XnwDj7fnu0551HkGdrUrrqmYq/WC5iv6nbY2WdicXdGbhR/gfbZOH73Aqj4351alY1+aoG9rCNfiwS1RA==}
- '@codemirror/[email protected]':
- resolution: {integrity: sha512-MyihkdizhhxkFkKvfE2iGZZ4CUOESMWYipFTGVN2wrSgbb4pWlkRRZY/DzEnTRBzoCTSSC8wKVc4I3KyQlcADQ==}
+ '@codemirror/[email protected]':
+ resolution: {integrity: sha512-Fa6xkSiuGKc8XC8Cn96T+TQHYj4ZZ7RdFmXA3i9xe/3hLHfwPZdM+dqfX0Cp0zQklBKhVD8Yzc8LS45rkqcwpQ==}
'@codemirror/[email protected]':
resolution: {integrity: sha512-sv3DylBiIyi+xKwRCJAAsBZZZWo82shJ/RTMymLabAdtbkV5cSKwWDeCgtUq3v8flTaXS2y1kKkICuRYtUswyQ==}
@@ -2215,6 +2215,9 @@ packages:
'@codemirror/[email protected]':
resolution: {integrity: sha512-FVqsPqtPWKVVL3dPSxy8wEF/ymIEuVzF1PK3VbUgrxXpJUSHQWWZz4JMToquRxnkw+36LTamCZG2iua2Ptq0fA==}
+ '@codemirror/[email protected]':
+ resolution: {integrity: sha512-MerMzJzlXogk2fxWFU1nKp36bY5orBG59HnPiz0G9nLRebWa0zXuv2siH6PLIHBvv5TH8CkQRqjBs0MlxCZu+A==}
+
'@codemirror/[email protected]':
resolution: {integrity: sha512-F+sH0X16j/qFLMAfbciKTxVOwkdAS336b7AXTKOZhy8BR3eH/RelsnLgLFINrpST63mmN2OuwUt0W2ndUgYwUA==}
@@ -3188,6 +3191,9 @@ packages:
resolution: {integrity: sha512-DVeMRoGrgn/k45oQNu189BoW4SZwgZFzJ1+1TV5j2NJ/KFC83oa/enRqZSGshyeMk5cPWMhsKs9nx+8o0unwGg==}
+ '@lezer/[email protected]':
+ resolution: {integrity: sha512-PNGcolp9hr4PJdXR4ix7XtixDrClScvtSCYW3rQG106oVMOOI+jFb+0+J3mbeL/53g1Zd6s0kJzaw6Ri68GmAA==}
+
resolution: {integrity: sha512-qXdH7UqTvGfdVBINrgKhDsVTJTxactNNxLk7+UMwZhU13lMHaOBlJe9Vqp907ya56Y3+ed2tlqzys7jDkTmW0g==}
@@ -10290,8 +10296,8 @@ packages:
resolution: {integrity: sha512-dyNKv2KRvYOQPLCAOCjjQuCk4YFd33BvGdf/o5bC7FiW+BB6snA81Zt+2wT9QDFzKqxKa5rrOmvlK/anehCcgA==}
engines: {node: '>=14.0.0'}
- resolution: {integrity: sha512-UyVsfwHDpHbrnWrjWuhJHqi8Non+Zcsf2kdpDTqyJF8NXrHBOpjdHT5LvPuW9fnE7miDTWf5mLcrWAGZgcrznQ==}
+ resolution: {integrity: sha512-1jPsZ6xsxkcQPUvqRjvfuOLwZLLyt49hzcOK7OYAJovIkkOxd5gzK4Yw6giPUQ8g4XHyvULNlWBz+subdkcokw==}
engines: {node: '>=18'}
peerDependencies:
'@langchain/anthropic': '*'
@@ -13758,8 +13764,8 @@ packages:
resolution: {integrity: sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==}
- resolution: {integrity: sha512-c5EGNOiyxxV5qmTtAB7rbiXxi1ooX1pQKMLX/MIabJjRA0SJBQOjKF+KSVfHkr9U1cADPon0mRiVe/riyaiDUA==}
+ resolution: {integrity: sha512-e6vZvY6xboSwLz2GD36c16+O/2Z6fKvIf4pOXptw2rY9MVwE/TXc6RGqxD3I3x0a28lwBY7DE+76uTPSsBrrCA==}
engines: {node: '>=10.13.0'}
@@ -16646,19 +16652,19 @@ snapshots:
dependencies:
'@clickhouse/client-common': 1.13.0
- '@codemirror/[email protected](@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@lezer/[email protected])':
+ '@codemirror/[email protected](@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@lezer/[email protected])':
dependencies:
'@codemirror/language': 6.11.3
'@codemirror/state': 6.5.2
'@codemirror/view': 6.38.8
- '@lezer/common': 1.4.0
+ '@lezer/common': 1.5.0
- '@codemirror/[email protected](@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@lezer/[email protected])':
+ '@codemirror/[email protected](@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@lezer/[email protected])':
dependencies:
- '@codemirror/language': 6.12.0
- '@codemirror/state': 6.5.2
+ '@codemirror/language': 6.12.1
+ '@codemirror/state': 6.5.3
'@codemirror/view': 6.38.8
- '@lezer/common': 1.4.0
+ '@lezer/common': 1.5.0
'@codemirror/[email protected]':
dependencies:
@@ -16669,10 +16675,10 @@ snapshots:
'@codemirror/[email protected]':
dependencies:
- '@codemirror/language': 6.12.0
- '@codemirror/state': 6.5.2
+ '@codemirror/language': 6.12.1
+ '@codemirror/state': 6.5.3
'@codemirror/view': 6.38.8
- '@lezer/common': 1.4.0
+ '@lezer/common': 1.5.0
'@codemirror/[email protected]':
dependencies:
@@ -16688,11 +16694,11 @@ snapshots:
'@lezer/lr': 1.4.4
style-mod: 4.1.3
- '@codemirror/[email protected]':
+ '@codemirror/[email protected]':
dependencies:
- '@codemirror/state': 6.5.2
+ '@codemirror/state': 6.5.3
'@codemirror/view': 6.38.8
- '@lezer/common': 1.4.0
+ '@lezer/common': 1.5.0
'@lezer/highlight': 1.2.3
'@lezer/lr': 1.4.5
style-mod: 4.1.3
@@ -16705,7 +16711,7 @@ snapshots:
'@codemirror/[email protected]':
dependencies:
- '@codemirror/state': 6.5.2
+ '@codemirror/state': 6.5.3
'@codemirror/view': 6.38.8
crelt: 1.0.6
@@ -16713,10 +16719,14 @@ snapshots:
dependencies:
'@marijn/find-cluster-break': 1.0.2
+ '@codemirror/[email protected]':
+ dependencies:
+ '@marijn/find-cluster-break': 1.0.2
+
'@codemirror/[email protected]':
dependencies:
- '@codemirror/language': 6.12.0
- '@codemirror/state': 6.5.2
+ '@codemirror/language': 6.12.1
+ '@codemirror/state': 6.5.3
'@codemirror/view': 6.38.8
'@lezer/highlight': 1.2.3
@@ -17898,6 +17908,8 @@ snapshots:
'@lezer/[email protected]': {}
+ '@lezer/[email protected]': {}
+
dependencies:
'@lezer/common': 1.4.0
@@ -17914,7 +17926,7 @@ snapshots:
dependencies:
- '@lezer/common': 1.4.0
+ '@lezer/common': 1.5.0
'@marijn/[email protected]': {}
@@ -21894,7 +21906,7 @@ snapshots:
dependencies:
- '@types/node': 24.3.0
+ '@types/node': 24.10.4
optional: true
@@ -22143,9 +22155,9 @@ snapshots:
'@typescript-eslint/types': 8.48.1
eslint-visitor-keys: 4.2.1
- '@uiw/[email protected](@codemirror/[email protected](@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@lezer/[email protected]))(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])':
+ '@uiw/[email protected](@codemirror/[email protected](@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@lezer/[email protected]))(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])':
dependencies:
- '@codemirror/autocomplete': 6.17.0(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@lezer/[email protected])
+ '@codemirror/autocomplete': 6.17.0(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@lezer/[email protected])
'@codemirror/commands': 6.10.0
'@codemirror/language': 6.11.3
'@codemirror/lint': 6.9.2
@@ -22159,15 +22171,15 @@ snapshots:
'@codemirror/state': 6.5.2
'@codemirror/view': 6.38.8
dependencies:
'@babel/runtime': 7.28.4
'@codemirror/commands': 6.10.0
'@codemirror/state': 6.5.2
'@codemirror/theme-one-dark': 6.1.2
'@codemirror/view': 6.38.8
- '@uiw/codemirror-extensions-basic-setup': 4.25.4(@codemirror/[email protected](@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@lezer/[email protected]))(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])
- codemirror: 6.0.1(@lezer/[email protected])
+ '@uiw/codemirror-extensions-basic-setup': 4.25.4(@codemirror/[email protected](@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@lezer/[email protected]))(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])
+ codemirror: 6.0.1(@lezer/[email protected])
react: 19.2.3
react-dom: 19.2.3([email protected])
transitivePeerDependencies:
@@ -23354,14 +23366,14 @@ snapshots:
estree-walker: 3.0.3
periscopic: 3.1.0
dependencies:
- '@codemirror/autocomplete': 6.17.0(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@lezer/[email protected])
+ '@codemirror/autocomplete': 6.17.0(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@lezer/[email protected])
'@codemirror/commands': 6.10.1
- '@codemirror/language': 6.12.0
+ '@codemirror/language': 6.12.1
'@codemirror/lint': 6.9.2
'@codemirror/search': 6.5.6
- '@codemirror/state': 6.5.2
+ '@codemirror/state': 6.5.3
'@codemirror/view': 6.38.8
transitivePeerDependencies:
- '@lezer/common'
@@ -25009,7 +25021,7 @@ snapshots:
dependencies:
- debug: 4.4.3
+ debug: 4.3.4
get-stream: 5.2.0
yauzl: 2.10.0
optionalDependencies:
@@ -26740,7 +26752,7 @@ snapshots:
dependencies:
'@langchain/core': 0.3.58([email protected]([email protected]))
'@langchain/openai': 0.5.13(@langchain/[email protected]([email protected]([email protected])))
@@ -26770,7 +26782,7 @@ snapshots:
- openai
- ws
dependencies:
'@langchain/core': 0.3.58([email protected]([email protected]))
'@langchain/openai': 0.5.13(@langchain/[email protected]([email protected]([email protected])))
@@ -26808,9 +26820,9 @@ snapshots:
dependencies:
mustache: 4.2.0
dependencies:
langfuse: 3.38.6
langfuse-core: 3.38.6
@@ -30879,7 +30891,7 @@ snapshots:
dependencies:
makeerror: 1.0.12
dependencies:
glob-to-regexp: 0.4.1
graceful-fs: 4.2.11
@@ -30938,7 +30950,7 @@ snapshots:
schema-utils: 3.3.0
tapable: 2.3.0
terser-webpack-plugin: 5.3.16([email protected])
- watchpack: 2.4.4
+ watchpack: 2.5.0
webpack-sources: 3.3.3
transitivePeerDependencies:
- '@swc/core'
diff --git a/web/package.json b/web/package.json
index 73e8d94313..4ae5f4d0e6 100644
--- a/web/package.json
+++ b/web/package.json
@@ -123,7 +123,7 @@
"ip-address": "^9.0.5",
"json-schema-faker": "^0.5.9",
"kysely": "^0.27.4",
- "langchain": "^0.3.30",
+ "langchain": "^0.3.37",
"langfuse": "3.38.4",
"lodash": "^4.17.21",
"lucide-react": "^0.552.0",