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.
Published: 2026-10-16
Score: 8.7 High
EPSS: < 1% Very Low
KEV: No
Impact: Privilege Escalation via forged JWT token
Action: Apply Patch
AI Analysis

Impact

The flaw originates from a hard‑coded JWT signing secret located in the backend configuration. Because the secret is fixed, an attacker can generate an HS256 signed token that claims to be the superuser. By registering via the unauthenticated /api/v1/system/user/register endpoint, logging in, and substituting the user_name field with the superuser value while preserving the session_id, a lower‑privileged user can effectively impersonate an administrator. This grants full control over the application, exposing confidentiality, integrity, and availability of all data and functions. The vulnerability stems from CWE-321: Use of Hard‑coded Cryptographic Key.

Affected Systems

FastapiAdmin, version 3.0 and earlier. The vulnerability is present in all releases through v3.0 of the FastapiAdmin package. Administrators deploying these versions should verify their installed package.

Risk and Exploitability

The CVSS score of 8.7 reflects a high impact and high exploitability, and the absence of an EPSS score indicates that no public exploitation data is available yet. The vulnerability can be triggered from any network host that can reach the API endpoints, which means the attack vector is network accessible. Because the flaw requires only the ability to submit an HTTP request and no specific user privileges, the likelihood of exploitation remains significant until the secret is changed or the application is updated. The vulnerability is not currently listed in the CISA KEV catalog, but its high CVSS rating and the ease of token forgery make it a serious risk.

Generated by OpenCVE AI on October 16, 2026 at 18:44 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade FastapiAdmin to a release that removes the hard‑coded JWT signing secret and implements secure key management.
  • If an immediate upgrade is not feasible, replace the hard‑coded secret with a strong, randomly generated key stored in a secure environment variable, and restart the service.
  • Revoke any existing session tokens or users that may have been logged in with forged tokens and audit the system for abnormal activity.

Generated by OpenCVE AI on October 16, 2026 at 18:44 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 16 Oct 2026 20:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Fri, 16 Oct 2026 17:45:00 +0000

Type Values Removed Values Added
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.
Title FastapiAdmin through 3.0 Hard-Coded JWT Secret Privilege Escalation
First Time appeared Fastapiadmin
Fastapiadmin fastapiadmin
Weaknesses CWE-321
CPEs cpe:2.3:a:fastapiadmin:fastapiadmin:*:*:*:*:*:*:*:*
Vendors & Products Fastapiadmin
Fastapiadmin fastapiadmin
References
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}


Subscriptions

Fastapiadmin Fastapiadmin
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-16T19:21:12.720Z

Reserved: 2026-10-16T14:31:13.728Z

Link: CVE-2026-111642

cve-icon Vulnrichment

Updated: 2026-10-16T19:21:04.010Z

cve-icon NVD

Status : Deferred

Published: 2026-10-16T18:17:44.877

Modified: 2026-10-16T20:17:21.400

Link: CVE-2026-111642

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-16T18:45:13Z

Weaknesses
  • CWE-321

    Use of Hard-coded Cryptographic Key