{"schemaVersion":3,"id":"CVE-2022-31027","aliases":["GHSA-r7v4-jwx9-wx43","PYSEC-2022-206"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2022-06-06T21:15:12.000Z","modified":"2025-04-23T18:18:41.917Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.5,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":4.2,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Pypi","score":4.2,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N","exploitability":4.1,"impact":4.2,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":4,"severity":"medium","vector":"AV:N/AC:L/Au:S/C:P/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00468,"percentile":0.39196,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.012000000000000031,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00456},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00456,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00456,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00456,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00456,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00456,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00456,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00456,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00456,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00456,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00456,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00456,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00456,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00456,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00456,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00456,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00456,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00456,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00456,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00456,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00456,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00456,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00468,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00468,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00468,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00468,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00468,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00468,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00468,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00468,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00468,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00468,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00468,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00468,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00468,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00468,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00468,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00468,"percentile":0.39196}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00456,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00456,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00456,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00456,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00456,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00456,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00456,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00456,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00456,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00456,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00456,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00456,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00456,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00456,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00456,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00468,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00468,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00468,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00468,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00468,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00468,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00468,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00468,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00468,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00468,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00468,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00468,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00468,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00468,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00468,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00468,"percentile":0.39196}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-639","name":"Authorization Bypass Through User-Controlled Key","description":"The system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/639.html"}],"affected":[{"vendor":"jupyter","product":"oauthenticator","name":"oauthenticator","label":"oauthenticator","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 15.0.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 15.0.0","eol":null,"hubHref":"/vendor/jupyter/oauthenticator"},{"vendor":"jupyterhub","product":"oauthenticator","name":"oauthenticator","label":"oauthenticator","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 15.0.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 15.0.0","eol":null,"hubHref":"/vendor/jupyterhub/oauthenticator"},{"vendor":"PyPI","product":"oauthenticator","name":"oauthenticator","label":"oauthenticator","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/oauthenticator","purlType":"pypi","versions":[{"text":"< 15.0.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 15.0.0","eol":null,"hubHref":null}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/jupyterhub/oauthenticator/security/advisories/GHSA-r7v4-jwx9-wx43","label":"github.com/jupyterhub/oauthenticator/security/advisories/GHSA-r7v4-jwx9-wx43","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Advisory","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31027","label":"nvd.nist.gov/vuln/detail/CVE-2022-31027","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/jupyterhub/oauthenticator/commit/5cd2d1816f90dc5c946e6e38fd2d0ba535624c5c","label":"github.com/jupyterhub/oauthenticator/commit/5cd2d1816f90dc5c946e6e38fd2d0ba535624c5c","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/jupyterhub/oauthenticator","label":"github.com/jupyterhub/oauthenticator","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/oauthenticator/PYSEC-2022-206.yaml","label":"github.com/pypa/advisory-database/tree/main/vulns/oauthenticator/PYSEC-2022-206.yaml","hostname":"github.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2022-06-06T21:15:12.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-04-23T18:18:41.917Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":26,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T23:05:37.979Z","stale":false,"partial":false}}