Skip to content

Commit e881310

Browse files
[anaconda] Address vulnerabilities: GHSA-j7hp-h8jx-5ppr, GHSA-v845-jxx5-vc9f (#801)
* Bump versions for `aiohttp` and `urllib3` packages * Add tests
1 parent 89e0d3d commit e881310

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/anaconda/.devcontainer/Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ RUN conda install \
1515
# https://github.com/advisories/GHSA-f865-m6cq-j9vx
1616
mpmath=1.3.0 \
1717
# https://github.com/advisories/GHSA-45c4-8wx5-qw6w
18-
aiohttp=3.8.5
18+
aiohttp=3.8.5 \
19+
# https://github.com/advisories/GHSA-j7hp-h8jx-5ppr
20+
pillow=10.0.1
1921

2022
RUN python3 -m pip install --upgrade \
2123
# https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-21797
@@ -35,7 +37,9 @@ RUN python3 -m pip install --upgrade \
3537
# https://github.com/advisories/GHSA-282v-666c-3fvg
3638
transformers==4.30.0 \
3739
# https://github.com/advisories/GHSA-r726-vmfq-j9j3
38-
jupyter_server==2.7.2
40+
jupyter_server==2.7.2 \
41+
# https://github.com/advisories/GHSA-v845-jxx5-vc9f
42+
urllib3==1.26.17
3943

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

src/anaconda/test-project/test.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ checkPythonPackageVersion "transformers" "4.30.0"
4545
checkPythonPackageVersion "mpmath" "1.3.0"
4646
checkPythonPackageVersion "aiohttp" "3.8.5"
4747
checkPythonPackageVersion "jupyter_server" "2.7.2"
48+
checkPythonPackageVersion "urllib3" "1.26.17"
4849

4950
# The `tornado` package doesn't have the `__version__` attribute so we can use the `version` attribute.
5051
tornado_version=$(python -c "import tornado; print(tornado.version)")
@@ -56,6 +57,7 @@ checkCondaPackageVersion "requests" "2.31.0"
5657
checkCondaPackageVersion "pygments" "2.15.1"
5758
checkCondaPackageVersion "mpmath" "1.3.0"
5859
checkCondaPackageVersion "aiohttp" "3.8.5"
60+
checkCondaPackageVersion "pillow" "10.0.1"
5961

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

0 commit comments

Comments
 (0)