Skip to content

Commit e399e35

Browse files
authored
chore: update dependencies to fix security issues (#251)
This pull request primarily updates Python and JavaScript dependencies across multiple projects to improve compatibility, security, and add new features. The most significant changes include adding new dependencies to several Python `pyproject.toml` files, upgrading various JavaScript packages in the frontend, and introducing or updating package overrides for better dependency management. **Python dependency updates:** * Added `marshmallow` to multiple Python projects for data serialization and validation (`libs/admin-api-lib/pyproject.toml`, `libs/rag-core-api/pyproject.toml`, `libs/rag-core-lib/pyproject.toml`, `services/document-extractor/pyproject.toml`, `services/rag-backend/pyproject.toml`). [[1]](diffhunk://#diff-9c5aeb0db77c2eec077d07ddc3b3810ae1a4a1e50ee7061fba37a46706c513fbR129-R130) [[2]](diffhunk://#diff-9c4162cc1c16dd4c7ec5e95e79df285e8c0882a1db7ff2892c746a0537d26c36R43) [[3]](diffhunk://#diff-b19ab043535569caf9345971969d115d6515ae951a21b00a278145a28230fba1R37-R38) [[4]](diffhunk://#diff-bda9860363f25ca7829f0bc0121455b5cfea15f6ecc4e98d168aba411d9653c9R67-R71) [[5]](diffhunk://#diff-575f4ba32d7ff340b37eb2f875cb9574553092b79335faadd5f3b6be662b6925R19-R20) * Added or updated other dependencies such as `protobuf`, `filelock`, `mammoth`, `azure-core`, `langsmith`, `aiohttp`, and `python-multipart` in various backend and library modules to enhance functionality and compatibility. [[1]](diffhunk://#diff-9c5aeb0db77c2eec077d07ddc3b3810ae1a4a1e50ee7061fba37a46706c513fbR129-R130) [[2]](diffhunk://#diff-b19ab043535569caf9345971969d115d6515ae951a21b00a278145a28230fba1R37-R38) [[3]](diffhunk://#diff-bda9860363f25ca7829f0bc0121455b5cfea15f6ecc4e98d168aba411d9653c9R67-R71) [[4]](diffhunk://#diff-575f4ba32d7ff340b37eb2f875cb9574553092b79335faadd5f3b6be662b6925R19-R20) [[5]](diffhunk://#diff-a32cd883126f65652f92c8ecc411d949b7bcf95edb2156c36dc2c1b7063ee690R26) [[6]](diffhunk://#diff-dede389bcfb615c4b45cd1da7ac14cbe9535305f41f19cce09e321c91a8bb323R121) [[7]](diffhunk://#diff-7be99b3586ebefbb9757532b67d9bd826779bfe12db834326790c00f868238e7R109) **Frontend JavaScript dependency upgrades:** * Upgraded key frontend dependencies such as `axios` (to `^1.13.5`) and `vite` (to `^7.1.11` in `package.json`, `7.3.1` in `package-lock.json`), and updated related lockfile entries to ensure the latest bug fixes and features. [[1]](diffhunk://#diff-699a70f28d33903e145f50af042a20b1b35d92696ab16cc8514a1eb675b39064L45-R45) [[2]](diffhunk://#diff-699a70f28d33903e145f50af042a20b1b35d92696ab16cc8514a1eb675b39064L61-R61) [[3]](diffhunk://#diff-699a70f28d33903e145f50af042a20b1b35d92696ab16cc8514a1eb675b39064L6386-R6395) [[4]](diffhunk://#diff-699a70f28d33903e145f50af042a20b1b35d92696ab16cc8514a1eb675b39064L14104-R14113) [[5]](diffhunk://#diff-0d005dbd9d9f66983f95fa01fa375184cf69dac9ae841050c11f07ebcc6789fdL56-R56) [[6]](diffhunk://#diff-0d005dbd9d9f66983f95fa01fa375184cf69dac9ae841050c11f07ebcc6789fdL72-R81) * Added or updated package overrides for `@isaacs/brace-expansion`, `lodash`, and `undici` to enforce specific versions and address potential security or compatibility issues. [[1]](diffhunk://#diff-0d005dbd9d9f66983f95fa01fa375184cf69dac9ae841050c11f07ebcc6789fdL72-R81) [[2]](diffhunk://#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519R7-R10) [[3]](diffhunk://#diff-699a70f28d33903e145f50af042a20b1b35d92696ab16cc8514a1eb675b39064L2739-R2741) These updates collectively improve reliability, maintainability, and security across both backend and frontend codebases.
1 parent f78867f commit e399e35

File tree

20 files changed

+297
-314
lines changed

20 files changed

+297
-314
lines changed

libs/admin-api-lib/poetry.lock

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

libs/admin-api-lib/pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ langfuse = "^3.10.1"
126126
redis = "^6.0.0"
127127
pyyaml = "^6.0.2"
128128
python-multipart = "^0.0.22"
129+
marshmallow = "^3.26.2"
130+
protobuf = ">=5.29.6,<6.0.0"
129131
langchain-experimental = "^0.4.0"
130132
nltk = "^3.9.2"
131133
starlette = ">=0.49.1"

libs/extractor-api-lib/poetry.lock

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

libs/extractor-api-lib/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ langchain-core = "^1.0.7"
118118
camelot-py = {extras = ["cv"], version = "^1.0.0"}
119119
fake-useragent = "^2.2.0"
120120
pypdfium2 = "4.30.0"
121+
mammoth = "^1.11.0"
121122
pypandoc-binary = "^1.15"
122123
starlette = ">=0.49.1"
123124
markitdown = {version = "^0.1.3", extras = ["all"]}

libs/rag-core-api/poetry.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

libs/rag-core-api/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ langchain-community = "^0.4.1"
4040
fastembed = "^0.7.0"
4141
langdetect = "^1.0.9"
4242
langfuse = "^3.10.1"
43+
marshmallow = "^3.26.2"
4344
langchain-text-splitters = "^1.0.0"
4445
starlette = ">=0.49.1"
4546
langgraph-checkpoint = ">=3.0.0,<4.0.0"

libs/rag-core-lib/poetry.lock

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

libs/rag-core-lib/pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ langchain-core = "^1.0.7"
3434
langchain-openai = "^1.0.3"
3535
langgraph-checkpoint = ">=3.0.0,<4.0.0"
3636
boto3 = "^1.38.10"
37+
filelock = "^3.20.3"
38+
marshmallow = "^3.26.2"
3739

3840
[tool.poetry.group.test.dependencies]
3941
pytest = "^8.3.5"

package-lock.json

Lines changed: 18 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,9 @@
44
"@semantic-release/github": "^11.0.1",
55
"conventional-changelog-conventionalcommits": "^9.0.0",
66
"semantic-release": "^25.0.2"
7+
},
8+
"overrides": {
9+
"lodash": "^4.17.23",
10+
"undici": "^6.23.0"
711
}
812
}

0 commit comments

Comments
 (0)