GHSA-q926-c743-49qj is a none-severity (CVSS 0) vulnerability in github.com/centrifugal/centrifugo/v6. A fix is available for github.com/centrifugal/centrifugo/v6 — see the affected versions and patch details below.
Centrifugo's InsecureSkipTokenSignatureVerify flag silently disables JWT verification with no warning
Real-World Exposure
github.com/centrifugal/centrifugo/v6🐹github.com/centrifugal/centrifugo🐹github.com/centrifugal/centrifugo/v3🐹github.com/centrifugal/centrifugo/v4🐹github.com/centrifugal/centrifugo/v5Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Go packages — download data is not available via public APIs for these ecosystems.
Description
Summary
Centrifugo supports a configuration flag insecure_skip_token_signature_verify that completely disables JWT signature verification. When enabled, Centrifugo accepts any JWT token regardless of signature validity — including tokens signed with wrong keys, random signatures, or no signature at all. Critically, no warning is logged at startup or runtime when this flag is active, making it invisible to operators and security auditors.
Note: This vulnerability requires the operator to have explicitly set insecure_skip_token_signature_verify=true. The core issue is the absence of any warning when this flag is active, making accidental production exposure undetectable.
Details
The flag is defined in internal/configtypes/types.go:
InsecureSkipTokenSignatureVerify bool `mapstructure:"insecure_skip_token_signature_verify"`
It is passed directly to token verification in internal/client/handler.go:
token, err := h.tokenVerifier.VerifyConnectToken(e.Token,
cfg.Client.InsecureSkipTokenSignatureVerify)
In token_verifier_jwt.go, when skipVerify=true the entire signature block is bypassed:
if !skipVerify {
// This block never executes
err = verifier.verifySignature(token)
}
The flag is configurable via multiple vectors making accidental exposure likely:
- Config file:
insecure_skip_token_signature_verify: true - Environment variable:
CENTRIFUGO_INSECURE_SKIP_TOKEN_SIGNATURE_VERIFY=true - YAML, TOML config formats
Despite hmac_secret_key being configured, startup logs show "enabled JWT verifiers" — falsely implying verification is active.
PoC
Config with legitimate HMAC key but skip flag enabled:
{
"client": {
"insecure_skip_token_signature_verify": true,
"token": { "hmac_secret_key": "legitimate-production-secret-key" }
}
}
Token signed with completely wrong key is fully accepted:
VULNERABILITY CONFIRMED!
Connected as user: {'client': '899dec73...', 'version': '0.0.0 OSS'}
No security warning emitted when insecure_skip_token_signature_verify=true:
Token signed with wrong key accepted, authentication bypass confirmed:
skipVerify flag propagated from config to all token verification calls:
Impact
- Any unauthenticated user can connect as any arbitrary user ID
- Complete authentication bypass — attacker sets any
subclaim value - No indicators in logs that the server is operating insecurely
- Easily triggered accidentally via environment variable injection in containerized deployments (e.g. misconfigured Kubernetes secrets)
- Affects all connection types: WebSocket, HTTP-streaming, SSE, GRPC
Suggested Fix
- Emit a loud startup warning when flag is enabled:
if cfg.Client.InsecureSkipTokenSignatureVerify {
log.Warn().Msg("SECURITY WARNING: JWT signature verification is " +
"DISABLED via insecure_skip_token_signature_verify - " +
"DO NOT use in production!")
}
- Consider requiring an additional explicit
insecure_mode: trueflag to prevent accidental single-flag misconfiguration - Log a warning on every accepted token when skip is active
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐹Go | github.com/centrifugal/centrifugo/v6 | all versions | 6.7.0go get github.com/centrifugal/centrifugo/v6@v6.7.0 |
| 🐹Go | github.com/centrifugal/centrifugo | all versions | No fix |
| 🐹Go | github.com/centrifugal/centrifugo/v3 | all versions | No fix |
| 🐹Go | github.com/centrifugal/centrifugo/v4 | all versions | No fix |
| 🐹Go | github.com/centrifugal/centrifugo/v5 | all versions | No fix |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for github.com/centrifugal/centrifugo/v6, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update github.com/centrifugal/centrifugo/v6 to 6.7.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-q926-c743-49qj is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
How O3 protects you
O3 Security's impact-aware SCA analyses which vulnerable code paths your application actually calls, so a match like GHSA-q926-c743-49qj can be triaged on real exposure rather than presence alone.
Tailored to GHSA-q926-c743-49qj. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.
Frequently Asked Questions
Is GHSA-q926-c743-49qj in your dependencies?
O3 Security finds GHSA-q926-c743-49qj across Go dependencies, including transitive ones, and its impact-aware SCA ranks findings by whether your code actually calls the vulnerable path.