GHSA-q926-c743-49qj: Github.com/centrifugal/centrifugo/v6 Centrifugo's InsecureSkipTokenSignatureVerify Flag Silently Disables Vulnerability

LOW
CVSS 0.0
CWE-285
Published
Advisory Summary

GHSA-q926-c743-49qj is a LOW (CVSS 0.0) centrifugo's insecureskiptokensignatureverify flag silently disables vulnerability (CWE-285: Improper Authorization) affecting Github.com/centrifugal/centrifugo/v6 libraries in the Go ecosystem. The issue involves centrifugo's insecureskiptokensignatureverify flag silently disables jwt verification with no warning. Remediation is available by upgrading affected packages to version 6.7.0.

GHSA-q926-c743-49qj at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-q926-c743-49qj
Severity LOW
CVSS v3.1 Base Score 0.0
CWE Classification CWE-285: Improper Authorization
Affected Product Github.com/centrifugal/centrifugo/v6
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 0.0

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability None (A:N)

How to Fix GHSA-q926-c743-49qj

To remediate this vulnerability, upgrade all affected Github.com/centrifugal/centrifugo/v6 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/centrifugal/centrifugo/v6 fixed: 6.7.0
Upgrade github.com/centrifugal/centrifugo/v6 to 6.7.0
github.com/centrifugal/centrifugo fixed: Latest secure release
Upgrade github.com/centrifugal/centrifugo to Latest secure release
github.com/centrifugal/centrifugo/v3 fixed: Latest secure release
Upgrade github.com/centrifugal/centrifugo/v3 to Latest secure release
github.com/centrifugal/centrifugo/v4 fixed: Latest secure release
Upgrade github.com/centrifugal/centrifugo/v4 to Latest secure release
github.com/centrifugal/centrifugo/v5 fixed: Latest secure release
Upgrade github.com/centrifugal/centrifugo/v5 to Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/centrifugal/centrifugo/v6

How to Check if You Are Affected

To determine whether your application is affected by GHSA-q926-c743-49qj, inspect your project dependencies for Github.com/centrifugal/centrifugo/v6:

inspect dependencies for github.com/centrifugal/centrifugo/v6

Analyze the terminal output to locate any version of Github.com/centrifugal/centrifugo/v6 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.7.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-285: Improper Authorization, where the product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action. In Github.com/centrifugal/centrifugo/v6, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### 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: ![1](https://github.com/user-attachments/assets/606acae0-e6f7-467f-b512-b5350ec6cf38) Token signed with wrong key accepted, authentication bypass confirmed: ![2](https://github.com/user-attachments/assets/a400c0bf-b78c-40cf-8c73-07fdabb0c672) skipVerify flag propagated from config to all token verification calls: ![3](https://github.com/user-attachments/assets/4141eb05-0371-46e1-acb7-8a9091c45693) ### 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

GHSA-q926-c743-49qj Affected Github.com/centrifugal/centrifugo/v6 Versions

5 component(s)
Fixed Versions:
6.7.0
Product / Package Ecosystem Affected Versions Fixed Version
github.com/centrifugal/centrifugo/v6
Go
< 6.7.0
6.7.0
github.com/centrifugal/centrifugo
Go
≤ 2.4.0
github.com/centrifugal/centrifugo/v3
Go
≤ 3.2.3
github.com/centrifugal/centrifugo/v4
Go
≤ 4.1.5
github.com/centrifugal/centrifugo/v5
Go
≤ 5.4.9

References

Frequently Asked Questions

What is GHSA-q926-c743-49qj?
GHSA-q926-c743-49qj is a security vulnerability in Github.com/centrifugal/centrifugo/v6 involving Centrifugo's InsecureSkipTokenSignatureVerify flag silently disables JWT verification with no warning under CWE-285: Improper Authorization.
Which Github.com/centrifugal/centrifugo/v6 versions are affected?
Affected versions include releases prior to 6.7.0 across affected packages: github.com/centrifugal/centrifugo/v6, github.com/centrifugal/centrifugo, github.com/centrifugal/centrifugo/v3, github.com/centrifugal/centrifugo/v4, github.com/centrifugal/centrifugo/v5.
What version fixes GHSA-q926-c743-49qj?
Upgrading to 6.7.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/centrifugal/centrifugo/v6 affected?
Yes, github.com/centrifugal/centrifugo/v6 is affected in releases prior to 6.7.0. Upgrade your dependency to 6.7.0 or later.
Is github.com/centrifugal/centrifugo affected?
Yes, github.com/centrifugal/centrifugo is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of GHSA-q926-c743-49qj?
GHSA-q926-c743-49qj has a CVSS v3.1 base score of 0.0 (LOW) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:N.
What CWE is associated with GHSA-q926-c743-49qj?
GHSA-q926-c743-49qj is classified under CWE-285: Improper Authorization (The product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action.).
How can I check Go dependencies for GHSA-q926-c743-49qj?
Run the dependency tree command: 'inspect dependencies for github.com/centrifugal/centrifugo/v6'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-q926-c743-49qj",
  "modified" : "2026-03-27T21:17:00Z",
  "published" : "2026-03-13T20:44:37Z",
  "aliases" : [ ],
  "summary" : "Centrifugo's InsecureSkipTokenSignatureVerify flag silently disables JWT verification with no warning",
  "details" : "### Summary\nCentrifugo 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.\n\nNote: 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.\n\n### Details\nThe flag is defined in `internal/configtypes/types.go`:\n```\nInsecureSkipTokenSignatureVerify bool `mapstructure:\"insecure_skip_token_signature_verify\"`\n```\n\nIt is passed directly to token verification in `internal/client/handler.go`:\n```\ntoken, err := h.tokenVerifier.VerifyConnectToken(e.Token, \n    cfg.Client.InsecureSkipTokenSignatureVerify)\n```\n\nIn `token_verifier_jwt.go`, when `skipVerify=true` the entire signature block is bypassed:\n```go\nif !skipVerify {\n    // This block never executes\n    err = verifier.verifySignature(token)\n}\n```\nThe flag is configurable via multiple vectors making accidental exposure likely:\n- Config file: `insecure_skip_token_signature_verify: true`\n- Environment variable: `CENTRIFUGO_INSECURE_SKIP_TOKEN_SIGNATURE_VERIFY=true`\n- YAML, TOML config formats\n\nDespite `hmac_secret_key` being configured, startup logs show `\"enabled JWT verifiers\"` — falsely implying verification is active.\n\n### PoC\nConfig with legitimate HMAC key but skip flag enabled:\n```json\n{\n  \"client\": {\n    \"insecure_skip_token_signature_verify\": true,\n    \"token\": { \"hmac_secret_key\": \"legitimate-production-secret-key\" }\n  }\n}\n```\n\nToken signed with completely wrong key is fully accepted:\n```\nVULNERABILITY CONFIRMED!\nConnected as user: {'client': '899dec73...', 'version': '0.0.0 OSS'}\n```\n\nNo security warning emitted when insecure_skip_token_signature_verify=true:\n![1](https://github.com/user-attachments/assets/606acae0-e6f7-467f-b512-b5350ec6cf38)\n\nToken signed with wrong key accepted, authentication bypass confirmed:\n![2](https://github.com/user-attachments/assets/a400c0bf-b78c-40cf-8c73-07fdabb0c672)\n\nskipVerify flag propagated from config to all token verification calls:\n![3](https://github.com/user-attachments/assets/4141eb05-0371-46e1-acb7-8a9091c45693)\n\n### Impact\n- Any unauthenticated user can connect as any arbitrary user ID\n- Complete authentication bypass — attacker sets any `sub` claim value\n- No indicators in logs that the server is operating insecurely\n- Easily triggered accidentally via environment variable injection\n  in containerized deployments (e.g. misconfigured Kubernetes secrets)\n- Affects all connection types: WebSocket, HTTP-streaming, SSE, GRPC\n \n### Suggested Fix\n1. Emit a loud startup warning when flag is enabled:\n```go\nif cfg.Client.InsecureSkipTokenSignatureVerify {\n    log.Warn().Msg(\"SECURITY WARNING: JWT signature verification is \" +\n        \"DISABLED via insecure_skip_token_signature_verify - \" + \n        \"DO NOT use in production!\")\n}\n```\n2. Consider requiring an additional explicit `insecure_mode: true` flag to prevent accidental single-flag misconfiguration\n3. Log a warning on every accepted token when skip is active",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/centrifugal/centrifugo/v6"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "6.7.0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 6.6.2"
    }
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/centrifugal/centrifugo"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "2.4.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/centrifugal/centrifugo/v3"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "3.2.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/centrifugal/centrifugo/v4"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "4.1.5"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/centrifugal/centrifugo/v5"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "5.4.9"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/centrifugal/centrifugo/security/advisories/GHSA-q926-c743-49qj"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/centrifugal/centrifugo/commit/dab80fe3adfe0bbeca3bb3ea45e6d95df9f601a8"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/centrifugal/centrifugo"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/centrifugal/centrifugo/releases/tag/v6.7.0"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2026-4703"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-285" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-03-13T20:44:37Z",
    "nvd_published_at" : null
  }
}