DockerSpawner allows any image by defaultGHSA-hfgr-h3vc-p6c2
MEDIUMFix: jupyterhub/dockerspawner@3ba4b66GHSA-hfgr-h3vc-p6c2 is a medium-severity (CVSS 4.3) Improper Input Validation vulnerability in dockerspawner. A fix is available for dockerspawner — see the affected versions and patch details below.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
dockerspawnerReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects PyPI packages — download data is not available via public APIs for these ecosystems.
Description
dockerspawner is a tool to spawn JupyterHub single user servers in Docker containers. Users of JupyterHub deployments running DockerSpawner starting with 0.11.0 without specifying DockerSpawner.allowed_images configuration allow users to launch any pullable docker image, instead of restricting to only the single configured image, as intended. This issue has been addressed in commit 3ba4b665b which has been included in dockerspawner release version 13. Users are advised to upgrade. Users unable to upgrade should explicitly set DockerSpawner.allowed_images to a non-empty list containing only the default image will result in the intended default behavior.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐍PyPI | dockerspawner | ≥ 0.11.0&&< 13.0.0 | 13.0.0pip install --upgrade 'dockerspawner==13.0.0' |
Affected Products
dockerspawnerjupyterDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for dockerspawner, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update dockerspawner to 13.0.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-hfgr-h3vc-p6c2 is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
Frequently Asked Questions
Is GHSA-hfgr-h3vc-p6c2 in your dependencies?
Find it across PyPI, including transitive dependencies.