---
id: CVE-2026-111642
title: FastapiAdmin through 3.0 Hard-Coded JWT Secret Privilege Escalation
summary: >-
  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/syste…
severity: high
cvss: 8.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
cvssSource: cna
cwe:
  - CWE-321
vendor: fastapiadmin
product: FastapiAdmin
affected:
  - FastapiAdmin <= 3.0
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-10-16T19:20:27.537959Z'
exploitAvailable: true
published: '2026-10-16'
updated: '2026-10-16'
sourceUpdated: '2026-10-16T19:21:12.720Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-111642'
references:
  - url: >-
      https://hackmd.io/@hieuPenguinnn/fastapiadmin-unauthenticated-autologin-and-hardcoded-jwt-secret
  - url: >-
      https://github.com/fastapiadmin/FastapiAdmin/blob/v3.0/backend/app/config/setting.py#L67
  - url: >-
      https://github.com/fastapiadmin/FastapiAdmin/blob/v3.0/backend/app/core/dependencies.py#L72-L112
  - url: >-
      https://www.vulncheck.com/advisories/fastapiadmin-through-3.0-hard-coded-jwt-secret-privilege-escalation
    label: >-
      VulnCheck Advisory: FastapiAdmin through 3.0 Hard-Coded JWT Secret
      Privilege Escalation
tags:
  - cve.org
  - exploit-available
ingestedAt: '2026-10-16T18:43:08.681Z'
---

## Overview

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

- `FastapiAdmin <= 3.0`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
