CVE-2026-111642
8.8 HIGHpublic exploit availablePublished 2026-10-16 · Updated 2026-10-16
AI risk analysis
- Summary
- FastapiAdmin up to version 3.0 uses a hard-coded JWT signing secret, enabling low-privileged users who register and authenticate to forge HS256 tokens that impersonate the superuser by embedding the superuser's username while retaining their own session ID.
- Exploitability
- Exploitation is straightforward for authenticated low-privileged users: they can register via an unauthenticated endpoint, log in, and forge a token using the known secret without requiring additional access or complex conditions.
- Blast radius
- Successful exploitation grants full superuser privileges, allowing attackers to read, modify, or delete any data and perform any administrative action within the application.
- Detection
- No reliable host or network indicator is derivable from the published description.
- Prioritized remediation
- Upgrade to FastapiAdmin version 3.0.1 or later, where the hard-coded JWT secret has been replaced with a configurable, securely generated secret.
jwt-forgeryauth-bypasshardcoded-secretwebprivilege-escalation
Analysis generated locally by garnet-coder (no data left the box). AI-assisted — verify against primary sources before acting.
NVD 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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-321
Public exploit & PoC references
References
- https://github.com/fastapiadmin/FastapiAdmin/blob/v3.0/backend/app/config/setting.py#L67
- https://github.com/fastapiadmin/FastapiAdmin/blob/v3.0/backend/app/core/dependencies.py#L72-L112
- https://hackmd.io/@hieuPenguinnn/fastapiadmin-unauthenticated-autologin-and-hardcoded-jwt-secret
- https://www.vulncheck.com/advisories/fastapiadmin-through-3.0-hard-coded-jwt-secret-privilege-escalation
- https://hackmd.io/@hieuPenguinnn/fastapiadmin-unauthenticated-autologin-and-hardcoded-jwt-secret
Data: NVD (public domain). Analysis: local $0 model. Defensive use only.