CVE-2026-56269: Flowise: Weak Default Token Hash Secret
Flowise 3.0.13 and earlier fall back to the hardcoded secret `Secre$t` when `TOKEN_HASH_SECRET` is not set. That secret derives the key that encrypts user and workspace IDs inside JWTs, so anyone who knows the default can decrypt that metadata. Upgrade `flowise` to 3.1.0 and set a strong secret.
Published Apr 16, 2026 · Updated Jul 20, 2026 · Analysis Oct 30, 2026
What an attacker can do
In packages/server/src/enterprise/utils/tempTokenUtils.ts (lines 31-34 and 50-53), the key is a SHA-256 hash of process.env.TOKEN_HASH_SECRET || 'Secre$t'. It encrypts the user ID and workspace ID placed in the meta field of JWTs, with AES-256-CBC, via encryptToken() called from passport/index.ts. The .env.example file also lists TOKEN_HASH_SECRET=popcorn, commented out, which marks the variable as optional.
On an install that never set the variable, anyone who has a token and knows the default can decrypt the meta field and read the internal user and workspace IDs. The advisory notes that this alone does not grant access, since the JWT signature is a separate secret. The leaked identifiers could help other attacks.
The reporter's wording on token forgery goes further than that note, so treat the proven impact as information disclosure. CVSS rates it local, with high privileges and user interaction, which keeps the severity at medium.
Who is affected
npm package flowise, 3.0.13 and earlier, on deployments where TOKEN_HASH_SECRET is unset or still set to popcorn or another weak value. Check the variable in your environment or .env file, and the version:
npm ls flowiseflowise
- Ecosystem
- npm
- Affected
- <= 3.0.13
- Fixed in
- 3.1.0
- Check
npm ls flowise
How to fix it
Upgrade flowise to 3.1.0:
npm install [email protected]The advisory's recommendation is to require TOKEN_HASH_SECRET to be set, fail at startup if it is not, and use at least 32 bytes of entropy. Set a random value now, whatever your version, for example the output of openssl rand -hex 32. Tokens issued under the old key will no longer decrypt, so users sign in again.
How to tell if you were hit
Confirm whether TOKEN_HASH_SECRET is set in the Flowise process environment. If it is empty or a known value, assume the user and workspace IDs in any JWT you issued are readable by anyone holding the token. The sources give no log indicators for abuse.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Detection Method: Kolega.dev Deep Code Scan
| Attribute | Value | | Location | packages/server/src/enterprise/utils/tempTokenUtils.ts:31-34 | | Practical Exploitability | Medium | | Developer Approver | [email protected] |
Description
The encryption key for token encryption has a weak default value 'Secre$t' when TOKEN_HASH_SECRET environment variable is not set.
Affected Code
const key = crypto
.createHash('sha256')
.update(process.env.TOKEN_HASH_SECRET || 'Secre$t')
.digest()Evidence
The default value 'Secre$t' is hardcoded in the source code and is cryptographically weak. This key is used to encrypt user IDs and workspace IDs in JWT tokens.
Impact
Token forgery - attackers can decrypt and manipulate encrypted token metadata, potentially changing user IDs or workspace IDs to escalate privileges or access unauthorized data.
Recommendation
Require TOKEN_HASH_SECRET to be set as a strong random value in environment variables. Throw an error on startup if not configured. Use a minimum of 32 bytes of entropy.
Notes
The TOKEN_HASH_SECRET has a weak hardcoded default 'Secre$t' (lines 31-34 and 50-53). This secret is used to derive an AES-256-CBC encryption key for encrypting sensitive metadata (user ID and workspace ID) embedded in JWT tokens via encryptToken() called at line 394 of passport/index.ts. If TOKEN_HASH_SECRET is not configured, an attacker knowing the default can decrypt the 'meta' field in JWTs to extract user IDs and workspace IDs. While this alone doesn't grant access (the JWT signature is separate), it leaks internal identifiers that could aid other attacks. The .env.example shows '# TOKEN_HASH_SECRET='popcorn'' - another weak value, and it's commented out suggesting it's optional. The application should require this secret to be explicitly set with a strong random value.
Credited to kolega-ai-dev.
Questions
- Can an attacker forge tokens with the default secret?
The advisory notes the JWT signature is separate, so the default secret alone does not give access. It lets an attacker decrypt the user and workspace IDs in the token.
- How do I check whether I am exposed to CVE-2026-56269?
See whether
TOKEN_HASH_SECRETis set to a strong random value. If it is unset, the code usesSecre$t.- Which version fixes it?
Flowise 3.1.0. Set the secret yourself in any case.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More Flowise vulnerabilities
All Flowise entriesCVE-2026-73483
Flowise NodeVM sandbox escape via puppeteer allowlist - authenticated RCE and arbitrary file read via Chromium
critical9.4Oct 7, 2026CVE-2026-73487
Flowise Prompt Injection to RCE and SSRF via CSV/Airtable Agent Python Validator Bypass
critical9.0Oct 7, 2026CVE-2026-69250
Flowise: Unauthenticated OAuth2 Refresh Enables Non-Blind SSRF and Secret Exfiltration
high8.5Aug 4, 2026CVE-2026-69251
Flowise RCE via TypeORM DataSource
critical9.0Aug 4, 2026CVE-2026-69252
Flowise: Missing authorization on `/api/v1/files` allows low-privileged API keys to list and delete files across workspaces within the same organization
high7.2Aug 4, 2026CVE-2026-69253
Flowise Sandbox Escape to RCE
critical9.0Aug 4, 2026
