Centrifugo's InsecureSkipTokenSignatureVerify flag silently disables JWT verification with no warning
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from GitHub. Impact type from CWE-285.
Summary
### 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: ```go 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: ```json { "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 `sub` claim 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 1. Emit a loud startup warning when flag is enabled: ```go 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!") } ``` 2. Consider requiring an additional explicit `insecure_mode: true` flag to prevent accidental single-flag misconfiguration 3. Log a warning on every accepted token when skip is active
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | github.com/centrifugal/centrifugo/v6 (Go) | before 6.7.0 | 6.7.0 | Patch available | GHSA-q926-c743-49qj |
| — | github.com/centrifugal/centrifugo (Go) | up to 2.4.0 | — | No fix listed | GHSA-q926-c743-49qj |
| — | github.com/centrifugal/centrifugo/v3 (Go) | up to 3.2.3 | — | No fix listed | GHSA-q926-c743-49qj |
| — | github.com/centrifugal/centrifugo/v4 (Go) | up to 4.1.5 | — | No fix listed | GHSA-q926-c743-49qj |
| — | github.com/centrifugal/centrifugo/v5 (Go) | up to 5.4.9 | — | No fix listed | GHSA-q926-c743-49qj |
- github.com/centrifugal/centrifugo/v6 (Go) Vendor— Affected before 6.7.0 Fixed in 6.7.0 Patch available GHSA-q926-c743-49qj
- github.com/centrifugal/centrifugo (Go) Vendor— Affected up to 2.4.0 Fixed in — No fix listed GHSA-q926-c743-49qj
- github.com/centrifugal/centrifugo/v3 (Go) Vendor— Affected up to 3.2.3 Fixed in — No fix listed GHSA-q926-c743-49qj
- github.com/centrifugal/centrifugo/v4 (Go) Vendor— Affected up to 4.1.5 Fixed in — No fix listed GHSA-q926-c743-49qj
- github.com/centrifugal/centrifugo/v5 (Go) Vendor— Affected up to 5.4.9 Fixed in — No fix listed GHSA-q926-c743-49qj
Remediation
- Fix · GHSA-q926-c743-49qj github.com/centrifugal/centrifugo/v6 (Go) Fixed in 6.7.0 Advisory →
Timeline
- 2026-10-03 Threatist record created from GHSA-q926-c743-49qj
References
Other 5
- https://github.com/centrifugal/centrifugo/security/advisories/GHSA-q926-c743-49qj
- https://github.com/centrifugal/centrifugo/commit/dab80fe3adfe0bbeca3bb3ea45e6d95df9f601a8
- https://github.com/centrifugal/centrifugo
- https://github.com/centrifugal/centrifugo/releases/tag/v6.7.0
- https://pkg.go.dev/vuln/GO-2026-4703
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences