{"id":"PYSEC-2026-1312","summary":"DockerSpawner allows any image by default","details":"### Impact\n\nUsers 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.\n\n### Patches\n\nUpgrade to DockerSpawner 13.\n\n### Workarounds\n\nExplicitly setting `DockerSpawner.allowed_images` to a non-empty list containing only the default image will result in the intended default behavior:\n\n```python\nc.DockerSpawner.image = \"your-image\"\nc.DockerSpawner.allowed_images = [\"your-image\"]\n```\n","aliases":["CVE-2023-48311","GHSA-hfgr-h3vc-p6c2"],"modified":"2026-07-07T17:46:38.918152675Z","published":"2026-07-07T11:45:28.248139Z","references":[{"type":"WEB","url":"https://github.com/jupyterhub/dockerspawner/security/advisories/GHSA-hfgr-h3vc-p6c2"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-48311"},{"type":"WEB","url":"https://github.com/jupyterhub/dockerspawner/commit/3ba4b665b6ca6027ea7a032d7ca3eab977574626"},{"type":"PACKAGE","url":"https://github.com/jupyterhub/dockerspawner"},{"type":"PACKAGE","url":"https://pypi.org/project/dockerspawner"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-hfgr-h3vc-p6c2"}],"affected":[{"package":{"name":"dockerspawner","ecosystem":"PyPI","purl":"pkg:pypi/dockerspawner"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.11.0"},{"fixed":"13.0.0"}]}],"versions":["0.11.0","0.11.1","12.0.0","12.1.0"],"database_specific":{"source":"https://github.com/pypa/advisory-database/blob/main/vulns/dockerspawner/PYSEC-2026-1312.yaml"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N"}]}