# CVE-2021-29437: Account compromise by man-in-the-middle attack

- Severity: High 8.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.89%, higher than 57% of CVEs (2026-11-30)
- Published: 2021-04-13T18:25:20.000Z
- Modified: 2026-06-17T03:47:38.407Z
- Weaknesses: CWE-863
- Assigned by: GitHub_M

## Description

ScratchOAuth2 is an Oauth implementation for Scratch. Any ScratchOAuth2-related data normally accessible and modifiable by a user can be read and modified by a third party. 1. Scratch user visits 3rd party site. 2. 3rd party site asks user for Scratch username. 3. 3rd party site pretends to be user and gets login code from ScratchOAuth2. 4. 3rd party site gives code to user and instructs them to post it on their profile. 5. User posts code on their profile, not knowing it is a ScratchOAuth2 login code. 6. 3rd party site completes login with ScratchOAuth2. 7. 3rd party site has full access to anything the user could do if they directly logged in. See referenced GitHub security advisory for patch notes and workarounds.

(As written by CVE List.)

## Affected

- ScratchVerifier ScratchOAuth2: < 9220c2a
- scratchoauth2_project scratchoauth2: before 2021-04-13

## Every score

- GitHub_M: CVSS:3.1 8.0 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N`
- NVD: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N`
- NVD: CVSS:2.0 4.0 Medium `AV:N/AC:H/Au:N/C:P/I:P/A:N`

## References

- <https://github.com/ScratchVerifier/ScratchOAuth2/security/advisories/GHSA-gvpg-23fh-8g75> (patch, third-party-advisory)
- <https://github.com/ScratchVerifier/ScratchOAuth2/commit/9220c2a77eda3df37a84486ad722f1ad0985d8e7> (patch)

## Sources

- CVE List: [CVE-2021-29437](https://www.cve.org/CVERecord?id=CVE-2021-29437), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-29437](https://nvd.nist.gov/vuln/detail/CVE-2021-29437), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-29437 · Whole record: https://cve.day/CVE-2021-29437.json · Rebuilt by cve.day 2026-11-25T22:58:00.801Z
