fix: migrate mistralai to 2.x and remediate CVE-2025-67221 (orjson) (#17810)

## Summary
  
Migrates `mistralai` from `==0.4.2` to `>=2.7.2,<3.0.0` to unblock the
orjson CVE fix. The old SDK pinned `orjson>=3.9.10,<3.11`, preventing
upgrade to the patched version.
  
  | CVE | Severity | Package | Installed | Fixed in |
  |---|---|---|---|---|
  | CVE-2025-67221 | HIGH | orjson | 3.10.18 | 3.11.6 |

`mistralai` 2.x (the current maintained version) drops the orjson
dependency entirely. Added `orjson>=3.11.6` to `constraint-dependencies`
to pin the floor for remaining parent packages (`langgraph-sdk`,
`langsmith`, `ranx`).
This commit is contained in:
rayhan
2026-08-05 02:52:30 +01:00
committed by GitHub
parent 07d1c89e5e
commit 166758cb0f
5 changed files with 68 additions and 38 deletions

View File

@@ -69,7 +69,7 @@ dependencies = [
"mcp>=1.28.1,<2.0.0",
"mini-racer>=0.12.4,<0.13.0",
"minio==7.2.4",
"mistralai==0.4.2",
"mistralai>=2.7.2,<3.0.0",
"mysql-connector-python>=9.0.0,<10.0.0",
"moodlepy>=0.23.0",
"mypy-boto3-s3==1.40.26",
@@ -236,6 +236,10 @@ constraint-dependencies = [
# CVE-2026-59939: httplib2 < 0.32.0 vulnerable; pulled in transitively via
# google-api-python-client, google-auth-httplib2
"httplib2>=0.32.0",
# CVE-2025-67221: orjson < 3.11.6 vulnerable; pulled in transitively via
# langgraph-sdk, langsmith, ranx. Previously blocked by mistralai==0.4.2
# pinning orjson<3.11
"orjson>=3.11.6",
]
exclude-dependencies = [
# crawl4ai>=0.8.6 depends on unclecode-litellm, which installs the same