Skip to content
Heist/ feed
Back to feed
High

FastapiAdmin through 3.0 Hard-Coded JWT Secret Privilege Escalation

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-111642
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 20:24 UTC · Revision 1

Source evidence

FastapiAdmin through 3.0 Hard-Coded JWT Secret Privilege Escalation

core-osv · Original source

Published 16 Oct 2026, 17:39 UTC

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.

osv:CVE-2026-111642
Complete source record
{
  "id": "1ac3bb5a257aea7b0cdafdce425c69b696af34538bbbdd54156f4b00ecd0bba2",
  "url": "https://osv.dev/vulnerability/CVE-2026-111642",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "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/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.",
    "evidence": "osv:CVE-2026-111642",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-111642",
      "aliases": [
        "CVE-2026-111642"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "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"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/fastapiadmin/fastapiadmin",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "362f005924700157b390b1224142b3cfa276f426"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "3.0"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  },
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "3.0"
                      }
                    ],
                    "source": "DESCRIPTION"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v3.0",
            "V2.0",
            "V1.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-111642.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:23.390319028Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/111xxx/CVE-2026-111642.json",
        "https://hackmd.io/@hieuPenguinnn/fastapiadmin-unauthenticated-autologin-and-hardcoded-jwt-secret",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-111642",
        "https://www.vulncheck.com/advisories/fastapiadmin-through-3.0-hard-coded-jwt-secret-privilege-escalation",
        "https://github.com/fastapiadmin/FastapiAdmin",
        "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"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-321"
        ],
        "cna_assigner": "VulnCheck",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/111xxx/CVE-2026-111642.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-111642",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 489820,
  "published_at": "2026-10-16T17:39:12.365+00:00"
}