{"cve":"CVE-2022-31027","nvd":{"published":"2022-06-09T13:15:08.527","modified":"2026-06-17T04:44:38.147","status":"Modified","description":"OAuthenticator is an OAuth token library for the JupyerHub login handler. CILogonOAuthenticator is provided by the OAuthenticator package, and lets users log in to a JupyterHub via CILogon. This is primarily used to restrict a JupyterHub only to users of a given institute. The allowed_idps configuration trait of CILogonOAuthenticator is documented to be a list of domains that indicate the institutions whose users are authorized to access this JupyterHub. This authorization is validated by ensuring that the *email* field provided to us by CILogon has a *domain* that matches one of the domains listed in `allowed_idps`.If `allowed_idps` contains `berkeley.edu`, you might expect only users with valid current credentials provided by University of California, Berkeley to be able to access the JupyterHub. However, CILogonOAuthenticator does *not* verify which provider is used by the user to login, only the email address provided. So a user can login with a GitHub account that has email set to `<something>@berkeley.edu`, and that will be treated exactly the same as someone logging in using the UC Berkeley official Identity Provider. The patch fixing this issue makes a *breaking change* in how `allowed_idps` is interpreted. It's no longer a list of domains, but configuration representing the `EntityID` of the IdPs that are allowed, picked from the [list maintained by CILogon](https://cilogon.org/idplist/). Users are advised to upgrade.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5},"cwes":["CWE-639"],"references":["https://github.com/jupyterhub/oauthenticator/security/advisories/GHSA-r7v4-jwx9-wx43","https://github.com/jupyterhub/oauthenticator/security/advisories/GHSA-r7v4-jwx9-wx43"],"products":["jupyter:oauthenticator"],"source":"nvd","synced_at":"2026-10-19T21:32:39.174919249+00:00"},"epss":{"cve":"CVE-2022-31027","score":0.00475,"percentile":0.41073,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-r7v4-jwx9-wx43","url":"https://osv.dev/vulnerability/GHSA-r7v4-jwx9-wx43","summary":"Authorization Bypass Through User-Controlled Key when using CILogonOAuthenticator oauthenticator","modified":"2023-11-08T04:09:23.149049Z","packages":[{"ecosystem":"PyPI","name":"oauthenticator","purl":"pkg:pypi/oauthenticator","ranges":["<15.0.0"],"fixed":["15.0.0"]}]},{"id":"PYSEC-2022-206","url":"https://osv.dev/vulnerability/PYSEC-2022-206","summary":"","modified":"2023-11-08T04:09:23.149049Z","packages":[{"ecosystem":"PyPI","name":"oauthenticator","purl":"pkg:pypi/oauthenticator","ranges":["<15.0.0"],"fixed":["15.0.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}