{"schemaVersion":3,"id":"CVE-2021-22866","aliases":[],"status":"published","duplicateOf":null,"title":null,"description":"A UI misrepresentation vulnerability was identified in GitHub Enterprise Server that allowed more permissions to be granted during a GitHub App's user-authorization web flow than was displayed to the user during approval. To exploit this vulnerability, an attacker would need to create a GitHub App on the instance and have a user authorize the application through the web authentication flow. All permissions being granted would properly be shown during the first authorization, but in certain circumstances, if the user revisits the authorization flow after the GitHub App has configured additional user-level permissions, those additional permissions may not be shown, leading to more permissions being granted than the user potentially intended. This vulnerability affected GitHub Enterprise Server 3.0.x prior to 3.0.7 and 2.22.x prior to 2.22.13. It was fixed in versions 3.0.7 and 2.22.13. This vulnerability was reported via the GitHub Bug Bounty program.","dates":{"published":"2021-05-14T21:10:12.000Z","modified":"2024-08-03T18:51:07.627Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":6.8,"severity":"medium","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01045,"percentile":0.63625,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.01045},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01045,"percentile":0.63625}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01045,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01045,"percentile":0.63625}]},"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-451","name":"User Interface (UI) Misrepresentation of Critical Information","description":"The user interface (UI) does not properly represent critical information to the user, allowing the information - or its source - to be obscured or spoofed. This is often a component in phishing attacks.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/451.html"},{"id":"CWE-1021","name":"Improper Restriction of Rendered UI Layers or Frames","description":"The web application does not restrict or incorrectly restricts frame objects or UI layers that belong to another application or domain.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/1021.html"}],"affected":[{"vendor":"github","product":"enterprise_server","name":"enterprise server","label":"enterprise_server","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 2.20.0, < 2.22.13","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.0.0, < 3.0.7","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.20.0, < 2.22.13 | ≥ 3.0.0, < 3.0.7","eol":null,"hubHref":"/vendor/github/enterprise_server"},{"vendor":"github","product":"github enterprise server","name":"GitHub Enterprise Server","label":"github enterprise server","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 3.0, < 3.0.7","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.22, < 2.22.13","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 3.0, < 3.0.7 | ≥ 2.22, < 2.22.13","eol":null,"hubHref":"/vendor/github/github_enterprise_server"}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://docs.github.com/en/enterprise-server%403.0/admin/release-notes#3.0.7","label":"docs.github.com/en/enterprise-server%403.0/admin/release-notes","hostname":"docs.github.com","tags":["X Refsource MISC"]},{"url":"https://docs.github.com/en/enterprise-server%402.22/admin/release-notes#2.22.13","label":"docs.github.com/en/enterprise-server%402.22/admin/release-notes","hostname":"docs.github.com","tags":["X Refsource MISC"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2021-05-14T21:10:12.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-03T18:51:07.627Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":35,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T00:06:57.290Z","stale":false,"partial":false}}