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.
✅ The vulnerability has been fully patched through a secure JWT key management redesign.
The remediation enforces the following security guarantees:
✅ Fixed Versions:
- NocoBase ≥ 1.9.23
- NocoBase ≥ 1.9.0-beta.18
- NocoBase ≥ 2.0.0-alpha.52
If upgrading is not immediately possible, the following temporary mitigations must be performed to reduce risk:
APP_KEY.docker-compose.yml.env filesPublic Exploit Proof:
https://gist.github.com/H2u8s/f3ede60d7ecfe598ae452aa5a8fbb90d
Affected Default Docker Configurations:
https://github.com/nocobase/nocobase/blob/main/docker/app-sqlite/docker-compose.yml#L11
Official Deployment Documentation:
| Score | Percentile |
|---|---|
| 0.07% | 22.35% |
| Base score | Version | Severity | Vector |
|---|---|---|---|
| 6.3 | 4.0 | — |
|
| Type | Value |
|---|---|
| GHSA | GHSA-mv7p-34fv-4874 ↗ |
| CVE | CVE-2025-13877 ↗ |
Vulnerable version ranges and first patched releases as published by GitHub.
| Ecosystem | Package | Vulnerable range | First patched | Vulnerable functions |
|---|---|---|---|---|
| npm | @nocobase/auth | >= 1.9.0, <= 1.9.21 | 1.9.23 | — |
| npm | @nocobase/auth | <= 1.9.0-beta.17 | 1.9.0-beta.18 | — |
| npm | @nocobase/auth | >= 2.0.0-alpha.1, <= 2.0.0-alpha.51 | 2.0.0-alpha.52 | — |