Summary
CVE-2026-85295 is a critical authentication bypass (Use of Default Cryptographic Key, CWE-1394) in Chartbrew, an open-source web application for building charts and dashboards. Session JWTs signed with a known, weak or default CB_SECRET are accepted, which lets an unauthenticated attacker take over any user account. The CVSS v3.1 base score is 9.8 (Critical).
Technical details
- Root cause: four authentication helpers in the API and socket layer accept session JWTs signed with
CB_SECRET. A legacy verification fallback accepts HS256 tokens signed with that secret. - Trigger conditions: the deployment keeps a known, weak or default
CB_SECRET, for example a stock source or Docker Compose deployment that never changed it. - Attack vector: network. No privileges and no user interaction are needed. The attacker forges an HS256 token that decodes to a target user ID and submits it.
- Impact: full account takeover. The attacker impersonates any chosen user across the API and socket layer with that user’s Chartbrew privileges. No password or two-factor authentication is needed.
Affected software
- Chartbrew versions before 5.2.3
Severity
- CVSS v3.1 base score: 9.8 (Critical)
- Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Mitigation and recommended actions
- Immediate: upgrade Chartbrew to version 5.2.3 or later.
- Set
CB_SECRETto a strong, unique value. Do not use any default from the repository or Docker Compose file. - Consider rotating
CB_SECRETand invalidating existing sessions, because tokens signed with a known secret can be forged.

