Skip to content

Commit c579bcf

Browse files
updating packages versions to fix anaconda vulnerabilities
1 parent 5537b1c commit c579bcf

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

src/anaconda/.devcontainer/apply_security_patches.sh

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

6-
vulnerable_packages=( "mistune=3.0.1" "transformers=4.49.0" "cryptography=43.0.3" "jupyter-lsp=2.2.2" "scrapy=2.11.2" \
6+
vulnerable_packages=( "mistune=3.0.1" "aiohttp=3.10.11" "cryptography=44.0.1" "h11=0.16.0" "imagecodecs=2023.9.18" "jinja2=3.1.6" "jupyter-core=5.8.1" "protobuf=4.25.8" "requests=2.32.4" "setuptools=78.1.1" "transformers=4.52.1" "urllib3=2.5.0" "Werkzeug=3.0.6" "jupyter-lsp=2.2.2" "scrapy=2.11.2" \
77
"zipp=3.19.1" "tornado=6.4.2")
88

99
# Define the number of rows (based on the length of vulnerable_packages)
@@ -26,7 +26,7 @@ done
2626

2727
# Add an array for packages that should always pin to the provided version,
2828
# even if higher version is available in conda channel
29-
pin_to_required_version=( "transformers" "cryptography" ) # Add package names as needed
29+
pin_to_required_version=( "aiohttp" "Werkzeug" "cryptography" "h11" "imagecodecs" "jinja2" "jupyter-core" "protobuf" "requests" "setuptools" "transformers" "urllib3") # Add package names as needed
3030

3131
# Function to check if a package is in the pin_to_required_version array
3232
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.2.7",
2+
"version": "2.0.0",
33
"build": {
44
"latest": true,
55
"rootDistro": "debian",

src/anaconda/test-project/test.sh

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,17 @@ checkPythonPackageVersion "joblib" "1.2.0"
3333
checkPythonPackageVersion "cookiecutter" "2.1.1"
3434
checkPythonPackageVersion "mistune" "2.0.3"
3535
checkPythonPackageVersion "numpy" "1.22"
36-
checkPythonPackageVersion "setuptools" "70.0.0"
36+
checkPythonPackageVersion "setuptools" "78.1.1"
3737
checkPythonPackageVersion "wheel" "0.38.1"
3838
checkPythonPackageVersion "nbconvert" "6.5.1"
39-
checkPythonPackageVersion "werkzeug" "3.0.3"
39+
checkPythonPackageVersion "werkzeug" "3.0.6"
4040
checkPythonPackageVersion "certifi" "2022.12.07"
41-
checkPythonPackageVersion "cryptography" "43.0.1"
42-
checkPythonPackageVersion "transformers" "4.36.0"
41+
checkPythonPackageVersion "cryptography" "44.0.1"
42+
checkPythonPackageVersion "h11" "0.16.0"
43+
checkPythonPackageVersion "imagecodecs" "2023.9.18"
44+
checkPythonPackageVersion "jupyter_core" "5.8.1"
45+
checkPythonPackageVersion "protobuf" "4.25.8"
46+
checkPythonPackageVersion "transformers" "4.52.1"
4347
checkPythonPackageVersion "mpmath" "1.3.0"
4448
checkPythonPackageVersion "aiohttp" "3.10.2"
4549
checkPythonPackageVersion "tornado" "6.4.2"
@@ -53,15 +57,15 @@ checkPythonPackageVersion "jupyter-lsp" "2.2.2"
5357
checkPythonPackageVersion "idna" "3.7"
5458
checkPythonPackageVersion "jinja2" "3.1.4"
5559
checkPythonPackageVersion "scrapy" "2.11.2"
56-
checkPythonPackageVersion "requests" "2.32.2"
60+
checkPythonPackageVersion "requests" "2.32.4"
5761
checkPythonPackageVersion "scikit-learn" "1.5.0"
5862
checkPythonPackageVersion "zipp" "3.19.1"
5963

6064
checkCondaPackageVersion "pyopenssl" "24.2.1"
6165
checkCondaPackageVersion "requests" "2.32.2"
6266
checkCondaPackageVersion "pygments" "2.15.1"
6367
checkCondaPackageVersion "mpmath" "1.3.0"
64-
checkCondaPackageVersion "urllib3" "2.2.2"
68+
checkCondaPackageVersion "urllib3" "2.5.0"
6569
checkCondaPackageVersion "pyarrow" "14.0.1"
6670
checkCondaPackageVersion "pydantic" "2.5.3"
6771
checkCondaPackageVersion "tqdm" "4.66.4"

0 commit comments

Comments
 (0)