Skip to main content
Menu
CVEs

WuKongIM auth bypass in manager API via default JWT secret

Affects WuKongIM 2.0.8-20241129 through 2.2.5-20260422 when the default jwt.secret is left unset. Fixed in WuKongIM v3.0.0+ and v3.1.0+.

CVE-2026-145558Published December 5, 2026, updated

8.8HighCNA
Exploited
No known exploitation
Fix
Fixed in v3.0.0+, v3.1.0+
Who is exposed
Default setups

Summary

Written by a model

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 secret_wukongim to read message history, enumerate users and connections, and kick connections or migrate slots and channels.

Who should check

Teams running WuKongIM v2 releases (2.0.8 through 2.2.5-20260422) with default configuration and a reachable manager port 5300.

“earlier releases that ship the same default”

hackmd.io

What to do

  1. Check every install: default setups are affected.

  2. Upgrade to a fixed version: v3.0.0+, v3.1.0+.

  3. Workaround: Explicitly configure a unique, high-entropy jwt.secret, restrict Manager port network access to trusted networks, and restart the node.

Check your systems with an agent

Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.

Check whether my systems are affected by CVE-2026-145558 (WuKongIM 2.0.8-20241129 through 2.2.5-20260422 Manager API Authentication Bypass via Default JWT Secret), using the cve.now data below.

Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.

What cve.now has for CVE-2026-145558 (entry last updated 2026-12-05):
Affected:
- Go package github.com/WuKongIM/WuKongIM: from 2.0.8-20241129, through 2.2.5-20260422
Fixed versions: v3.0.0+, v3.1.0+.
Conditions (all must be true for the bug to be hit):
- Affects WuKongIM v2 releases shipping the hardcoded default JWT secret, up to v2.2.5-20260422. (source: https://hackmd.io/@hieund/cve-2026-145558-wukongim-default-jwt-secret-manager-api-auth-bypass)
- The jwt.secret setting is left unset, so the default secret secret_wukongim is used. (source: https://hackmd.io/@hieund/cve-2026-145558-wukongim-default-jwt-secret-manager-api-auth-bypass)
- The manager server is enabled and bound to port 5300 by default. (source: https://hackmd.io/@hieund/cve-2026-145558-wukongim-default-jwt-secret-manager-api-auth-bypass)
Setup: the bug is reachable in a default setup; no special feature or setting is needed.
Attacker needs: network access, no login, no user action.
Workaround: Explicitly configure a unique, high-entropy jwt.secret, restrict Manager port network access to trusted networks, and restart the node. (source: https://github.com/WuKongIM/WuKongIM/issues/1051)
CISA KEV: CVE-2026-145558 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-145558 only. If you also check another CVE, look up its own KEV status; never assume it from this one.

How to check:
- Packages (Go): find every lockfile in each project and run the stack.check operation of the cve.now MCP server (execute) on each one. Compare the resolved versions, not the ranges a manifest declares, with the affected versions above. Include transitive dependencies.

Verify against the linked advisories before concluding, and cite the date you read each one:
- https://github.com/WuKongIM/WuKongIM/pull/1167
- https://github.com/WuKongIM/WuKongIM/issues/1051
- https://github.com/WuKongIM/WuKongIM/blob/v2.2.5-20260422/internal/options/options.go#L705-L714
- https://github.com/WuKongIM/WuKongIM/blob/v2.2.5-20260422/internal/api/server_manager.go#L157-L189
- https://hackmd.io/@hieund/wukongim-default-jwt-secret-manager-api-auth-bypass
- https://www.vulncheck.com/advisories/wukongim-2.0.8-20241129-through-2.2.5-20260422-manager-api-authentication-bypass-via-default-jwt-secret
- https://hackmd.io/@hieund/cve-2026-145558-wukongim-default-jwt-secret-manager-api-auth-bypass
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.

Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.

Entry: https://cve.now/CVE-2026-145558
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-145558"}.

Affected versions

cve.now Index

41Pof 100 · provisional · methodology v3
  • Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
  • Exposure22/25Default setups, reachable over the network without a login
  • Reach10/20Affects Go packages
  • Severity8.8/10CVSS 8.8
  • No patch0/5No signal

What would change the score

  • Would score about 81 if added to CISA KEV
  • Would score about 76 if CISA's SSVC rates exploitation active

Timeline

  1. CVE published
  2. First seen by cve.now

Evidence 8

Questions about CVE-2026-145558

Is CVE-2026-145558 being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.

Source: cve.now feed data

What does this mean?

The Manager API accepts JWT tokens signed with a hardcoded default secret, so authentication can be bypassed. Successful use exposes other users' message history and account inventory, and allows changing cluster slot and channel placement and kicking connections.

Source: hackmd.io, github.com

Which versions are affected by CVE-2026-145558?

github.com/WuKongIM/WuKongIM (Go): from 2.0.8-20241129 through 2.2.5-20260422.

Source: cve.now feed data

Am I affected, and how do I check?

Affected are WuKongIM v2 releases from 2.0.8-20241129 through 2.2.5-20260422 that leave the jwt.secret setting unset, so the default secret secret_wukongim is used. The Manager server is enabled and listens on port 5300 by default. To check, review whether jwt.secret is explicitly set in the configuration and whether port 5300 is reachable from untrusted networks.

Source: hackmd.io, github.com

How do I fix CVE-2026-145558?

Upgrade to WuKongIM v3.0.0+ or v3.1.0+. If upgrading is not possible yet, explicitly configure a unique, high-entropy jwt.secret, restrict Manager port access to trusted networks, and restart the node.

Source: hackmd.io, github.com

No corrections so far. Something wrong on this page? Report an error.