Skip to content

[python] - Rework - Security updates for GHSA-58pv-8j8x-9vj2: jaraco.context and GHSA-8rrh-rw8j-w5fx: wheel#1910

Open
Kaniska244 wants to merge 1 commit into
devcontainers:mainfrom
Kaniska244:python-setuptools-vulnerabilities
Open

[python] - Rework - Security updates for GHSA-58pv-8j8x-9vj2: jaraco.context and GHSA-8rrh-rw8j-w5fx: wheel#1910
Kaniska244 wants to merge 1 commit into
devcontainers:mainfrom
Kaniska244:python-setuptools-vulnerabilities

Conversation

@Kaniska244

@Kaniska244 Kaniska244 commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Rework of PR the #1873 as the earlier didn't solve the exact problem reported in specific path as part of the vulnerability issues. The actual problem was linked to setuptools and not exactly with jaraco.context and wheel individually.

@Kaniska244 Kaniska244 marked this pull request as ready for review June 26, 2026 18:49
@Kaniska244 Kaniska244 requested a review from a team as a code owner June 26, 2026 18:49
Copilot AI review requested due to automatic review settings June 26, 2026 18:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Reworks the Python image vulnerability checks to address GHSA findings caused by packages vendored under setuptools (rather than only the top-level installed distributions), and updates pinned Python packaging dependencies.

Changes:

  • Add a filesystem-level scan to detect vulnerable vendored *.dist-info copies (e.g., under setuptools/_vendor).
  • Update the Python devcontainer image to newer setuptools/wheel pins.
  • Bump the Python image patch version in manifest.json.
Show a summary per file
File Description
src/python/test-project/test.sh Switches from direct jaraco.context version check to a filesystem scan for vulnerable vendored copies.
src/python/test-project/test-utils.sh Adds checkNoVulnerablePackage helper to locate vulnerable *.dist-info directories.
src/python/manifest.json Bumps image version from 3.1.3 to 3.1.4.
src/python/.devcontainer/Dockerfile Updates pinned Python packaging dependencies (setuptools, wheel) used in the image build.

Review details

  • Files reviewed: 4/4 changed files
  • Comments generated: 3
  • Review effort level: Low

# Ensure no vulnerable copies are bundled anywhere on the filesystem. These can be
# vendored inside setuptools/_vendor or other virtual envs (e.g. pipenv), which the
# importlib.metadata top-level lookup above does not catch.
checkNoVulnerablePackage "no-vulnerable-jaraco-context" "jaraco_context" "6.1.0"
echoStderr "Found vulnerable ${PACKAGE_PREFIX} ${version} at: ${dist_info}"
found_vulnerable=1
fi
done < <(find / -type d -name "${PACKAGE_PREFIX}-*.dist-info" 2>/dev/null)
Comment thread src/python/manifest.json
@@ -1,5 +1,5 @@
{
"version": "3.1.3",
"version": "3.1.4",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants