# CVE-2026-111642: FastapiAdmin through 3.0 Hard-Coded JWT Secret Privilege Escalation

- Severity: High 8.7 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.36%, higher than 31% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-16T17:39:12.365Z
- Modified: 2026-10-16T20:17:21.400Z
- Weaknesses: CWE-321
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- fastapiadmin FastapiAdmin: up to 3.0

## Every score

- VulnCheck: CVSS:4.0 8.7 High `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`
- VulnCheck: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://hackmd.io/@hieuPenguinnn/fastapiadmin-unauthenticated-autologin-and-hardcoded-jwt-secret> (exploit, third-party-advisory)
- <https://github.com/fastapiadmin/FastapiAdmin/blob/v3.0/backend/app/config/setting.py#L67> (technical-description)
- <https://github.com/fastapiadmin/FastapiAdmin/blob/v3.0/backend/app/core/dependencies.py#L72-L112> (technical-description)
- <https://www.vulncheck.com/advisories/fastapiadmin-through-3.0-hard-coded-jwt-secret-privilege-escalation> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-111642](https://www.cve.org/CVERecord?id=CVE-2026-111642), CVE Terms of Use, modified 2026-10-16
- NVD: [CVE-2026-111642](https://nvd.nist.gov/vuln/detail/CVE-2026-111642), Public domain, modified 2026-10-16

---

Page: https://cve.day/CVE-2026-111642 · Whole record: https://cve.day/CVE-2026-111642.json · Rebuilt by cve.day 2026-11-25T22:59:45.085Z
