Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify Chartbrew install retaining default CB_SECRET
-
DeliveryForge HS256 JWT for target user id
-
ExploitSubmit forged bearer token to API or socket
-
ExecutionLegacy fallback accepts token as that user
-
ImpactFull account/admin takeover, data read/write/delete
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Authentication mechanism
|
| Exploitation Conditions | The target deployment must retain a known, weak, or shipped-default CB_SECRET. Concretely affected: stock source installs (npm run setup copies .env-template, which ships CB_SECRET=change_to_random_string under a '[deprecated]...not used anymore' comment that operators leave untouched) and the repository docker-compose install (env_file derived from the same template); setUpEncryptionKeys.js randomizes CB_ENCRYPTION_KEY but never generates CB_SECRET. Explicitly NOT affected: the README bare |
| Impact | All non-EPSS severity signals align on high priority: the input CVSS is 9.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H), the vuln.today Decision label is act_now, and the GHSA advisory documents live-verified, single-request, unauthenticated full account takeover (including any admin user, since user ids are sequential integers). My independent read agrees the network/unauthenticated metrics are justified BECAUSE the vulnerable state is the shipped default: stock source installs (npm run setup copies .env-template) and the repo docker-compose both retain CB_SECRET=change_to_random_string, a globally known secret, so no attacker-controlled precondition beyond knowing that public default. The one factor that tempers raw 9.8 ubiquity is that exploitability is gated on the deployment retaining a known/weak/default CB_SECRET - a bare |
| Exploit ScenarioDerived | An attacker locates an internet-reachable Chartbrew instance deployed from source or the repo docker-compose that still uses the shipped default CB_SECRET ('change_to_random_string'). With no login, they craft an HS256 JWT whose payload decodes to a target user id (e.g. {"id":2}), sign it with the known secret, and present it as a bearer token; the legacy verification fallback accepts it and grants that user's full session. The GHSA advisory publishes detailed, reporter-live-verified reproduction steps (GET /user/2 returning the victim profile and POST /user/relog minting a fresh victim session), so a public PoC reference exists, though it is not distributed as standalone packaged exploit code. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 06, 2026
Chartbrew server versions through 5.2.2 accept forged HS256 session tokens signed with a known or shipped-default CB_SECRET, allowing an unauthenticated remote attacker to impersonate any user id across the API and socket layer while bypassing password and 2FA. Affected deployments are stock source installs and the repository docker-compose setup that retain CB_SECRET=change_to_random_string; the README bare docker run path is not affected because CB_SECRET is undefined. The public GHSA documents a live-verified reproduction and the vuln.today decision label is act_now; no CISA KEV entry is provided in the available data.
RemediationAI
Vendor-released patch: upgrade Chartbrew from v5.2.2 or earlier to v5.2.3. The fix commit da8c71f156aaa13fbc7ead15a4726740fef2b3c5 removes the CB_SECRET fallback and verifies session tokens only with CB_ENCRYPTION_KEY using HS256. If immediate upgrade is not possible, set CB_SECRET to a strong random value or leave it undefined where the deployment supports that, so forged tokens signed with the shipped default change_to_random_string are rejected; this neutralizes the vulnerable fallback but does not remove the code path until v5.2.3 is applied. Confirm whether the deployment is a stock source install or repository docker compose, since the README bare docker run snippet is unaffected because CB_SECRET is undefined. Advisory: https://github.com/chartbrew/chartbrew/security/advisories/GHSA-qvv4-r3q6-8797; release: https://github.com/chartbrew/chartbrew/releases/tag/v5.2.3.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
CWE-1394 (Use of Default Cryptographic Key) applies because Chartbrew's session authentication relies on JSON Web Tokens, and the deployment template ships a globally known symmetric secret. Legitimate sessions are signed only with settings.encryptionKey (CB_ENCRYPTION_KEY), but four middleware paths - server/modules/verifyToken.js, verifyUser.js, getUserFromToken.js, and socketManager.js - first verify with CB_ENCRYPTION_KEY and then fall back to jwt.verify(token, settings.secret), where settings.secret maps to process.env.CB_SECRET, without an algorithms allow-list. The .env-template ships CB_SECRET=change_to_random_string under a deprecated comment, and setUpEncryptionKeys.js generates CB_ENCRYPTION_KEY but never touches CB_SECRET, so stock source installs and repo docker-compose deployments keep a known key in the legacy fallback path. The fix commit da8c71f156aaa13fbc7ead15a4726740fef2b3c5 removes the fallback and centralizes verification in verifySessionToken.js using algorithms:['HS256'] against settings.encryptionKey only. Source installs via npm run setup and the repository docker-compose setup are affected; the README bare docker run snippet is not affected because CB_SECRET is undefined, and deployments where CB_SECRET was replaced with a strong random value are not exploitable. No CPE strings were supplied.
Know when Docker gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Stock/docker-compose installs ship a globally known default CB_SECRET, so a single remote request needs no auth (PR:N, AC:L) and yields full account/admin impersonation (C/I/A:H).
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
2DescriptionCVE.org
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.
Articles & Coverage 2
Technical POC Analysis
CWE-1394: Use of Default Cryptographic Key.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
Chartbrew deployments using the default CB_SECRET are exposed to unauthenticated account takeover, allowing attackers to impersonate any user, including administrators, and access sensitive analytics data. This affects stock source installations and the repository's docker-compose setup, putting customer insights and connected data sources at risk. Leadership should prioritize immediate remediation to prevent data breaches and maintain customer trust.
No vendor-released patch identified at time of analysis. Interim mitigations: immediately change CB_SECRET from default to a strong random value, restrict network access to Chartbrew API and socket interfaces, enable monitoring for anomalous authentication events, and consider disabling 2FA bypass by enforcing additional authentication layers if feasible.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl
runc through version 1.0-rc6 (used in Docker before 18.09.2) contains a container escape vulnerability that allows attac
Netmaker makes networks with WireGuard. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no a
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
The News & Blog Designer Pack - WordPress Blog Plugin - (Blog Post Grid, Blog Post Slider, Blog Post Carousel, Blog Post
Path traversal in JFrog Artifactory (CWE-22) enables an authenticated low-privilege user to write data outside the inten
Docker 1.3.2 allows remote attackers to execute arbitrary code with root privileges via a crafted (1) image or (2) build
Remote code execution in Gogs through 0.14.2 allows authenticated users (and unauthenticated attackers on default-config
Unauthenticated remote command injection in SGWBOX N3 firmware 2.0.25 lets attackers execute arbitrary operating-system
Remote code execution in Flowise before 3.1.2 allows any authenticated user (or API caller with chatflow view/update per
Remote code execution in NocoBase Workflow Script Node (npm @nocobase/plugin-workflow-javascript) allows authenticated l
Docker Desktop Community Edition before 2.1.0.1 allows local users to gain privileges by placing a Trojan horse docker-c
EUVD-2026-118502
NVD
CVE.org
EPSS
GitHub
Exploit-DB