CVE-2026-111642 Details
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.
A vulnerability in FastapiAdmin versions through 3.0 allows low-privileged users to gain superuser privileges by exploiting a hard-coded JWT signing secret. The issue arises from the absence of authentication dependencies in certain auto-login routes, combined with a default secret key that can be used to forge tokens. Attackers can register through the unauthenticated user registration endpoint, log in, and then create a token that impersonates the superuser by manipulating the token's user_name claim.
To address this vulnerability, remove the auto-login routes or add authentication dependencies to them, ensuring that only authorized users can access these functions. Additionally, make the JWT secret key a required environment variable, eliminating the default value that can be exploited.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 16, 2026CISA-ADP
Assessed Oct 16, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-321 | Use of Hard-coded Cryptographic Key | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| FastapiAdmin | <= 3.0 |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 16, 2026 | CVE Modified | CISA-ADP |
| Oct 16, 2026 | New CVE Received | [email protected] |
Volerion