Description
Chartbrew is an open-source web application that can connect directly to databases and APIs and use the data to create charts. Prior to 5.2.3, four authentication helpers accepted session tokens signed with CB_SECRET, including known, weak, or shipped-default values. The vulnerable surface is session JWT fallback in server/modules/verifyToken.js, verifyUser.js, getUserFromToken.js, and socketManager.js across the API and socket layer. A stock source or repository Docker Compose deployment retains a known, weak, or default CB_SECRET and an attacker submits a forged HS256 token decoding to a target user id. Knowing the symmetric secret lets the attacker create a token that the legacy verification fallback accepts as the target user without that user's password or two-factor authentication. The condition includes stock source and repository Docker Compose installs and any otherwise known or weak CB_SECRET; a bare container where CB_SECRET is undefined is not affected by this fallback path. A forged session impersonates the chosen user across the entire API and socket layer and exercises that user's Chartbrew privileges. This issue is fixed in version 5.2.3.
Published: 2026-11-06
Score: 9.8 Critical
EPSS: n/a
KEV: No
Impact: Full account takeover via forged JWTs
Action: Patch Immediately
AI Analysis

Impact

Chartbrew’s authentication modules previously accepted session tokens signed with CB_SECRET even when the token payload was forged, and the secret could be a known or shipped‑default value. This flaw allowed an attacker to create an HS256 JSON Web Token that the fallback verification logic would accept as belonging to any target user, thereby circumventing passwords and two‑factor authentication and granting full access to the account and all chart‑generation services. The weakness is characterised as CWE‑1394: Reliance on Insecure Secret.

Affected Systems

The vulnerability applies to all open‑source Chartbrew deployments that use chartbrew:chartbrew with a CB_SECRET that is a known, weak, or default value. In particular, stock source or repository Docker Compose configurations that ship a weak secret, as well as older releases prior to 5.2.3, are affected. Deployments where CB_SECRET is undefined are not impacted by the fallback path.

Risk and Exploitability

The CVSS base score for this flaw is 9.8, placing it in the Critical range. EPSS data is not available, and the vulnerability is not listed in CISA’s KEV catalog. The likely attack vector is forging a JWT and submitting it to the API or socket layer, a step that can be performed remotely over HTTPS. Because the flaw grants impersonation across the entire application, the impact is total loss of confidentiality, integrity, and availability for the compromised account.

Generated by OpenCVE AI on November 6, 2026 at 22:27 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update Chartbrew to version 5.2.3 or later, which removes the insecure fallback and requires a strong CB_SECRET.
  • For deployments that cannot upgrade immediately, configure CB_SECRET to a random, high‑entropy string and ensure it is not a default or weak value.
  • Verify that no legacy authentication helpers remain active in the codebase and that JWT verification does not fall back to the insecure logic.

Generated by OpenCVE AI on November 6, 2026 at 22:27 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 06 Nov 2026 23:00:00 +0000

Type Values Removed Values Added
First Time appeared Chartbrew
Chartbrew chartbrew
Vendors & Products Chartbrew
Chartbrew chartbrew

Fri, 06 Nov 2026 21:15:00 +0000

Type Values Removed Values Added
Description Chartbrew is an open-source web application that can connect directly to databases and APIs and use the data to create charts. Prior to 5.2.3, four authentication helpers accepted session tokens signed with CB_SECRET, including known, weak, or shipped-default values. The vulnerable surface is session JWT fallback in server/modules/verifyToken.js, verifyUser.js, getUserFromToken.js, and socketManager.js across the API and socket layer. A stock source or repository Docker Compose deployment retains a known, weak, or default CB_SECRET and an attacker submits a forged HS256 token decoding to a target user id. Knowing the symmetric secret lets the attacker create a token that the legacy verification fallback accepts as the target user without that user's password or two-factor authentication. The condition includes stock source and repository Docker Compose installs and any otherwise known or weak CB_SECRET; a bare container where CB_SECRET is undefined is not affected by this fallback path. A forged session impersonates the chosen user across the entire API and socket layer and exercises that user's Chartbrew privileges. This issue is fixed in version 5.2.3.
Title Chartbrew: Full account takeover via JWTs accepted under default CB_SECRET
Weaknesses CWE-1394
References
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}


Subscriptions

Chartbrew Chartbrew
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-11-06T21:05:31.286Z

Reserved: 2026-09-03T16:37:49.262Z

Link: CVE-2026-85295

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

Published: 2026-11-06T21:17:10.890

Modified: 2026-11-06T21:17:11.140

Link: CVE-2026-85295

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-06T22:45:11Z

Weaknesses
  • CWE-1394

    Use of Default Cryptographic Key