@nocobase/auth
Affected
- introduced
1.9.0, fixed1.9.23(semver)
Fixed versions
1.9.23
Fix
- Fixed version
1.9.23npm install @nocobase/[email protected]
Advisory
Also known as: CVE-2025-13877
Authentication Bypass via Default JWT Secret in NocoBase docker-compose Deployments
Impact
CVE-2025-13877 is an authentication bypass vulnerability caused by insecure default JWT key usage in NocoBase Docker deployments.
Because the official one-click Docker deployment configuration historically provided a public default JWT key, attackers can forge valid JWT tokens without possessing any legitimate credentials. By constructing a token with a known userId (commonly the administrator account), an attacker can directly bypass authentication and authorization checks.
Successful exploitation allows an attacker to:
The vulnerability is remotely exploitable, requires no authentication, and public proof-of-concept exploits are available.
This issue is functionally equivalent in impact to other JWT secret exposure vulnerabilities such as CVE-2024-43441 and CVE-2025-30206.
Deployments that used the default Docker configuration without explicitly overriding the JWT secret are affected.
---
Patches
✅ The vulnerability has been fully patched through a secure JWT key management redesign.
The remediation enforces the following security guarantees:
✅ Fixed Versions:
---
Workarounds
If upgrading is not immediately possible, the following temporary mitigations must be performed to reduce risk:
APP_KEY.docker-compose.yml.env files---
References
Medium Basis: The source's own band: MODERATE
1.9.0, fixed 1.9.23 (semver)1.9.23
1.9.23npm install @nocobase/[email protected]0, fixed 1.9.0-beta.18 (semver)1.9.0-beta.18
1.9.0-beta.18npm install @nocobase/[email protected]2.0.0-alpha.1, fixed 2.0.0-alpha.52 (semver)2.0.0-alpha.52
2.0.0-alpha.52npm install @nocobase/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0