GHSA-2qqc-p94c-hxwh: Flowise: Weak Default Express Session Secret
Flowise 3.0.13 and earlier sign Express session cookies with the public default `flowise` when `EXPRESS_SESSION_SECRET` is not set. Anyone who knows the default can forge session cookies and impersonate users. Upgrade `flowise` to 3.1.0 and set a strong secret.
Published Apr 16, 2026 · Analysis Oct 30, 2026
What an attacker can do
In packages/server/src/enterprise/middleware/passport/index.ts (line 55) the session secret is process.env.EXPRESS_SESSION_SECRET || 'flowise'. The default is in the public source. The .env.example file lists # EXPRESS_SESSION_SECRET=flowise commented out, which makes the variable look optional.
Unlike a development-only default, this code runs in production when the variable is unset. The express-session middleware signs session cookies with the secret. An attacker who knows it can craft cookies that the server accepts, which the reporter says allows impersonation of any user and bypass of authentication.
The advisory text claims high practical exploitability, but the CVSS vector is local, needs high privileges and user interaction, and scores a medium 5.6. The two disagree, and the sources do not include a working forgery. Read the risk as: any internet-facing Flowise install that never set the variable should be treated as having a guessable session secret.
Who is affected
npm package flowise, 3.0.13 and earlier, on deployments where EXPRESS_SESSION_SECRET is unset or set to flowise. Check the version and the environment:
npm ls flowiseThen confirm the variable is set to a long random value in your service environment or .env file.
flowise
- 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 recommends that the secret be required, with startup failing if it is missing, and at least 256 bits of randomness. Set EXPRESS_SESSION_SECRET yourself now, for example with openssl rand -hex 32. Changing it signs everyone out.
How to tell if you were hit
Check that EXPRESS_SESSION_SECRET exists in the Flowise process environment. If it does not, review logins and admin actions for sessions that have no matching sign-in event. The sources give no log signatures for forged cookies.
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/middleware/passport/index.ts:55 | | Practical Exploitability | High | | Developer Approver | [email protected] |
Description
Express session secret has a weak default value 'flowise' when EXPRESS_SESSION_SECRET is not set.
Affected Code
secret: process.env.EXPRESS_SESSION_SECRET || 'flowise'Evidence
The default session secret 'flowise' is publicly visible and weak. Session cookies signed with this secret can be forged by attackers.
Impact
Session hijacking and forgery - attackers can create arbitrary session cookies to impersonate any user, bypassing all authentication mechanisms.
Recommendation
Require EXPRESS_SESSION_SECRET to be set with a strong random value. Throw an error on startup if not configured. Use cryptographically strong random strings (minimum 256 bits).
Notes
The Express session secret defaults to the string 'flowise' when EXPRESS_SESSION_SECRET is not set (line 55). This secret is used to sign session cookies via express-session middleware. Since 'flowise' is publicly visible in the source code, an attacker can forge valid session cookies to impersonate any user without authentication. The .env.example file has this commented out (# EXPRESS_SESSION_SECRET=flowise), implying it's optional, which compounds the risk. Unlike development-only defaults, this code path is active in production if the environment variable is not set. The application should require EXPRESS_SESSION_SECRET to be explicitly configured with a cryptographically strong random value and fail to start otherwise.
Credited to kolega-ai-dev.
Questions
- Am I affected if I set EXPRESS_SESSION_SECRET?
Not by the default. The weakness only applies when the variable is unset, so the code falls back to
flowise. A weak value you chose yourself has the same problem.- Does this advisory have a CVE?
No CVE appears in the data. It is tracked as GHSA-2qqc-p94c-hxwh.
- Which version fixes it?
Flowise 3.1.0. Set the secret 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
