CVE-2026-145558: WuKongIM 2.0.8-20241129 through 2.2.5-20260422 Manager API Authentication Bypass via Default JWT Secret
WuKongIM 2.0.8-20241129 through 2.2.5-20260422 contains an authentication bypass vulnerability that allows unauthenticated attackers to access manager APIs using a hardcoded default JWT secret. Attackers can forge HS256 tokens signed with secretwukongim to read message history, enumerate users and connections, and kick connections or migrate slots and channels.
Affected Software
Event History
Frequently Asked Questions
Who can exploit this issue?
Any unauthenticated attacker who can reach the WuKongIM Manager API can forge an HS256 JWT using the hardcoded secret "secret_wukongim" and use it to access manager functions.
What access can a forged token provide?
A forged token can be used to read message history, enumerate users and connections, kick connections, and migrate slots and channels. This exposes message confidentiality and allows limited integrity and availability impact.
Are deployments using the default JWT secret affected?
Yes. The issue is specifically caused by the hardcoded default JWT secret, so deployments that retain that secret are affected within the listed WuKongIM versions.
What can be done if patching cannot happen immediately?
Replace the default JWT secret and restrict network access to the Manager API so untrusted users cannot reach it. Any existing tokens signed with the default secret should no longer be trusted after the secret is changed.