github.com/centrifugal/centrifugo/v6

CVE-2026-32301

CVE-2026-32301 is a critical-severity server-side request forgery (SSRF) vulnerability in github.com/centrifugal/centrifugo/v6 (go), affecting versions <= 6.6.2. It is fixed in 6.7.0.

Key facts
CVSS score
9.3
Critical
Attack vector
Network
Issuing authority
GitHub Advisory Database
Affected package
github.com/centrifugal/centrifugo/v6
Fixed in
6.7.0
Disclosed
2026

Summary

Summary Centrifugo is vulnerable to Server-Side Request Forgery (SSRF) when configured with a dynamic JWKS endpoint URL using template variables (e.g. {{tenant}}). An unauthenticated attacker can craft a JWT with a malicious iss or aud claim value that gets interpolated into the JWKS fetch URL before the token signature is verified, causing Centrifugo to make an outbound HTTP request to an attacker-controlled destination. Details In internal/jwtverify/tokenverifierjwt.go, the functions VerifyConnectToken and VerifySubscribeToken follow this flawed order of operations: Token is parsed without verification: jwt.ParseNoVerify([]byte(t)) Claims are decoded from the unverified token validateClaims() runs, extracting named regex capture groups from issuerregex/audienceregex into tokenVars map using attacker-controlled iss/aud claim values verifySignatureByJWK(token, tokenVars) is called, passing attacker-controlled tokenVars to the JWKS manager In internal/jwks/manager.go, fetchKey() interpolates tokenVars directly into the JWKS URL: jwkURL := m.url.ExecuteString(tokenVars) Centrifugo makes an HTTP GET request to the attacker-controlled URL Suppressed the security linter on this line with an incorrect comment: //nolint:gosec // URL is from server configuration, not user input. The URL is NOT purely from server configuration, it is partially constructed from unverified user-supplied JWT claims. Signature verification happens too late, after the SSRF has already fired. PoC Required config (config.json): Step 1, Start listener on attacker machine: Step 2, Generate malicious unsigned JWT: Step 3, Connect to Centrifugo WebSocket with the malicious token: Step 4, Observe incoming HTTP request on attacker listener: Malicious token being crafted with suppressorigin=True bypassing the 403, and the token sent to Centrifugo: Centrifugo Server Log: netcat terminal: Impact Unauthenticated SSRF, No valid credentials required Attacker can probe and access internal network services not exposed externally On cloud deployments: access to metadata endpoints (AWS: 169.254.169.254, GCP: metadata.google.internal) to steal IAM credentials Attacker can serve a malicious JWKS response containing their own public key, causing Centrifugo to accept attacker-signed tokens as legitimate, leading to full authentication bypass Exploitation requires jwkspublicendpoint to contain {{...}} template variables combined with issuerregex or audienceregex, a configuration pattern explicitly documented and promoted by Centrifugo Suggested Fix Verify signature BEFORE extracting tokenVars (critical fix): In tokenverifier_jwt.go, swap the order of operations: Fix the incorrect nolint comment in manager.go: Remove //nolint:gosec // URL is from server configuration, not user input The URL IS partially constructed from user input via JWT claims. Alternative mitigation: Restrict template variables to only the kid header field (which is not claim data) rather than allowing arbitrary claim values to influence the JWKS URL. ```

Impact

What is server-side request forgery (SSRF)?

Untrusted input controls the target URL of a server-initiated request, which may reach internal services not otherwise accessible from outside. Typical impact: access to internal metadata services, internal APIs, or cloud credentials.

Severity and exposure

CVE-2026-32301 has a CVSS score of 9.3 (Critical). The vector is network-reachable, no privileges required, and no user interaction. A CVSS score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether this affects your application depends on whether the vulnerable code is present and reachable in your environment.

A fixed version is available (6.7.0). Upgrading removes the vulnerable code path.

Affected versions

go

  • github.com/centrifugal/centrifugo/v6 (<= 6.6.2)
  • github.com/centrifugal/centrifugo (<= 2.4.0)
  • github.com/centrifugal/centrifugo/v3 (<= 3.2.3)
  • github.com/centrifugal/centrifugo/v4 (<= 4.1.5)
  • github.com/centrifugal/centrifugo/v5 (<= 5.4.9)

Security releases

  • github.com/centrifugal/centrifugo/v6 → 6.7.0 (go)
Kodem intelligence

Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.

Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter instead of chasing every advisory.

Kodem's runtime-powered SCA identifies whether CVE-2026-32301 is reachable in your applications. Explore open-source security for your team.

See if CVE-2026-32301 is reachable in your applications. Get a demo

Already deployed Kodem? See CVE-2026-32301 in your environment

Remediation advice

Upgrade github.com/centrifugal/centrifugo/v6 to 6.7.0 or later to resolve this vulnerability.

Kodem Kai can prioritize this vulnerability in your dependency tree and generate a fix recommendation.

Frequently asked questions about CVE-2026-32301

What is CVE-2026-32301?

CVE-2026-32301 is a critical-severity server-side request forgery (SSRF) vulnerability in github.com/centrifugal/centrifugo/v6 (go), affecting versions <= 6.6.2. It is fixed in 6.7.0. Untrusted input controls the target URL of a server-initiated request, which may reach internal services not otherwise accessible from outside.

How severe is CVE-2026-32301?

CVE-2026-32301 has a CVSS score of 9.3 (Critical). This score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether it represents real risk in your environment depends on whether the vulnerable code is present and reachable.

Which packages are affected by CVE-2026-32301?
  • github.com/centrifugal/centrifugo/v6 (go) (versions <= 6.6.2)
  • github.com/centrifugal/centrifugo (go) (versions <= 2.4.0)
  • github.com/centrifugal/centrifugo/v3 (go) (versions <= 3.2.3)
  • github.com/centrifugal/centrifugo/v4 (go) (versions <= 4.1.5)
  • github.com/centrifugal/centrifugo/v5 (go) (versions <= 5.4.9)
Is there a fix for CVE-2026-32301?

Yes. CVE-2026-32301 is fixed in 6.7.0. Upgrade to this version or later.

Is CVE-2026-32301 exploitable, and should I be worried?

Whether CVE-2026-32301 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo

What actually determines whether CVE-2026-32301 is exploitable, and how bad it is?

Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.

How do I fix CVE-2026-32301?

Upgrade github.com/centrifugal/centrifugo/v6 to 6.7.0 or later.

Stop the waste.
Protect your environment with Kodem.