Skip to content

Commit 9e4e3d0

Browse files
committed
Fix jupyter_core and protobuf vulnerabilities
Signed-off-by: Bruno Alvisio <balvisio@nvidia.com>
1 parent 6efc390 commit 9e4e3d0

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,8 @@ uv pip install nvidia-resiliency-ext/
201201
rm -rf nvidia-resiliency-ext/
202202
# ngcsdk causes strange dependency conflicts (ngcsdk requires protobuf<4, but nemo_toolkit requires protobuf==4.24.4, deleting it from the uv pip install prevents installation conflicts)
203203
sed -i "/ngcsdk/d" ./sub-packages/bionemo-core/pyproject.toml
204+
# Override protobuf version to 4.25.9 to avoid version conflict and fix CVE
205+
sed -i 's/^protobuf==4\.24\.4$/protobuf==5.29.5/' 3rdparty/NeMo/requirements/requirements.txt
204206
# Remove llama-index because bionemo doesn't use it and it adds CVEs to container
205207
sed -i "/llama-index/d" ./3rdparty/NeMo/requirements/requirements_nlp.txt
206208
# Pin 'nvidia-modelopt' to 0.27.1 due to an API incompatibility of version 0.25.0

requirements-cve.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@ onnx>=1.16.0
22
setuptools>=78.1.1 # Addresses CVE https://github.com/advisories/GHSA-5rjg-fvgr-3xxf
33
aiohttp>=3.9.4
44
jupyterlab>=3.6.8
5+
jupyter_core>=5.8.1
56
jupyter_server>=2.14.1 # https://github.com/advisories/GHSA-hrw6-wg82-cm62
67
Werkzeug>=3.0.3
78
nltk>=3.9.1
89
pillow>=10.3.0
10+
protobuf>=5.29.5
911
tornado>=6.5.0 # Addresses CVE https://github.com/advisories/GHSA-7cx3-6m66-7c5m
1012
wandb>=0.19.1 # Addresses CVE GHSA-v778-237x-gjrc
1113
pyfastx==1.1.0

0 commit comments

Comments
 (0)