CVE-2026-117564
9.8 CRITICALpublic exploit availablePublished 2026-10-27 · Updated 2026-10-27
AI risk analysis
- Summary
- A hardcoded JWT secret in .env.production allows unauthenticated attackers to forge valid administrator tokens, bypassing authentication entirely.
- Exploitability
- Trivial to exploit; requires only knowledge of the exposed secret and ability to craft a JWT signed with it.
- Blast radius
- Full system compromise is possible: attackers can impersonate any user—including admins—and gain unrestricted access to all administrative functions.
- Detection
- Look for JWT tokens signed with the known leaked secret in authentication headers; detect anomalous admin-role claims (e.g., role: 'admin') issued by non-admin endpoints or from IPs outside normal access patterns.
- Prioritized remediation
- Upgrade to nest-admin version 1.0.1 or later, which removes the hardcoded secret and enforces secure secret management.
Analysis generated locally by garnet-coder (no data left the box). AI-assisted — verify against primary sources before acting.
NVD description
nest-admin before 1.0.1 contains an authentication bypass vulnerability that allows unauthenticated attackers to forge administrator tokens by using a hardcoded JWT_SECRET committed in .env.production. Attackers can sign tokens with the known secret that JwtStrategy and RbacGuard trust, impersonating any user ID or claiming the admin role for full administrative access.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-321
Public exploit & PoC references
- https://github.com/buqiyuan/nest-admin
- https://github.com/buqiyuan/nest-admin/blob/2eeccc4cb699d1aedbe04b4437a9d095cde02c74/.env.production#L5
- https://github.com/buqiyuan/nest-admin/commit/f2cec8cb776cbf113115b33164dac69a46d24097
- https://github.com/buqiyuan/nest-admin/issues/92
- https://github.com/buqiyuan/nest-admin/issues/93
All references
- https://github.com/buqiyuan/nest-admin
- https://github.com/buqiyuan/nest-admin/blob/2eeccc4cb699d1aedbe04b4437a9d095cde02c74/.env.production#L5
- https://github.com/buqiyuan/nest-admin/commit/f2cec8cb776cbf113115b33164dac69a46d24097
- https://github.com/buqiyuan/nest-admin/issues/92
- https://github.com/buqiyuan/nest-admin/issues/93
- https://www.vulncheck.com/advisories/nest-admin-before-1.0.1-authentication-bypass-via-hardcoded-jwt-secret
Source data: NVD (nvd.nist.gov), public domain. Exploit-DB.ai adds local AI analysis for defensive use only.
Related CVEs
- HIGHCVE-2026-111642PoC
- CRITICALCVE-2026-110612PoC
- HIGHCVE-2026-111633PoC
- CRITICALCVE-2026-111690PoC
- HIGHCVE-2026-100871PoC
- HIGHCVE-2026-101062PoC
- CRITICALCVE-2026-109145
- CRITICALCVE-2026-109566PoC
Related by shared AI tags and CWE weakness class. Browse the full archive.