Vulnerability DatabaseGHSA-5jhc-4h3c-q97h

GHSA-5jhc-4h3c-q97h: 
JupyterHub vulnerability analysis and mitigation

Summary

When setgroups fails, LocalProcessSpawner may fail to drop group membership of the Hub process.

Impact

When the setgroups syscall fails (rare), supplemental groups may be inherited from the Hub parent process.

Workarounds

First, make sure setgroups succeeds for user subprocesses. If it does, then there's no problem. If it fails in your case, you can subclass LocalProcessSpawner with a custom make_preexec_fn that drops supplemental groups by calling:

user = pwd.getpwnam(username)
uid = user.pw_uid
gid = user.pw_gid
os.setgid(gid)
os.setgroups([]) # the difference
os.setuid(uid)

If setgroups succeeds, as it does on almost all real systems, there is no issue.

Patch

Upgrade to JupyterHub 6.1.0 or 5.5.3.


Source: NVD

Related JupyterHub vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-hx46-2cv3-mh6gMEDIUM6.5
  • JupyterHub logoJupyterHub
  • jupyterhub
NoYesOct 21, 2026
GHSA-x7xh-7hc7-9436MEDIUM6.1
  • JupyterHub logoJupyterHub
  • jupyterhub
NoYesOct 21, 2026
GHSA-5jhc-4h3c-q97hMEDIUM4.1
  • JupyterHub logoJupyterHub
  • jupyterhub
NoYesOct 21, 2026
GHSA-93gc-h923-mp36MEDIUMN/A
  • JupyterHub logoJupyterHub
  • jupyterhub
NoYesOct 21, 2026
GHSA-r764-xgvf-jrfjMEDIUMN/A
  • JupyterHub logoJupyterHub
  • jupyterhub
NoYesOct 21, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management