PYSEC-2026-1312

See a problem?
Import Source
https://github.com/pypa/advisory-database/blob/main/vulns/dockerspawner/PYSEC-2026-1312.yaml
JSON Data
https://api.osv.dev/v1/vulns/PYSEC-2026-1312
Aliases
Published
2026-07-07T11:45:28.248139Z
Modified
2026-07-07T17:46:38.918152675Z
Severity
  • 4.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N CVSS Calculator
Summary
DockerSpawner allows any image by default
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:

c.DockerSpawner.image = "your-image"
c.DockerSpawner.allowed_images = ["your-image"]
References

Affected packages

PyPI / dockerspawner

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0.11.0
Fixed
13.0.0

Affected versions

0.*
0.11.0
0.11.1
12.*
12.0.0
12.1.0

Database specific

source
"https://github.com/pypa/advisory-database/blob/main/vulns/dockerspawner/PYSEC-2026-1312.yaml"