CVE-2026-56278
JSON

9.3critical

Flowise - Session Hijacking via Weak Default Express Session Secret

Severity
9.3critical CVSS:4.0 by VulnCheck
Exploit likelihood
0.37% (higher than 32% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
VulnCheck
Also known as
GHSA-2qqc-p94c-hxwh

Description

Flowise before 3.1.0 (affected versions 3.0.13 and earlier) uses a weak hardcoded default secret ('flowise') for the express-session middleware when the EXPRESS_SESSION_SECRET environment variable is not set (packages/server/src/enterprise/middleware/passport/index.ts). Because this default secret is publicly visible in the source code, an attacker can forge valid signed session cookies to impersonate any user and bypass authentication.

Affected

Product or packageVersionsReported by
Flowise Flowisebefore 3.1.0
Not affected: 3.1.0
CVE List
flowise (npm)before 3.1.0GitHub Advisory Database
flowiseai flowisebefore 3.1.0NVD

All scores

VulnCheck9.3critical CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
VulnCheck9.1critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
GitHub5.6medium CVSS:3.0CVSS:3.0/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:N

Classification

CWE-798

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.

What each source says

CVE List

Flowise before 3.1.0 (affected versions 3.0.13 and earlier) uses a weak hardcoded default secret ('flowise') for the express-session middleware when the EXPRESS_SESSION_SECRET environment variable is not set (packages/server/src/enterprise/middleware/passport/index.ts). Because this default secret is publicly visible in the source code, an attacker can forge valid signed session cookies to impersonate any user and bypass authentication.

GitHub Advisory Database

Detection Method: Kolega.dev Deep Code Scan

AttributeValue
Locationpackages/server/src/enterprise/middleware/passport/index.ts:55
Practical ExploitabilityHigh
Developer Approverfaizan@kolega.ai
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.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-56278 changed 2026-07-01CVE Terms of Use
GitHub Advisory DatabaseGHSA-2qqc-p94c-hxwh changed 2026-07-08CC-BY-4.0
NVDCVE-2026-56278 changed 2026-07-06Public domain