Home / fastapi-users / fastapi-users / CVE-2025-68481
CVE-2025-68481: is it exploited, and which versions of fastapi-users are affected and fixed?
CVE-2025-68481 is an improper authorization vulnerability in fastapi-users. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 11:08 UTC). Affected: fastapi-users before 15.0.2 (GitHub advisory GHSA-5j53-63w8-8625). Fixed in 15.0.2 (GitHub advisory GHSA-5j53-63w8-8625). Severity: Medium (5.9, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 11:08 UTC, CVE record November 19, 2026, 07:09 UTC and NVD November 19, 2026, 07:14 UTC.
What is CVE-2025-68481?
FastAPI Users Vulnerable to 1-click Account Takeover in Apps Using FastAPI SSO
FastAPI Users allows users to quickly add a registration and authentication system to their FastAPI project. Prior to version 15.0.2, the OAuth login state tokens are completely stateless and carry no per-request entropy or any data that could link them to the session that initiated the OAuth flow. `generate_state_token()` is always called with an empty `state_data` dict, so the resulting JWT only contains the fixed audience claim plus an expiration timestamp. On callback, the library merely checks that the JWT verifies under `state_secret` and is unexpired; there is no attempt to match the state value to the browser that initiated the OAuth request, no correlation cookie, and no server-side cache. Any attacker can hit `/authorize`, capture the server-generated state, finish the upstream OAuth flow with their own provider account, and then trick a victim into loading `.../callback?code=<attacker_code>&state=<attacker_state>`. Because the state JWT is valid for any client for \~1 hour, the victim’s browser will complete the flow. This leads to login CSRF. Depending on the app’s logic, the login CSRF can lead to an account takeover of the victim account or to the victim user getting logged in to the attacker's account. Version 15.0.2 contains a patch for the issue.
From the CVE record by GitHub_M, last updated December 19, 2025, 20:40 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| fastapi-users | fastapi-users | < 15.0.2 |
As the CVE record by GitHub_M states it, last updated December 19, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| PyPI | fastapi-users | < 15.0.2 | 15.0.2 | GHSA-5j53-63w8-8625 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated December 20, 2025. Summary: FastAPI Users Vulnerable to 1-click Account Takeover in Apps Using FastAPI SSO.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| fastapi-users project | fastapi users | before 15.0.2 | application |
NVD analysis (status Analyzed), last modified October 13, 2026, 11:10 UTC.
How severe is CVE-2025-68481?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 5.9 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N | GitHub_M |
| High 8.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2025-68481 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: no; technical impact: partial (CISA ADP, December 19, 2025)
- EPSS
- 0.27% probability of exploitation activity in the next 30 days, percentile 21.3 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
Where are the vendor advisories and references?
- https://github.com/fastapi-users/fastapi-users/security/advisories/GHSA-5j53-63w8-8625 x_refsource_CONFIRM
- https://github.com/fastapi-users/fastapi-users/commit/7cf413cd766b9cb0ab323ce424ddab2c0d235932 x_refsource_MISC
- https://github.com/fastapi-users/fastapi-users/blob/bcee8c9b884de31decb5d799aead3974a0b5b158/fastapi_users/router/oauth.py#L111 x_refsource_MISC
- https://github.com/fastapi-users/fastapi-users/blob/bcee8c9b884de31decb5d799aead3974a0b5b158/fastapi_users/router/oauth.py#L57 x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- December 18, 2025
- Published
- December 19, 2025, 20:14 UTC
- CVE record updated
- December 19, 2025, 20:40 UTC by GitHub_M
- NVD
- Analyzed, last modified October 13, 2026, 11:10 UTC
- Last checked
- CVE list November 19, 2026, 07:09 UTC; NVD November 19, 2026, 07:14 UTC; KEV December 3, 2026, 11:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
Questions about CVE-2025-68481
Is CVE-2025-68481 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 11:08 UTC. FIRST's EPSS gives it a 0.27% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of fastapi-users are affected by CVE-2025-68481?
fastapi-users before 15.0.2, per the GitHub advisory GHSA-5j53-63w8-8625. The tables above give every range the sources list.
Which version fixes CVE-2025-68481?
15.0.2, per the GitHub advisory GHSA-5j53-63w8-8625. Check the vendor's advisory before you rely on it.
How severe is CVE-2025-68481?
Medium (5.9, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2025-68481?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.