CVE-2026-61737

ng-antd-admin: Hardcoded JWT Secret allows Authentication Bypass in ng-antd-admin

Published Oct 30, 2026 CVSS 3.1 · 9.8 Critical EPSS < 1% KEV · Not listed
Description
ng-antd-admin is an Angular and NestJS administration system template. Prior to 22.0, a hardcoded default `JWT` secret permits token forgery when a deployment has not replaced the default secret, without a startup warning. An attacker can bypass authentication and authorization, impersonate any user including administrators, and access protected API endpoints, leading to account takeover, data leakage and unauthorized operations. Version 22.0 rejects the shipped secret in production but permits it with a warning in non-production environments.

Analysis

AI-generated

Technical impact

The vulnerability arises from a hardcoded default JWT secret embedded in ng-antd-admin prior to version 22.0. An attacker can forge JWT tokens by using this known secret, thereby bypassing authentication and achieving full privilege escalation. The direct consequence is that any user, including administrators, can be impersonated, leading to account takeover, data leakage, and unauthorized operations on protected APIs. This flaw is marked as CWE‑321, representing insecure cryptographic key management.

Affected Systems

Affected systems are deployments of the ng‑antd-admin Angular + NestJS administration template that have not overridden the default JWT secret. The security advisory states that all releases before v22.0 contain the hardcoded key. The 22.0 release rejects the shipped secret in production but still permits it in non‑production environments, producing a warning only. Therefore, any installation of an earlier version or a 22.0 build with default secret enabled in production remains vulnerable.

Risk and Exploitability

The CVSS score of 9.8 reflects the high severity of this flaw. Exploitation is trivial for anyone who can provide a forged JWT token to the application, so the attack vector is effectively remote network. The EPSS is not available, and the vulnerability is not listed in CISA KEV. An attacker does not need privileged access to the server; by simply crafting a token with the hardcoded secret and using it against any authenticated endpoint, full administrative control can be achieved. As a result, the risk is high and immediate action is recommended.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade ng‑antd‑admin to version 22.0 or later, which rejects the default secret in production
  • If upgrading immediately is not possible, configure a unique, strong JWT secret in the environment and disable the default secret in production
  • For non‑production environments where the default secret is still permitted with a warning, override the secret as early as possible to reduce risk
  • As a temporary measure, remove or change the hardcoded secret in older code, but plan a full upgrade soon

Generated by OpenCVE AI on October 30, 2026 at 15:53 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Huajian123
Huajian123 ng-antd-admin
Vendors & Products Huajian123
Huajian123 ng-antd-admin
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description ng-antd-admin is an Angular and NestJS administration system template. Prior to 22.0, a hardcoded default `JWT` secret permits token forgery when a deployment has not replaced the default secret, without a startup warning. An attacker can bypass authentication and authorization, impersonate any user including administrators, and access protected API endpoints, leading to account takeover, data leakage and unauthorized operations. Version 22.0 rejects the shipped secret in production but permits it with a warning in non-production environments.
Title ng-antd-admin: Hardcoded JWT Secret allows Authentication Bypass in ng-antd-admin
Weaknesses CWE-321
References
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

Weaknesses
  • CWE-321

    Use of Hard-coded Cryptographic Key

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 30, 2026, 3:51 PM
Reserved
Jul 10, 2026, 6:59 PM
Status
Deferred
Published
Oct 30, 2026, 3:16 PM
Modified
Oct 30, 2026, 7:39 PM