Skip to content

armgit / AiSOC

Public Imported from GitHub
0

Open-source AI Security Operations Center: alert fusion, LLM-agent triage, MITRE ATT&CK investigation, and a replayable decision ledger for every agent step. Self-hostable, runs with no API keys, MIT licensed. Ships an MCP server for Claude, Cursor and Continue.

fix: floor the langchain family and hono to their patched versions (#703)

Beenu Aroracd13f087d225
diff --git a/package.json b/package.json
index 314f3b774..c599b4e29 100644
--- a/package.json
+++ b/package.json
@@ -65,7 +65,8 @@
"shell-quote": ">=1.8.4",
"form-data": ">=4.0.6",
"ws": ">=8.21.0",
- "hono": ">=4.12.25",
+ "hono": ">=4.13.5",
+ "@hono/node-server": ">=1.19.15 <2",
"@babel/plugin-transform-modules-systemjs": ">=7.29.4 <8",
"brace-expansion@1": ">=1.1.18 <2",
"browserslist": ">=4.28.7 <5",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 5d4e90dbf..16f4f507c 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -8,7 +8,8 @@ overrides:
shell-quote: '>=1.8.4'
form-data: '>=4.0.6'
ws: '>=8.21.0'
- hono: '>=4.12.25'
+ hono: '>=4.13.5'
+ '@hono/node-server': '>=1.19.15 <2'
'@babel/plugin-transform-modules-systemjs': '>=7.29.4 <8'
brace-expansion@1: '>=1.1.18 <2'
browserslist: '>=4.28.7 <5'
@@ -3885,7 +3886,7 @@ packages:
peerDependencies:
react: '*'
dependencies:
- '@types/react': 19.2.17
+ '@types/react': 19.3.0
react: 19.3.0
@@ -5325,13 +5326,13 @@ packages:
dependencies:
'@hapi/hoek': 9.3.0
- resolution: {integrity: sha512-GwtvgtXxnWsucXvbQXkRgqksiH2Qed37H9xHZocE5sA3N8O8O8/8FA3uclQXxXVzc9XBZuEOMK7+r02FmSpHtw==}
+ resolution: {integrity: sha512-dSneS5qhiauZWGDCeK4o695Xd9nUNjviSZCMQrj10eetr8Uln1ucn6bbphOM6UynAMMtNIzZNSpL9vnASJwrPQ==}
engines: {node: '>=18.14.1'}
peerDependencies:
- hono: '>=4.12.25'
+ hono: '>=4.13.5'
dependencies:
- hono: 4.12.27
+ hono: 4.13.8
dev: false
/@humanfs/[email protected]:
@@ -6240,7 +6241,7 @@ packages:
'@cfworker/json-schema':
optional: true
dependencies:
- '@hono/node-server': 1.19.14([email protected])
+ '@hono/node-server': 1.19.17([email protected])
ajv: 8.20.0
ajv-formats: 3.0.1([email protected])
content-type: 1.0.5
@@ -6250,7 +6251,7 @@ packages:
eventsource-parser: 3.0.8
express: 5.2.1
express-rate-limit: 8.4.1([email protected])
- hono: 4.12.27
+ hono: 4.13.8
jose: 6.2.3
json-schema-typed: 8.0.2
pkce-challenge: 5.0.1
@@ -13460,8 +13461,8 @@ packages:
parse-passwd: 1.0.0
dev: true
- resolution: {integrity: sha512-1yrb/+w6HWQJrUCLkJ2IF5jNIPvvFkblV5RNOYl6bV+OA6p9GLcMpHFFGTosSvHvcAUibuUukRqhlYI4z32C7Q==}
+ resolution: {integrity: sha512-/Gng7NfoykZl2pjukW5Z6+8Yxm3BPRf86GTbQnt0SbySkvax4fyL4H3HhY1cCpBGmiW9XDRFzRV+CXK2W8QudQ==}
engines: {node: '>=16.9.0'}
dev: false
diff --git a/services/agents/poetry.lock b/services/agents/poetry.lock
index 03ccee7b2..1299e3549 100644
--- a/services/agents/poetry.lock
+++ b/services/agents/poetry.lock
@@ -2055,24 +2055,26 @@ referencing = ">=0.31.0"
[[package]]
name = "langchain"
-version = "1.0.2"
+version = "1.4.2"
description = "Building applications with LLMs through composability"
optional = false
python-versions = "<4.0.0,>=3.10.0"
groups = ["main"]
files = [
- {file = "langchain-1.0.2-py3-none-any.whl", hash = "sha256:e0c5647ea47cde7feb9534f56f4496c7f86a45084ad9bd152e7b19739f210ead"},
- {file = "langchain-1.0.2.tar.gz", hash = "sha256:22f814c7b4f5f76e945c35924ff288f6dfbe33747db2a029162ef1d4f8566493"},
+ {file = "langchain-1.4.2-py3-none-any.whl", hash = "sha256:30a27c34cfa0004bf659dcdef488b99a9b90acb08bcc514a5a74264755da536c"},
+ {file = "langchain-1.4.2.tar.gz", hash = "sha256:5b476418cacbfb8f0da6e63b3b263eefdcec13b48abd6117565a25728ec10b77"},
]
[package.dependencies]
-langchain-core = ">=1.0.0,<2.0.0"
-langgraph = ">=1.0.0,<1.1.0"
+langchain-core = ">=1.6.3,<2.0.0"
+langgraph = ">=1.2.11,<1.3.0"
pydantic = ">=2.7.4,<3.0.0"
[package.extras]
anthropic = ["langchain-anthropic"]
aws = ["langchain-aws"]
+azure-ai = ["langchain-azure-ai"]
+baseten = ["langchain-baseten (>=0.2.0)"]
community = ["langchain-community"]
deepseek = ["langchain-deepseek"]
fireworks = ["langchain-fireworks"]
@@ -2080,6 +2082,8 @@ google-genai = ["langchain-google-genai"]
google-vertexai = ["langchain-google-vertexai"]
groq = ["langchain-groq"]
huggingface = ["langchain-huggingface"]
+mcp = ["fastmcp (>=4.0.1,<5.0.0)"]
+meta = ["langchain-meta"]
mistralai = ["langchain-mistralai"]
ollama = ["langchain-ollama"]
openai = ["langchain-openai"]
@@ -2175,34 +2179,34 @@ typing-extensions = ">=4.13.0,<5.0.0"
[[package]]
name = "langgraph"
-version = "1.0.1"
+version = "1.2.12"
description = "Building stateful, multi-actor applications with LLMs"
optional = false
python-versions = ">=3.10"
groups = ["main"]
files = [
- {file = "langgraph-1.0.1-py3-none-any.whl", hash = "sha256:892f04f64f4889abc80140265cc6bd57823dd8e327a5eef4968875f2cd9013bd"},
- {file = "langgraph-1.0.1.tar.gz", hash = "sha256:4985b32ceabb046a802621660836355dfcf2402c5876675dc353db684aa8f563"},
+ {file = "langgraph-1.2.12-py3-none-any.whl", hash = "sha256:95403af7b510de8d79164742f71daaf866c69ca804a8cb72bef2cc1fa1ab9813"},
+ {file = "langgraph-1.2.12.tar.gz", hash = "sha256:5fae9fa4ce771e90f10ff19ce0d5aaef4b41d7632c713d769e89cbce1241a4b9"},
]
[package.dependencies]
-langchain-core = ">=0.1"
-langgraph-checkpoint = ">=2.1.0,<4.0.0"
-langgraph-prebuilt = ">=1.0.0,<1.1.0"
-langgraph-sdk = ">=0.2.2,<0.3.0"
+langchain-core = ">=1.4.7,<2"
+langgraph-checkpoint = ">=4.1.0,<5.0.0"
+langgraph-prebuilt = ">=1.1.0,<1.2.0"
+langgraph-sdk = ">=0.4.2,<0.5.0"
pydantic = ">=2.7.4"
xxhash = ">=3.5.0"
[[package]]
name = "langgraph-checkpoint"
-version = "3.0.1"
+version = "4.2.0"
description = "Library with base interfaces for LangGraph checkpoint savers."
optional = false
python-versions = ">=3.10"
groups = ["main"]
files = [
- {file = "langgraph_checkpoint-3.0.1-py3-none-any.whl", hash = "sha256:9b04a8d0edc0474ce4eaf30c5d731cee38f11ddff50a6177eead95b5c4e4220b"},
- {file = "langgraph_checkpoint-3.0.1.tar.gz", hash = "sha256:59222f875f85186a22c494aedc65c4e985a3df27e696e5016ba0b98a5ed2cee0"},
+ {file = "langgraph_checkpoint-4.2.0-py3-none-any.whl", hash = "sha256:0547fd228935a0b758865de3a3d6d7a2537c308895d0f9ab092ce9151b5da942"},
+ {file = "langgraph_checkpoint-4.2.0.tar.gz", hash = "sha256:51a593b6bee684b0818e5d6e58e28ab340c6db7794575056ce7bd1b746a84ed7"},
]
[package.dependencies]
@@ -2211,35 +2215,38 @@ ormsgpack = ">=1.12.0"
[[package]]
name = "langgraph-prebuilt"
-version = "1.0.1"
+version = "1.1.0"
description = "Library with high-level APIs for creating and executing LangGraph agents and tools."
optional = false
python-versions = ">=3.10"
groups = ["main"]
files = [
- {file = "langgraph_prebuilt-1.0.1-py3-none-any.whl", hash = "sha256:8c02e023538f7ef6ad5ed76219ba1ab4f6de0e31b749e4d278f57a8a95eec9f7"},
- {file = "langgraph_prebuilt-1.0.1.tar.gz", hash = "sha256:ecbfb9024d9d7ed9652dde24eef894650aaab96bf79228e862c503e2a060b469"},
+ {file = "langgraph_prebuilt-1.1.0-py3-none-any.whl", hash = "sha256:51e311747d755b751d5c6b39b0c1446124d3a7643d2515017e6714b323508fc9"},
+ {file = "langgraph_prebuilt-1.1.0.tar.gz", hash = "sha256:3c579cf6eed2d17f9c157c2d0fcaddcd8688524e7022d3b22b37a3bf4589d528"},
]
[package.dependencies]
-langchain-core = ">=0.3.67"
-langgraph-checkpoint = ">=2.1.0,<4.0.0"
+langchain-core = ">=1.3.1"
+langgraph-checkpoint = ">=2.1.0,<5.0.0"
[[package]]
name = "langgraph-sdk"
-version = "0.2.15"
+version = "0.4.5"
description = "SDK for interacting with LangGraph API"
optional = false
python-versions = ">=3.10"
groups = ["main"]
files = [
- {file = "langgraph_sdk-0.2.15-py3-none-any.whl", hash = "sha256:746566a5d89aa47160eccc17d71682a78771c754126f6c235a68353d61ed7462"},
- {file = "langgraph_sdk-0.2.15.tar.gz", hash = "sha256:8faaafe2c1193b89f782dd66c591060cd67862aa6aaf283749b7846f331d5334"},
+ {file = "langgraph_sdk-0.4.5-py3-none-any.whl", hash = "sha256:e03ef033a20d21288af496e9b6c08ae3afcc1b58dc5abcd37575bfd1a93045de"},
+ {file = "langgraph_sdk-0.4.5.tar.gz", hash = "sha256:d49a98a2ee8e0c494b101a7caf8061c8b4b94d3ee5ada0ea2dbe50903a5487b1"},
]
[package.dependencies]
httpx = ">=0.25.2"
-orjson = ">=3.10.1"
+langchain-core = ">=1.4.0,<2"
+langchain-protocol = ">=0.0.15"
+orjson = ">=3.11.5"
+websockets = ">=14,<17"
[[package]]
name = "langsmith"
@@ -5858,4 +5865,4 @@ cffi = ["cffi (>=1.17,<2.0) ; platform_python_implementation != \"PyPy\" and pyt
[metadata]
lock-version = "2.1"
python-versions = "^3.11"
-content-hash = "2cd5ec1ae7d768f1eab8e6969e9593a400e2e07d48f034a8c2e29d2b58458808"
+content-hash = "d5159e17a4241e10e3507fd1909969bec6084659ead51709a8021ce584c42cfd"
diff --git a/services/agents/pyproject.toml b/services/agents/pyproject.toml
index a48056cb2..88d9eccd0 100644
--- a/services/agents/pyproject.toml
+++ b/services/agents/pyproject.toml
@@ -11,7 +11,7 @@ fastapi = ">=0.109,<0.142"
uvicorn = {extras = ["standard"], version = ">=0.27,<0.53"}
pydantic = "^2.5.0"
pydantic-settings = "^2.1.0"
-langchain = ">=0.3.0,<2.0.0"
+langchain = ">=1.3.9,<2.0.0"
langchain-core = ">=1.2.22,<2.0.0"
langchain-openai = ">=0.2.0,<2.0.0"
# langchain-core is floored at 1.2.22, which patches the high-severity
@@ -22,13 +22,19 @@ langchain-openai = ">=0.2.0,<2.0.0"
# langgraph >=0.2 exposes the public ``START`` sentinel that
# ``app.investigator.orchestrator`` imports. The previous ``^0.0.30`` pin
# resolved to <0.1.0 which silently broke the import at runtime.
-langgraph = ">=0.2.40,<2.0.0"
+langgraph = ">=1.0.10,<2.0.0"
langchain-community = ">=0.3.0,<2.0.0"
# Transitive through langchain-community, floored explicitly: the
# resolver picked 3.14.1, which is inside the advisory range
# (<= 3.14.2). A transitive dependency with a known fix is still a
# known fix nobody applied.
aiohttp = ">=3.14.3"
+# Transitive through langgraph, floored explicitly for the same reason as
+# aiohttp: widening the top-level cap let the resolver reach a patched
+# version, and it chose one inside the advisory range anyway. A range that
+# permits the fix is not the same as a lock that takes it.
+langgraph-checkpoint = ">=4.1.1"
+langgraph-sdk = ">=0.3.15"
openai = ">=1.12,<3.0"
redis = {extras = ["hiredis"], version = ">=5.0.1,<9.0.0"}
httpx = ">=0.26,<0.29"