Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2025-68481

5.9 · MEDIUM
Published Dec 19, 2025 fastapi-users_project CWE-285 EPSS 0.26% (18th pctl)

Overview

CVE-2025-68481 is a medium-severity vulnerability affecting fastapi-users_project fastapi_users. It was published on December 19, 2025 and has a CVSS 3.1 base score of 5.9 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 5.9, rated MEDIUM. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

Technical Description

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,

Remediation

Check the references section for vendor advisories and patches from fastapi-users_project. Update fastapi_users to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
fastapi-users_project fastapi_users >= 0, < 15.0.2 Affected

Frequently Asked Questions

What is CVE-2025-68481?

CVE-2025-68481 is a medium-severity vulnerability affecting fastapi-users_project fastapi_users. It was published on December 19, 2025 and has a CVSS 3.1 base score of 5.9 (MEDIUM).

How severe is CVE-2025-68481?

This vulnerability has a CVSS 3.1 base score of 5.9, rated MEDIUM. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

How do I fix or remediate CVE-2025-68481?

Check the references section for vendor advisories and patches from fastapi-users_project. Update fastapi_users to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2025-68481?

CyberStrike's AI-powered security agents can automatically detect CVE-2025-68481 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.