Skip to content

Commit acc7725

Browse files
committed
[universal] - Fixing multiple image vulnerability issues
1 parent c818a99 commit acc7725

File tree

7 files changed

+27
-17
lines changed

7 files changed

+27
-17
lines changed

src/universal/.devcontainer/devcontainer-lock.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616
"integrity": "sha256:905c3bd16f12b57e4e68319838799f51d5540982a8911a68f1605f3562838c8b"
1717
},
1818
"ghcr.io/devcontainers/features/docker-in-docker:2": {
19-
"version": "2.13.0",
20-
"resolved": "ghcr.io/devcontainers/features/docker-in-docker@sha256:ac0a882e936ba6275d7f4ed5ebfc09e4ddca8cbcaeaad18b412beacddeb2fa91",
21-
"integrity": "sha256:ac0a882e936ba6275d7f4ed5ebfc09e4ddca8cbcaeaad18b412beacddeb2fa91"
19+
"version": "2.14.0",
20+
"resolved": "ghcr.io/devcontainers/features/docker-in-docker@sha256:445e84b0c213225bfdae977a72b4125f65e38eadcd49616dae04f1af24aa122d",
21+
"integrity": "sha256:445e84b0c213225bfdae977a72b4125f65e38eadcd49616dae04f1af24aa122d"
2222
},
2323
"ghcr.io/devcontainers/features/dotnet:2": {
24-
"version": "2.4.1",
25-
"resolved": "ghcr.io/devcontainers/features/dotnet@sha256:ee5dfbe74a949dd2b93688e9194a0afa6668096cc43a2da66f7dda137dae9968",
26-
"integrity": "sha256:ee5dfbe74a949dd2b93688e9194a0afa6668096cc43a2da66f7dda137dae9968"
24+
"version": "2.4.2",
25+
"resolved": "ghcr.io/devcontainers/features/dotnet@sha256:e56b2abde945918508f1bca94d5545e23b30f5f1d4f3b363ad4819c6b81396f1",
26+
"integrity": "sha256:e56b2abde945918508f1bca94d5545e23b30f5f1d4f3b363ad4819c6b81396f1"
2727
},
2828
"ghcr.io/devcontainers/features/git-lfs:1": {
2929
"version": "1.2.5",

src/universal/.devcontainer/devcontainer.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@
7575
"./local-features/jekyll": "latest",
7676
"ghcr.io/devcontainers/features/oryx:1": "latest",
7777
"./local-features/setup-user": "latest",
78-
"./local-features/patch-conda": {}
78+
"./local-features/patch-conda": {},
79+
"./local-features/patch-python": {}
7980
},
8081
"overrideFeatureInstallOrder": [
8182
"ghcr.io/devcontainers/features/common-utils",
@@ -87,6 +88,7 @@
8788
"ghcr.io/devcontainers/features/conda",
8889
"./local-features/patch-conda",
8990
"ghcr.io/devcontainers/features/python",
91+
"./local-features/patch-python",
9092
"ghcr.io/devcontainers/features/php",
9193
"ghcr.io/devcontainers/features/ruby",
9294
"ghcr.io/devcontainers/features/java",

src/universal/.devcontainer/local-features/patch-conda/install.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,10 @@ sudo_if /opt/conda/bin/python3 -m pip install --upgrade pip
5252
# They are installed by the conda feature and Conda distribution does not have the patches.
5353

5454
# https://github.com/advisories/GHSA-h4gh-qq45-vh27
55-
update_python_package /opt/conda/bin/python3 cryptography "43.0.1"
55+
update_python_package /opt/conda/bin/python3 cryptography "44.0.1"
5656

5757
update_conda_package pyopenssl "25.0.0"
5858

59-
# https://github.com/advisories/GHSA-pq67-6m6q-mj2v
60-
update_conda_package urllib3 "2.5.0"
61-
6259
# https://github.com/advisories/GHSA-9hjg-9r4m-mvj7
6360
update_conda_package requests "2.32.4"
6461

@@ -67,3 +64,9 @@ update_conda_package setuptools "78.1.1"
6764

6865
# https://github.com/advisories/GHSA-g7vv-2v7x-gj9p
6966
update_python_package /opt/conda/bin/python3 tqdm "4.66.3"
67+
68+
# https://github.com/advisories/GHSA-38jv-5279-wg99
69+
update_conda_package urllib3 "2.6.3"
70+
71+
# https://nvd.nist.gov/vuln/detail/CVE-2025-6176
72+
update_conda_package brotli "1.2.0"

src/universal/.devcontainer/local-features/patch-python/install.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,8 @@ update_package() {
3838
sudo_if "$PYTHON_PATH -m pip install --upgrade --no-cache-dir $PACKAGE==$VERSION"
3939
sudo_if "$PYTHON_PATH -m pip show --no-python-version-warning $PACKAGE"
4040
}
41+
42+
sudo_if /usr/local/python/3.11.*/bin/python -m pip install --upgrade pip
43+
44+
# https://github.com/advisories/GHSA-5rjg-fvgr-3xxf
45+
update_package /usr/local/python/3.11.*/bin/python setuptools "78.1.1"

src/universal/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ For example:
2929

3030
- `mcr.microsoft.com/devcontainers/universal:5-noble`
3131
- `mcr.microsoft.com/devcontainers/universal:5.1-noble`
32-
- `mcr.microsoft.com/devcontainers/universal:5.1.0-noble`
32+
- `mcr.microsoft.com/devcontainers/universal:5.1.2-noble`
3333

3434
See [history](history) for information on the contents of each version and [here for a complete list of available tags](https://mcr.microsoft.com/v2/devcontainers/universal/tags/list).
3535

src/universal/manifest.json

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

src/universal/test-project/test.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,15 +178,15 @@ check "java-version-on-path-is-12.0.2" java --version | grep 12.0.2
178178
ls -la /home/codespace
179179

180180
## Python - current
181-
checkPythonPackageVersion "python" "setuptools" "65.5.1"
181+
checkPythonPackageVersion "/usr/local/python/3.11.*/bin/python" "setuptools" "78.1.1"
182182
checkPythonPackageVersion "python" "requests" "2.31.0"
183-
checkPythonPackageVersion "python" "urllib3" "2.5.0"
184183

185184
## Conda Python
186185
checkCondaPackageVersion "requests" "2.31.0"
187-
checkCondaPackageVersion "cryptography" "41.0.4"
186+
checkCondaPackageVersion "cryptography" "44.0.1"
188187
checkCondaPackageVersion "pyopenssl" "25.0.0"
189-
checkCondaPackageVersion "urllib3" "2.5.0"
188+
checkCondaPackageVersion "urllib3" "2.6.3"
189+
checkCondaPackageVersion "brotli" "1.2.0"
190190

191191
## Test Conda
192192
check "conda-update-conda" bash -c "conda update -y conda"

0 commit comments

Comments
 (0)