Description
OpenDeepWiki through 2.0.6 contains a hard-coded JWT signing key vulnerability that allows unauthenticated attackers to forge administrator tokens using the publicly known Jwt:SecretKey in appsettings.json. Attackers can mint HS256 bearer tokens with an Admin role claim to access /api/admin endpoints and control users, roles, repositories, settings, and API keys.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| AIDotNet | OpenDeepWiki | ≤ 2.0.6 | — |
References
- https://github.com/AIDotNet/OpenDeepWiki/commit/1bf0f4b5ef8d972ca640e5df145b5813a9492544 patch
- https://github.com/AIDotNet/OpenDeepWiki/issues/403 issue-tracking
- https://github.com/AIDotNet/OpenDeepWiki/blob/v2.0.6/src/OpenDeepWiki/appsettings.json#L27 technical-description
- https://github.com/AIDotNet/OpenDeepWiki/blob/v2.0.6/src/OpenDeepWiki/Program.cs#L92 technical-description
- https://hackmd.io/@hieuPenguinnn/opendeepwiki-hardcoded-jwt-secret-admin-forgery third-party-advisory
- https://github.com/AIDotNet/OpenDeepWiki product
- VulnCheck Advisory: OpenDeepWiki through 2.0.6 Hard-coded JWT Signing Key Admin Token Forgery third-party-advisory