Read the docs

Hard-coded JWT secret in FastapiAdmin allows privilege escalation

Priority HIGH 73CWE-321Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
None
Attack complexity
Low
Attack requirements
None
Impact type
Security bypass
Confidentiality · integrity · availability
High · High · High
Fix status
No fix listed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-321.

Summary

FastapiAdmin through 3.0 contains a hard-coded JWT signing secret, which is a case of use of a hard-coded cryptographic key (CWE-321). An unauthenticated attacker can register an account, then forge tokens that impersonate the superuser and gain superuser privileges.

Written with Claude Haiku 5.5 from the sources below · 2026-10-28

Description from the CNA

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.0036 29th percentileScored 2026-11-07
Fix No fix listed No fixed version in the sources yet

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
fastapiadminFastapiAdminup to 3.0—No fix listedCNA
  • FastapiAdmin Vendorfastapiadmin Affected up to 3.0 Fixed in — No fix listed CNA

Remediation

The sources list no fixed version for FastapiAdmin.

Written with Claude Haiku 5.5 from the sources below · 2026-10-28

Timeline

  1. 2026-10-16 Threatist record created from CVE-2026-111642
  2. 2026-10-16 Alias added: GHSA-p7cm-h8w6-p4cm
  3. 2026-10-18 CISA SSVC decision points changed
  4. 2026-10-18 Priority changed: MEDIUM → HIGH

References

  • TI-2026-02567 FastApiAdmin Custom Documentation Endpoint init_app.py reset_api_docs information disclosure CVSS 4.0MEDIUM 6.9
  • TI-2026-02571 FastApiAdmin Scheduled Task API controller.py user_avatar_upload_controller unrestricted upload CVSS 4.0MEDIUM 5.3
  • TI-2026-02570 FastApiAdmin Scheduled Task API controller.py upload_file_controller unrestricted upload CVSS 4.0MEDIUM 5.3
  • TI-2026-02569 FastApiAdmin Scheduled Task API controller.py upload_controller unrestricted upload CVSS 4.0MEDIUM 5.3
  • TI-2026-02568 FastApiAdmin Download Endpoint controller.py download_controller information disclosure CVSS 4.0MEDIUM 5.3
  • TI-2026-75427 Authentication bypass in FastapiAdmin via auto-login endpoints CVSS 4.0CRITICAL 9.3

Sources