[universal] - Fix vulnerability issues GHSA-mf9w-mj56-hr94 and GHSA-p423-j2cm-9vmq#1890
[universal] - Fix vulnerability issues GHSA-mf9w-mj56-hr94 and GHSA-p423-j2cm-9vmq#1890Kaniska244 wants to merge 4 commits into
Conversation
There was a problem hiding this comment.
Pull request overview
Updates the Universal image’s Conda patching and validation to address reported security advisories for cryptography (GHSA-p423-j2cm-9vmq) and python-dotenv (GHSA-mf9w-mj56-hr94), along with a patch version bump for the image.
Changes:
- Bump Universal image version from
6.0.4to6.0.5. - Update Conda patching to install
cryptography46.0.7and add patching forpython-dotenv1.2.2. - Update the Universal test project’s Conda package version checks accordingly.
Show a summary per file
| File | Description |
|---|---|
| src/universal/test-project/test.sh | Updates expected Conda package versions (and adds python-dotenv validation). |
| src/universal/manifest.json | Bumps Universal image patch version to 6.0.5. |
| src/universal/.devcontainer/local-features/patch-conda/install.sh | Updates Conda patching to target the fixed advisory versions. |
Copilot's findings
- Files reviewed: 3/3 changed files
- Comments generated: 3
| checkCondaPackageVersion "pyopenssl" "26.0.0" | ||
| checkCondaPackageVersion "urllib3" "2.6.3" | ||
| checkCondaPackageVersion "brotli" "1.2.0" | ||
| checkCondaPackageVersion "python-dotenv" "1.2.2" |
There was a problem hiding this comment.
The problem is in python-dotenv library version installed in the supporting python binary of conda feature, not in the actual python feature installed in the universal image and the library isn't available in conda channels therefore pip was used for the installation. However, once installed with pip, the conda list command perfectly shows the correct version of the python-dotenv library. So this change should not be needed.
| # https://github.com/advisories/GHSA-mf9w-mj56-hr94 | ||
| update_python_package /opt/conda/bin/python3 python-dotenv "1.2.2" |
There was a problem hiding this comment.
The problem is in python-dotenv library version installed in the supporting python binary of conda feature, not in the actual python feature installed in the universal image and the library isn't available in conda channels therefore pip was used with conda's supporting python binary path /opt/conda/bin/python3 for the installation. So no further change should be needed.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Uh oh!
There was an error while loading. Please reload this page.