{"id":"CVE-2020-26250","published":"2020-12-01T20:30:16Z","modified":"2024-08-04T15:56:04Z","title":"Base class whitelist configuration ignored in OAuthenticator","vendor":"jupyterhub","product":"oauthenticator","tier":"tail","description":{"text":"OAuthenticator is an OAuth login mechanism for JupyterHub. In oauthenticator from version 0.12.0 and before 0.12.2, the deprecated (in jupyterhub 1.2) configuration `Authenticator.whitelist`, which should be transparently mapped to `Authenticator.allowed_users` with a warning, is instead ignored by OAuthenticator classes, resulting in the same behavior as if this configuration has not been set. If this is the only mechanism of authorization restriction (i.e. no group or team restrictions in configuration) then all authenticated users will be allowed. Provider-based restrictions, including deprecated values such as `GitHubOAuthenticator.org_whitelist` are **not** affected. All users of OAuthenticator 0.12.0 and 0.12.1 with JupyterHub 1.2 (JupyterHub Helm chart 0.10.0-0.10.5) who use the `admin.whitelist.users` configuration in the jupyterhub helm chart or the `c.Authenticator.whitelist` configuration directly. Users of other deprecated configuration, e.g. `c.GitHubOAuthenticator.team_whitelist` are **not** affected. If you see a log line like this and expect a specific list of allowed usernames: \"[I 2020-11-27 16:51:54.528 JupyterHub app:1717] Not using allowed_users. Any authenticated user will be allowed.\" you are likely affected. Updating oauthenticator to 0.12.2 is recommended. A workaround is to replace the deprecated `c.Authenticator.whitelist = ...` with `c.Authenticator.allowed_users = ...`. If any users have been authorized during this time who should not have been, they must be deleted via the API or admin interface, per the referenced documentation.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01132,"percentile":0.67222,"provenance":"source"},"cwes":[{"id":"CWE-863","name":"Incorrect Authorization"}],"references":[{"url":"https://github.com/jupyterhub/oauthenticator/security/advisories/GHSA-384w-5v3f-q499","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/jupyterhub/oauthenticator/commit/a4aac191c16cf6281f3d346615aefa75702b02d7","tags":["x_refsource_MISC"]},{"url":"https://github.com/jupyterhub/oauthenticator/blob/master/docs/source/changelog.md#0122---2020-11-30","tags":["x_refsource_MISC"]},{"url":"https://jupyterhub.readthedocs.io/en/1.2.2/getting-started/authenticators-users-basics.html#add-or-remove-users-from-the-hub","tags":["x_refsource_MISC"]}],"priority":{"score":17.9,"factors":[{"name":"EPSS percentile","points":13.44},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"jupyterhub","affectedVersions":[{"vendor":"jupyterhub","product":"oauthenticator","versions":[">= 0.12.0, < 0.12.2"]}],"affected":[{"ecosystem":"PyPI","package":"oauthenticator","vulnerableRanges":[">=0.12.0, <0.12.2"],"patched":["0.12.2"],"from":["GHSA-384w-5v3f-q499","PYSEC-2020-68"],"provenance":"source"}],"summary":{"text":"The OAuthenticator component of JupyterHub, in versions 0.12.0 up to but not including 0.12.2, ignores the deprecated Authenticator.whitelist setting, so when that is the only authorization restriction configured, any authenticated user is allowed in. An attacker who can complete the OAuth login with the configured provider can gain access without being on the intended allow list, provided no group or team restrictions are set and the deployment uses the deprecated whitelist configuration.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:42:46Z"},"euvd":{"id":"EUVD-2020-0118","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-jupyterhub-oauthenticator-cve-2018-7206","parents":[{"from":"CVE-2018-7206","to":"CVE-2020-26250","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["oauthenticator/gitlab.py"],"commits":["https://github.com/jupyterhub/oauthenticator/commit/1845c0e4b1bff3462c91c3108c85205acd3c75a2","https://github.com/jupyterhub/oauthenticator/commit/a4aac191c16cf6281f3d346615aefa75702b02d7"],"basis":"rarely changed file"}]}],"children":[{"from":"CVE-2020-26250","to":"CVE-2022-31027","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["oauthenticator/cilogon.py","oauthenticator/oauth2.py"],"commits":["https://github.com/jupyterhub/oauthenticator/commit/a4aac191c16cf6281f3d346615aefa75702b02d7","https://github.com/jupyterhub/oauthenticator/commit/5cd2d1816f90dc5c946e6e38fd2d0ba535624c5c"],"basis":"shared function","functions":["authorize_redirect"]}]},{"from":"CVE-2020-26250","to":"CVE-2024-29033","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["oauthenticator/google.py"],"commits":["https://github.com/jupyterhub/oauthenticator/commit/a4aac191c16cf6281f3d346615aefa75702b02d7","https://github.com/jupyterhub/oauthenticator/commit/5246b09675501b09fb6ed64022099b7644812f60"],"basis":"rarely changed file"}]}]}}