Critical · 9.8 Critical vulnerabilities CVE-2026-85295
Chartbrew Fixes Critical Authentication Bypass via Weak Session Secret (CVE-2026-85295)
Chartbrew prior to 5.2.3 contains a critical authentication bypass: if the instance uses a known, weak, or default CB_SECRET, an attacker can forge a session token and impersonate any user without credentials or two-factor authentication.
By PatchBriefing ·
Produced automatically from official sources with the help of AI. How we work →
AI summary
A critical vulnerability has been disclosed in Chartbrew, an open-source charting tool that connects to databases and APIs to visualize data. Tracked as CVE-2026-85295, the flaw allows an attacker who knows or guesses the application's session-signing secret to forge authentication tokens and impersonate any user, bypassing passwords and two-factor authentication entirely. The issue is fixed in version 5.2.3.
What happened
Chartbrew's session authentication relies on a symmetric secret, CB_SECRET, used to sign HS256 JSON Web Tokens (JWTs). Four authentication helpers in the server codebase accepted session tokens signed with this secret as a legacy fallback, even when the secret was a known, weak, or shipped-default value. An attacker who knows or can guess CB_SECRET can craft an HS256 token that decodes to any target user ID. The legacy verification fallback accepts this forged token as valid, granting the attacker that user's session without needing the victim's password or two-factor authentication code.
Technical cause
The vulnerable code paths are located in four server modules that handle session verification and user lookup from tokens: verifyToken.js, verifyUser.js, getUserFromToken.js, and socketManager.js. These modules are used across both the API and the WebSocket (socket) layer. Each contains a fallback path that trusts any token correctly signed with CB_SECRET, regardless of how that secret was obtained or how weak it is. This is classified under CWE-1394 (Use of Default Cryptographic Key). The condition applies to deployments where CB_SECRET is known, weak, or left at a shipped default — notably stock source installations and the repository's default Docker Compose setup. A bare container deployment where CB_SECRET is left undefined is not affected by this specific fallback path.
Why it matters
A successfully forged token grants full impersonation of the targeted user across both the REST API and the real-time socket layer, meaning the attacker exercises all of that user's Chartbrew privileges. Since this bypasses password authentication and two-factor authentication entirely, an attacker does not need to steal credentials or defeat MFA — only the signing secret. For instances where the secret is a stock, known, or weak value, this effectively removes authentication as a barrier.
Who is affected
Chartbrew deployments running a version prior to 5.2.3 are affected if CB_SECRET is a known, weak, or shipped-default value. This specifically includes stock source installations and deployments using the repository's default Docker Compose configuration, where the secret may not have been changed from its shipped value. Deployments where CB_SECRET has been left entirely undefined in a bare container are not affected by this particular authentication fallback path, though administrators should still verify their configuration.
Affected versions
Versions of Chartbrew before 5.2.3 are affected, provided the CB_SECRET condition described above applies. The fact package does not specify an exact earliest affected version, so administrators should treat any pre-5.2.3 deployment with a known, weak, or default secret as at risk.
Fixes and mitigation
This issue is fixed in Chartbrew version 5.2.3. Administrators should upgrade to 5.2.3 or later. Independent of upgrading, instances should ensure CB_SECRET is set to a strong, unique, randomly generated value and is never left at a default or widely-known value, since the vulnerability specifically depends on the secret being known or weak.
Recommended action
Upgrade affected Chartbrew installations to version 5.2.3 or later as soon as possible. Additionally, verify that CB_SECRET on your instance has been changed from any shipped or default value to a strong, randomly generated secret, as this is the root condition enabling token forgery. Review deployment configurations, particularly those based on the repository's default Docker Compose setup, which are more likely to retain a default secret.
PatchBriefing score
9.8 / 10 · Critical
Official CVSS: 9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS 0.0076 (51 percentile)
Why this score
The PatchBriefing score equals the official CVSS score; when this article covers several vulnerabilities, the highest one. Signals such as known exploitation and EPSS are listed separately and do not change the score.
Affected versions
Reported fixes
This issue is fixed in Chartbrew version 5.2.3. Administrators should upgrade to 5.2.3 or later. Independent of upgrading, instances should ensure CB_SECRET is set to a strong, unique, randomly generated value and is never left at a default or widely-known value, since the vulnerability specifically depends on the secret being known or weak.
How this was built
2 source records were collected, matched and used to prepare the report above.
-
NVD (NIST) database
-
CVE.org database
Revision history
- Published
- Generated