GHSA-q926-c743-49qj
Centrifugo's InsecureSkipTokenSignatureVerify flag silently disables JWT verification with no warning
GHSA-q926-c743-49qj is a none vulnerability (CVSS 0.0) in github.com/centrifugal/centrifugo/v6, published March 13, 2026. No source lists public exploit code. Fixed in github.com/centrifugal/centrifugo/v6 6.7.0.
- Severity
- 0.0 NoneCVSS 3.1, GitHub Advisories
- Exploit chance
- UnscoredNo EPSS score yet
- Exploitation
- None knownNot on CISA’s or ENISA’s lists
- Fixed in
6.7.0github.com/centrifugal/centrifugo/v6 +9 more
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
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- High
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- None
Affected packages
| Package | Affected | Fixed |
|---|---|---|
github.com/centrifugal/centrifugo/v6Go | through 6.6.2 | 6.7.0 |
github.com/centrifugal/centrifugoGo | through 2.4.0 | None known |
github.com/centrifugal/centrifugo/v3Go | through 3.2.3 | None known |
github.com/centrifugal/centrifugo/v4Go | through 4.1.5 | None known |
github.com/centrifugal/centrifugo/v5Go | through 5.4.9 | None known |
github.com/centrifugal/centrifugo/v6Go | before 6.7.0 | 6.7.0 |
github.com/centrifugal/centrifugoGo | All versions | None known |
github.com/centrifugal/centrifugo/v3Go | All versions | None known |
github.com/centrifugal/centrifugo/v4Go | All versions | None known |
github.com/centrifugal/centrifugo/v5Go | All versions | None known |
What each source reports
GitHub Advisories Score used 0.0
Centrifugo's InsecureSkipTokenSignatureVerify flag silently disables JWT verification with no warning
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
- Record
GHSA-q926-c743-49qj- CVSS 3.1
- 0.0 None
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:N - Weakness
- CWE-285
- Updated
- 2026-11-02
OSV 0.0
Centrifugo's InsecureSkipTokenSignatureVerify flag silently disables JWT verification with no warning
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
- Record
GHSA-q926-c743-49qj- CVSS 3.1
- 0.0 None
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:N - Weakness
- CWE-285
- Updated
- 2026-11-02
OSVGO-2026-4703No score
Centrifugo's InsecureSkipTokenSignatureVerify flag silently disables JWT verification with no warning in github.com/centrifugal/centrifugo
Centrifugo's InsecureSkipTokenSignatureVerify flag silently disables JWT verification with no warning in github.com/centrifugal/centrifugo
- Record
GO-2026-4703- Updated
- 2026-11-02
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | GitHub Advisories, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
References
github.com/centrifugal/centrifugo/security/advisories/GHSA-q926-c743-49qj
github.com/centrifugal/centrifugo/commit/dab80fe3adfe0bbeca3bb3ea45e6d95df9f601a8
github.com/centrifugal/centrifugo/releases/tag/v6.7.0
pkg.go.dev/vuln/GO-2026-4703
github.com/advisories/GHSA-q926-c743-49qj
github.com/centrifugal/centrifugo