Skip to content

Commit a51abd8

Browse files
[anaconda] & [miniconda] - Security Updates for dotenv, lxml, nbconvert, GitPython (#1889)
* [anaconda]- Security Update for python-dotenv (GHSA-mf9w-mj56-hr94) * [miniconda]- Security Update for python-dotenv (GHSA-mf9w-mj56-hr94) * [anaconda] - Security Update for lxml (GHSA-vfmq-68hx-4jfw) * [anaconda]- Security Update for nbconvert (GHSA-4c99-qj7h-p3vg) & (GHSA-7jqv-fw35-gmx9) * [anaconda]- Security Update for GitPython (GHSA-rpm5-65cw-6hj4) & (GHSA-x2qx-6953-8485)
1 parent a96c0a5 commit a51abd8

9 files changed

Lines changed: 18 additions & 11 deletions

File tree

src/anaconda/.devcontainer/apply_security_patches.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# werkzeug - [GHSA-f9vj-2wh5-fj8j]
55

66
patched_package_versions=( "mistune=3.0.1" "aiohttp=3.10.11" "cryptography=44.0.1" "h11=0.16.0" "jinja2=3.1.6" "jupyter_core=5.8.1" "protobuf=6.33.5" "requests=2.32.4" "setuptools=78.1.1" "transformers=4.53.0" "urllib3=2.5.0" "werkzeug=3.1.5" "jupyter-lsp=2.2.2" "scrapy=2.14.2"
7-
"zipp=3.19.1" "tornado=6.5.5" "jupyterlab=4.4.8" "imagecodecs=2024.9.22" "fonttools=4.60.2" "pyarrow=17.0.0" "brotli=1.2.0" "filelock=3.20.1" "bokeh=3.8.2" "distributed=2026.1.0" "wheel=0.46.2" "nltk=3.9.3" "black=26.3.1" "pyjwt=2.12.0" "pillow=12.1.1" "pyopenssl=26.0.0" "nbconvert=7.17.0" "markdown=3.8.1")
7+
"zipp=3.19.1" "tornado=6.5.5" "jupyterlab=4.4.8" "imagecodecs=2024.9.22" "fonttools=4.60.2" "pyarrow=17.0.0" "brotli=1.2.0" "filelock=3.20.1" "bokeh=3.8.2" "distributed=2026.1.0" "wheel=0.46.2" "nltk=3.9.3" "black=26.3.1" "pyjwt=2.12.0" "pillow=12.1.1" "pyopenssl=26.0.0" "nbconvert=7.17.1" "markdown=3.8.1" "python-dotenv=1.2.2" "lxml=6.1.0")
88

99
# Define the number of rows (based on the length of patched_package_versions)
1010
rows=${#patched_package_versions[@]}

src/anaconda/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "1.3.15",
2+
"version": "1.3.17",
33
"build": {
44
"latest": true,
55
"rootDistro": "debian",

src/anaconda/test-project/test.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ checkPythonPackageVersion "mistune" "3.0.1"
3535
checkPythonPackageVersion "numpy" "1.22"
3636
checkPythonPackageVersion "setuptools" "78.1.1"
3737
checkPythonPackageVersion "wheel" "0.46.2"
38-
checkPythonPackageVersion "nbconvert" "7.17.0"
38+
checkPythonPackageVersion "nbconvert" "7.17.1"
3939
checkPythonPackageVersion "werkzeug" "3.1.5"
4040
checkPythonPackageVersion "certifi" "2022.12.07"
4141
checkPythonPackageVersion "cryptography" "44.0.1"
@@ -66,6 +66,8 @@ checkPythonPackageVersion "distributed" "2026.1.0"
6666
checkPythonPackageVersion "filelock" "3.20.1"
6767
checkPythonPackageVersion "bokeh" "3.8.2"
6868
checkPythonPackageVersion "pyjwt" "2.12.0"
69+
checkPythonPackageVersion "python-dotenv" "1.2.2"
70+
checkPythonPackageVersion "lxml" "6.1.0"
6971

7072
checkCondaPackageVersion "pyopenssl" "26.0.0"
7173
checkCondaPackageVersion "requests" "2.32.4"
@@ -79,6 +81,7 @@ checkCondaPackageVersion "black" "26.3.1"
7981
checkCondaPackageVersion "streamlit" "1.37.0"
8082
checkCondaPackageVersion "nltk" "3.9.3"
8183
checkCondaPackageVersion "markdown" "3.8.1"
84+
checkCondaPackageVersion "python-dotenv" "1.2.2"
8285

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

src/miniconda/.devcontainer/apply_security_patches.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
# define array of packages for pinning to the patched versions
77
# patched_package_versions=( "package1=version1" "package2=version2" "package3=version3" )
8-
patched_package_versions=( "cryptography=46.0.6" "requests=2.32.4" "urllib3=2.5.0")
8+
patched_package_versions=( "cryptography=46.0.6" "requests=2.32.4" "urllib3=2.5.0" "python-dotenv=1.2.2")
99

1010
# Define the number of rows (based on the length of patched_package_versions)
1111
rows=${#patched_package_versions[@]}

src/miniconda/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "1.2.5",
2+
"version": "1.2.6",
33
"build": {
44
"latest": true,
55
"rootDistro": "debian",

src/miniconda/test-project/test.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ checkPythonPackageVersion "cryptography" "46.0.6"
2222
checkPythonPackageVersion "setuptools" "65.5.1"
2323
checkPythonPackageVersion "wheel" "0.38.1"
2424
checkPythonPackageVersion "urllib3" "2.5.0"
25+
checkPythonPackageVersion "python-dotenv" "1.2.2"
2526

2627
checkCondaPackageVersion "cryptography" "46.0.6"
2728
checkCondaPackageVersion "setuptools" "65.5.1"
@@ -31,10 +32,13 @@ checkCondaPackageVersion "urllib3" "2.5.0"
3132
checkCondaPackageVersion "idna" "3.7"
3233
checkCondaPackageVersion "tqdm" "4.66.4"
3334
checkCondaPackageVersion "certifi" "2024.7.4"
35+
checkCondaPackageVersion "python-dotenv" "1.2.2"
3436

3537
check "conda-update-conda" bash -c "conda update -y conda"
36-
check "conda-install-tensorflow" bash -c "conda create --name test-env -c conda-forge --yes tensorflow"
37-
check "conda-install-pytorch" bash -c "conda create --name test-env -c conda-forge --yes pytorch"
38+
check "conda-install-tensorflow" bash -c "conda create --name test-tensorflow -c conda-forge --yes tensorflow"
39+
# Clear repodata cache between heavy conda-forge solves to avoid "sqlite3 database is locked".
40+
check "conda-clean-index-cache" bash -c "conda clean --index-cache --yes"
41+
check "conda-install-pytorch" bash -c "conda create --name test-pytorch -c conda-forge --yes pytorch"
3842

3943
checkPipWorkingCorrectly
4044

src/python/.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
1010
# They are installed by the base image (python) which does not have the patch.
1111
RUN python3 -m pip install --upgrade \
1212
setuptools==78.1.1 \
13-
gitpython==3.1.41 \
13+
gitpython==3.1.47 \
1414
jaraco.context==6.1.0 \
1515
wheel==0.46.2
1616

src/python/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "3.1.0",
2+
"version": "3.1.1",
33
"variants": [
44
"3.14-trixie",
55
"3.13-trixie",

src/python/test-project/test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ check-version-ge "svn-requirement" "${svn_version}" "1.14.5"
4747
setuptools_version=$(python -c "import setuptools; print(setuptools.__version__)")
4848
check-version-ge "setuptools-requirement" "${setuptools_version}" "78.1.1"
4949

50-
# https://github.com/advisories/GHSA-2mqj-m65w-jghx
50+
# https://github.com/advisories/GHSA-rpm5-65cw-6hj4
5151
gitpython_version=$(python -c "import git; print(git.__version__)")
52-
check-version-ge "gitpython-requirement" "${gitpython_version}" "3.1.41"
52+
check-version-ge "gitpython-requirement" "${gitpython_version}" "3.1.47"
5353

5454
# GHSA-58pv-8j8x-9vj2: jaraco.context
5555
jaraco_context_version=$(python -c "from importlib.metadata import version; print(version('jaraco.context'))")

0 commit comments

Comments
 (0)