Advisory

GHSA-hfgr-h3vc-p6c2

Also known as: CVE-2023-48311, PYSEC-2026-1312

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"]

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2023-12-08 14:42 UTC
Modified
2026-07-07 17:56 UTC

Affected packages and fixes

dockerspawner

PyPI · All systems

Affected

  • introduced 0.11.0, fixed 13.0.0 (ecosystem)

Fixed versions

13.0.0

Fix

  • Fixed version 13.0.0
    pip install --upgrade dockerspawner==13.0.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences