Vulnerability · Published Oct 16, 2026 · Assigned by VulnCheck
CVE-2026-111642FastapiAdmin through 3.0 Hard-Coded JWT Secret Privilege Escalation
High 8.8
In plain English
A high-severity security flaw in FastapiAdmin from fastapiadmin. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 30% of all known vulnerabilities).
Official description
FastapiAdmin through 3.0 contains a hard-coded JWT signing secret in backend/app/config/setting.py that allows low-privileged users to forge tokens impersonating the superuser. Attackers can register via the unauthenticated /api/v1/system/user/register endpoint, log in, and forge an HS256 token keeping their session_id but naming the superuser in user_name to gain superuser privileges.
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| fastapiadmin | FastapiAdmin | 0 – through 3.0 |
Weakness: CWE-321 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
References
- https://hackmd.io/@hieuPenguinnn/fastapiadmin-unauthenticated-autologin-and-hardcoded-jwt-secret third-party-advisory
- https://github.com/fastapiadmin/FastapiAdmin/blob/v3.0/backend/app/config/setting.py#L67 technical-description
- https://github.com/fastapiadmin/FastapiAdmin/blob/v3.0/backend/app/core/dependencies.py#L72-L112 technical-description
- VulnCheck Advisory: FastapiAdmin through 3.0 Hard-Coded JWT Secret Privilege Escalation third-party-advisory