CVE-2026-56271: Flowise - Weak Default JWT Secrets in Authentication Middleware
Flowise before 3.1.0 (affected versions 3.0.13 and earlier) uses weak hardcoded default JWT secrets ('auth_token', 'refresh_token') and default audience and issuer values ('AUDIENCE', 'ISSUER') in the enterprise passport authentication middleware (packages/server/src/enterprise/middleware/passport/index.ts). When the corresponding environment variables (JWT_AUTH_TOKEN_SECRET, JWT_REFRESH_TOKEN_SECRET, JWT_AUDIENCE, JWT_ISSUER) are not set, the application silently falls back to these publicly known defaults, allowing an attacker to forge valid JWTs and impersonate any user, including administrators, resulting in authentication bypass.
Security readout for executives and security teams
Plain-English summary
Flowise deployments can be exposed if they rely on built-in default JWT settings. In affected versions, missing environment variables cause publicly known secrets and issuer values to be used, which can let an attacker impersonate users, including administrators.
Executive priority
Treat as urgent for any internet-accessible or production Flowise deployment. The issue can undermine authentication completely when defaults are in use, so version and configuration validation should be prioritized immediately.
Technical view
Flowise before 3.1.0, including 3.0.13 and earlier, falls back to hardcoded JWT auth and refresh secrets plus default audience and issuer values in enterprise passport authentication middleware. If the related environment variables are unset, forged JWTs may be accepted, causing authentication bypass.
Likely exposure
Highest exposure is Flowise before 3.1.0 using enterprise passport authentication middleware without JWT_AUTH_TOKEN_SECRET, JWT_REFRESH_TOKEN_SECRET, JWT_AUDIENCE, or JWT_ISSUER explicitly configured.
Exploitation context
The bundle reports network-accessible, low-complexity, unauthenticated impact with full confidentiality, integrity, and availability consequences. KEV is false, and no cited source in the bundle confirms active exploitation.
Researcher notes
Evidence is specific to Flowise enterprise passport authentication middleware. Do not assume all configurations are exploitable; the described bypass depends on unset JWT-related environment variables causing fallback to known defaults.
Mitigation direction
Upgrade Flowise to 3.1.0 or later where applicable.
Set strong unique JWT_AUTH_TOKEN_SECRET and JWT_REFRESH_TOKEN_SECRET values.
Set non-default JWT_AUDIENCE and JWT_ISSUER values.
Rotate sessions or tokens after changing JWT secrets.
Check Flowise vendor guidance for any additional remediation.
Validation and detection
Inventory Flowise versions and identify deployments before 3.1.0.
Confirm the four JWT environment variables are explicitly set.
Verify values are not the documented defaults.
Review authentication logs for unexpected administrator activity.
Confirm upgraded systems still enforce intended authentication behavior.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-321: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
The CVE wording references authentication or credential exposure, so valid-account and credential-access review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
2CVSS vectors
3Timeline events
1ADP providers
3Source links
SSVC decision data
CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: yesTechnical Impact: total
CVSS vector scores
2 official scores
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-321 · source CWE mapping
Use of Hard-coded Cryptographic Key
Use of Hard-coded Cryptographic Key represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.