Skip to content

could you please upgrade setuptools version to latest #1012

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
RohitThakur92 opened this issue Mar 19, 2025 · 2 comments
Closed

could you please upgrade setuptools version to latest #1012

RohitThakur92 opened this issue Mar 19, 2025 · 2 comments

Comments

@RohitThakur92
Copy link

I am using python:3.11-alpine3.21 docker image from docker hub however this docker image is having one high level of vulnerability which is related to setuptools library. I would recommend you to upgrade the setuptools version from 65.5.1 to 76.1.0, which can help us to resolve the currently present vulnerability and republish the docker image to dockerhub

@edmorley
Copy link
Contributor

These images by design use the pip/setuptools versions that are bundled with the version of Python being installed.

Python 3.11 comes with setuptools v65.5.0:
https://github.com/python/cpython/tree/3.11/Lib/ensurepip/_bundled

So this is expected, and not something that will be changed in these images. (Updating to setuptools 70+ would be a breaking change for a start.)

You will either need to either:

  1. Update to Python 3.12 or newer (which no longer bundles setuptools)
  2. Update setuptools in your own Dockerfile
  3. Ask upstream CPython to update to newer setuptools in Python 3.11
  4. Suppress the vulnerability alert if appropriate (you didn't say what vulnerability you were referring to, but it's quite possible it's a non-issue in practice - many setuptools codepaths are not used when it's used as a pip build backend, or need several other criteria to be a problem etc)

See also:

@yosifkit
Copy link
Member

These images by design use the pip/setuptools versions that are bundled with the version of Python being installed.

@edmorley is correct. We do not update setuptools in the image; we just include the bundled version. See also #781 (comment)

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

No branches or pull requests

3 participants