Skip to content

Commit fe8f30e

Browse files
[Miniconda] - idna - GHSA-jjg7-2v4v-x38h security patch for vulnerability (devcontainers#1047)
1 parent beb6f57 commit fe8f30e

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/miniconda/.devcontainer/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ FROM continuumio/miniconda3 as upstream
22

33
# Temporary: Upgrade python packages due to mentioned CVEs
44
# They are installed by the base image (continuumio/miniconda3) which does not have the patch.
5-
# RUN conda install \
6-
# https://github.com/advisories/<CVE_ID>
7-
# <package_name> = <version>
5+
RUN conda install \
6+
# https://github.com/advisories/GHSA-jjg7-2v4v-x38h
7+
idna==3.7
88

99
RUN python3 -m pip install --upgrade \
1010
# https://github.com/advisories/GHSA-6vqw-3v5j-54x4
1111
cryptography==42.0.4 \
1212
# installed for compatibility with cryptography v42.0.4
13-
pyopenssl==24.0.0
13+
pyopenssl==24.0.0
1414

1515
# Reset and copy updated files with updated privs to keep image size down
1616
FROM mcr.microsoft.com/devcontainers/base:1-bullseye

src/miniconda/test-project/test.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ checkCondaPackageVersion "setuptools" "65.5.1"
2828
checkCondaPackageVersion "wheel" "0.38.1"
2929
checkCondaPackageVersion "requests" "2.31.0"
3030
checkCondaPackageVersion "urllib3" "1.26.17"
31+
checkCondaPackageVersion "idna" "3.7"
3132

3233
check "conda-update-conda" bash -c "conda update -y conda"
3334
check "conda-install-tensorflow" bash -c "conda create --name test-env -c conda-forge --yes tensorflow"

0 commit comments

Comments
 (0)