CVE-2026-49998
Centrifugo: Dynamic JWKS key cache keyed only by `kid` allows cross-issuer JWT authentication bypass
Also known as GHSA-g6vg-wj8f-48cj, GO-2026-5872
Mitigation
- Upgrade github.com/centrifugal/centrifugo/v6 to 6.8.1 or later.
Who should check
- Projects that depend on Go package github.com/centrifugal/centrifugo/v6 (< 6.8.1)
- Projects that depend on Go package github.com/centrifugal/centrifugo/v5 (<= 5.4.9)
- Projects that depend on Go package github.com/centrifugal/centrifugo/v4 (<= 4.1.5)
- Projects that depend on Go package github.com/centrifugal/centrifugo/v3 (<= 3.2.3)
- Projects that depend on Go package github.com/centrifugal/centrifugo (<= 2.4.0)
- Anyone running centrifugal centrifugo < 6.8.1
Vulnerability facts
- Affected
- github.com/centrifugal/centrifugo/v6 < 6.8.1; github.com/centrifugal/centrifugo/v5 <= 5.4.9; github.com/centrifugal/centrifugo/v4 <= 4.1.5; github.com/centrifugal/centrifugo/v3 <= 3.2.3; github.com/centrifugal/centrifugo <= 2.4.0
- Fixed in
- 6.8.1
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 8.2 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: High
- Privileges required: Low
- User interaction: None
- Scope: Changed (impact reaches other components)
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: None
- EPSS
- 0.27% chance of exploitation in 30 days (percentile 11, 2026-11-26)
- CWE
- CWE-347
- Modified
Description
Centrifugo is an open-source scalable real-time messaging server. Prior to 6.8.1, Centrifugo dynamic JWKS endpoint verification could reuse a key for one allowed issuer to verify a JWT for another allowed issuer because the JWKS cache and singleflight lookup were keyed only by JWT header kid, not by the resolved JWKS endpoint, issuer, audience, or trust-domain namespace, affecting client.token.jwks_public_endpoint, client.subscription_token.jwks_public_endpoint, internal/jwks/cache.go, and internal/jwks/manager.go. This issue is fixed in version 6.8.1.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Go github.com/centrifugal/centrifugo/v6 | < 6.8.1 | 6.8.1 | osv |
| Go github.com/centrifugal/centrifugo/v5 | <= 5.4.9 | — | osv |
| Go github.com/centrifugal/centrifugo/v4 | <= 4.1.5 | — | osv |
| Go github.com/centrifugal/centrifugo/v3 | <= 3.2.3 | — | osv |
| Go github.com/centrifugal/centrifugo | <= 2.4.0 | — | osv |
| centrifugal centrifugo | < 6.8.1 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-49998. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-49998.md Affected: github.com/centrifugal/centrifugo/v6 < 6.8.1; github.com/centrifugal/centrifugo/v5 <= 5.4.9; github.com/centrifugal/centrifugo/v4 <= 4.1.5; github.com/centrifugal/centrifugo/v3 <= 3.2.3; github.com/centrifugal/centrifugo <= 2.4.0 Fixed in: 6.8.1 Steps: 1. Search this machine and project for github.com/centrifugal/centrifugo/v6 (Go), github.com/centrifugal/centrifugo/v5 (Go), github.com/centrifugal/centrifugo/v4 (Go), github.com/centrifugal/centrifugo/v3 (Go), github.com/centrifugal/centrifugo (Go), centrifugal centrifugo: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
FAQ
Is CVE-2026-49998 being exploited?
There is no confirmed exploitation: CVE-2026-49998 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.27% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-49998?
High: CVSS 8.2 (v3.1, scored by CNA). Remote, login needed. The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2026-49998?
github.com/centrifugal/centrifugo/v6 < 6.8.1; github.com/centrifugal/centrifugo/v5 <= 5.4.9; github.com/centrifugal/centrifugo/v4 <= 4.1.5; github.com/centrifugal/centrifugo/v3 <= 3.2.3; github.com/centrifugal/centrifugo <= 2.4.0.
Is there a fix for CVE-2026-49998?
Yes. Fixed in 6.8.1. Upgrade github.com/centrifugal/centrifugo/v6 to 6.8.1 or later.
How do I check if I'm affected by CVE-2026-49998?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.