Skip to content

Commit b873a92

Browse files
[anaconda]-fixing security vulnerabilities - Werkzeug, distributed, wheel, filelock and bokeh (#1790)
* Update vulnerable package versions and increment manifest version * Fix typo in wheel package version in test script * Add 'distributed' to the list of packages pinned to required versions * Update src/anaconda/.devcontainer/apply_security_patches.sh Co-authored-by: Copilot <[email protected]> * Update vulnerable_packages with new dependencies * Add checks for filelock and bokeh package versions * version change * Revert "version change" This reverts commit a1ac116. --------- Co-authored-by: Copilot <[email protected]>
1 parent 0f3873e commit b873a92

3 files changed

Lines changed: 9 additions & 6 deletions

File tree

src/anaconda/.devcontainer/apply_security_patches.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
# vulnerabilities:
44
# werkzeug - [GHSA-f9vj-2wh5-fj8j]
55

6-
vulnerable_packages=( "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=5.29.5" "requests=2.32.4" "setuptools=78.1.1" "transformers=4.53.0" "urllib3=2.5.0" "Werkzeug=3.0.6" "jupyter-lsp=2.2.2" "scrapy=2.11.2" \
7-
"zipp=3.19.1" "tornado=6.4.2" "jupyterlab=4.4.8" "imagecodecs=2024.9.22" "fonttools=4.60.2" "pyarrow=17.0.0" "brotli=1.2.0" )
6+
vulnerable_packages=( "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=5.29.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.11.2" \
7+
"zipp=3.19.1" "tornado=6.4.2" "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" )
88

99
# Define the number of rows (based on the length of vulnerable_packages)
1010
rows=${#vulnerable_packages[@]}
@@ -28,7 +28,7 @@ done
2828

2929
# Add an array for packages that should always pin to the provided version,
3030
# even if higher version is available in conda channel
31-
pin_to_required_version=("transformers" "imagecodecs" "brotli" "protobuf")
31+
pin_to_required_version=("transformers" "imagecodecs" "brotli" "protobuf" "distributed")
3232

3333
# Function to check if a package is in the pin_to_required_version array
3434
function is_pin_to_required_version() {

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.11",
2+
"version": "1.3.12",
33
"build": {
44
"latest": true,
55
"rootDistro": "debian",

src/anaconda/test-project/test.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ checkPythonPackageVersion "cookiecutter" "2.1.1"
3434
checkPythonPackageVersion "mistune" "2.0.3"
3535
checkPythonPackageVersion "numpy" "1.22"
3636
checkPythonPackageVersion "setuptools" "78.1.1"
37-
checkPythonPackageVersion "wheel" "0.38.1"
37+
checkPythonPackageVersion "wheel" "0.46.2"
3838
checkPythonPackageVersion "nbconvert" "6.5.1"
39-
checkPythonPackageVersion "werkzeug" "3.0.6"
39+
checkPythonPackageVersion "werkzeug" "3.1.5"
4040
checkPythonPackageVersion "certifi" "2022.12.07"
4141
checkPythonPackageVersion "cryptography" "44.0.1"
4242
checkPythonPackageVersion "h11" "0.16.0"
@@ -62,6 +62,9 @@ checkPythonPackageVersion "zipp" "3.19.1"
6262
checkPythonPackageVersion "imagecodecs" "2023.9.18"
6363
checkPythonPackageVersion "brotli" "1.2.0"
6464
checkPythonPackageVersion "fonttools" "4.60.2"
65+
checkPythonPackageVersion "distributed" "2026.1.0"
66+
checkPythonPackageVersion "filelock" "3.20.1"
67+
checkPythonPackageVersion "bokeh" "3.8.2"
6568

6669
checkCondaPackageVersion "pyopenssl" "24.2.1"
6770
checkCondaPackageVersion "requests" "2.32.4"

0 commit comments

Comments
 (0)