VDB
Sign up
MEDIUM4.3

PYSEC-2026-1312

DockerSpawner allows any image by default

Quick fix

PYSEC-2026-1312 — dockerspawner: upgrade to the fixed version with the command below.

pip install --upgrade 'dockerspawner>=13.0.0'

Details

### Impact

Users of JupyterHub deployments running DockerSpawner starting with 0.11.0 without specifying `DockerSpawner.allowed_images` configuration allow users to launch _any_ pullable image, instead of restricting to only the single configured image, as intended.

### Patches

Upgrade to DockerSpawner 13.

### Workarounds

Explicitly setting `DockerSpawner.allowed_images` to a non-empty list containing only the default image will result in the intended default behavior:

```python c.DockerSpawner.image = "your-image" c.DockerSpawner.allowed_images = ["your-image"] ```

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/dockerspawner
Introduced in: 0.11.0Fixed in: 13.0.0
Fixpip install --upgrade 'dockerspawner>=13.0.0'

References