CVE-2026-56271: Flowise: hardcoded JWT secrets enable full auth bypass
CRITICAL CISA: TRACK*Flowise's enterprise authentication middleware ships with hardcoded default JWT secrets, audience, and issuer values that silently activate whenever an operator forgets to set the four corresponding environment variables, letting any network attacker forge valid tokens and impersonate any user, including administrators, with zero authentication or user interaction (CVSS 9.8). This is not a subtle logic flaw — the fallback secrets ('auth_token', 'refresh_token', 'AUDIENCE', 'ISSUER') are published in the public GitHub advisory and the source code itself, so exploitation requires no custom tooling and no exploit development skill, only knowledge that the target Flowise instance hasn't overridden the defaults. There is no EPSS score yet, it isn't in CISA KEV, and no public PoC or Nuclei template exists at the time of writing, but the triviality of the attack combined with Flowise's role as an AI agent orchestration platform (which typically holds LLM API keys, tool credentials, and workflow logic) means a compromised instance hands an attacker admin-level control over connected AI agents and their integrations. Treat any self-hosted Flowise deployment as compromised until verified: upgrade to 3.1.0+ and confirm JWT_AUTH_TOKEN_SECRET, JWT_REFRESH_TOKEN_SECRET, JWT_AUDIENCE, and JWT_ISSUER are explicitly set to strong, unique values in every environment, then rotate all sessions and audit admin activity logs for anomalous access predating the fix.
What is the risk?
Critical, low-effort, high-impact. Attack complexity is low and requires no privileges or user interaction — an attacker only needs network access to a Flowise instance running with unset JWT environment variables. Because the fallback values are hardcoded strings disclosed in the public advisory and source repository, this is functionally equivalent to a default-credential vulnerability: reproducibility is trivial once an attacker identifies an unpatched, misconfigured instance. The absence of an EPSS score and KEV listing reflects the CVE's freshness (published 2026-07-12), not lower real-world risk — hardcoded-secret auth bypasses in widely deployed self-hosted tools are historically exploited quickly once disclosed. Flowise's own history of 117 other CVEs in the same package suggests a pattern of security debt in this codebase, raising the likelihood that additional latent issues compound this one.
How does the attack unfold?
What systems are affected?
| Package | Ecosystem | Vulnerable Range | Patched |
|---|---|---|---|
| Flowise | npm | — | No patch |
Do you use Flowise? You're affected.
How severe is it?
What is the attack surface?
What should I do?
1 step-
1) Upgrade Flowise to version 3.1.0 or later immediately. 2) Regardless of version, explicitly set JWT_AUTH_TOKEN_SECRET, JWT_REFRESH_TOKEN_SECRET, JWT_AUDIENCE, and JWT_ISSUER to strong, randomly generated, unique values in every deployment environment (dev, staging, prod) — never rely on framework defaults. 3) Rotate these secrets and force logout of all active sessions after remediation, since any tokens forged prior to the fix remain valid until the signing secret changes. 4) Audit authentication and admin-action logs for tokens with the known default issuer/audience values ('ISSUER'/'AUDIENCE') or for admin actions from unrecognized source IPs/sessions predating the patch. 5) As a compensating control, restrict network exposure of the Flowise enterprise admin API to trusted networks/VPN until patched. 6) Add a startup-time check or secrets-manager enforcement that fails closed (refuses to start) if these four environment variables are unset, rather than silently falling back to insecure defaults.
What does CISA's SSVC say?
Source: CISA Vulnrichment (SSVC v2.0). Decision based on the CISA Coordinator decision tree.
How is it classified?
Which compliance frameworks are affected?
This CVE is relevant to:
Frequently Asked Questions
What is CVE-2026-56271?
Flowise's enterprise authentication middleware ships with hardcoded default JWT secrets, audience, and issuer values that silently activate whenever an operator forgets to set the four corresponding environment variables, letting any network attacker forge valid tokens and impersonate any user, including administrators, with zero authentication or user interaction (CVSS 9.8). This is not a subtle logic flaw — the fallback secrets ('auth_token', 'refresh_token', 'AUDIENCE', 'ISSUER') are published in the public GitHub advisory and the source code itself, so exploitation requires no custom tooling and no exploit development skill, only knowledge that the target Flowise instance hasn't overridden the defaults. There is no EPSS score yet, it isn't in CISA KEV, and no public PoC or Nuclei template exists at the time of writing, but the triviality of the attack combined with Flowise's role as an AI agent orchestration platform (which typically holds LLM API keys, tool credentials, and workflow logic) means a compromised instance hands an attacker admin-level control over connected AI agents and their integrations. Treat any self-hosted Flowise deployment as compromised until verified: upgrade to 3.1.0+ and confirm JWT_AUTH_TOKEN_SECRET, JWT_REFRESH_TOKEN_SECRET, JWT_AUDIENCE, and JWT_ISSUER are explicitly set to strong, unique values in every environment, then rotate all sessions and audit admin activity logs for anomalous access predating the fix.
Is CVE-2026-56271 actively exploited?
No confirmed active exploitation of CVE-2026-56271 has been reported, but organizations should still patch proactively.
How to fix CVE-2026-56271?
1) Upgrade Flowise to version 3.1.0 or later immediately. 2) Regardless of version, explicitly set JWT_AUTH_TOKEN_SECRET, JWT_REFRESH_TOKEN_SECRET, JWT_AUDIENCE, and JWT_ISSUER to strong, randomly generated, unique values in every deployment environment (dev, staging, prod) — never rely on framework defaults. 3) Rotate these secrets and force logout of all active sessions after remediation, since any tokens forged prior to the fix remain valid until the signing secret changes. 4) Audit authentication and admin-action logs for tokens with the known default issuer/audience values ('ISSUER'/'AUDIENCE') or for admin actions from unrecognized source IPs/sessions predating the patch. 5) As a compensating control, restrict network exposure of the Flowise enterprise admin API to trusted networks/VPN until patched. 6) Add a startup-time check or secrets-manager enforcement that fails closed (refuses to start) if these four environment variables are unset, rather than silently falling back to insecure defaults.
What systems are affected by CVE-2026-56271?
This vulnerability affects the following AI/ML architecture patterns: agent frameworks, workflow orchestration platforms, multi-tenant SaaS/enterprise deployments, RAG pipelines.
What is the CVSS score for CVE-2026-56271?
CVE-2026-56271 has a CVSS v3.1 base score of 9.8 (CRITICAL). The EPSS exploitation probability is 0.66%.
What is the AI security impact?
Affected AI Architectures
MITRE ATLAS Techniques
AML.T0012 Valid Accounts AML.T0049 Exploit Public-Facing Application AML.T0091.000 Application Access Token Compliance Controls Affected
What are the technical details?
Original Advisory
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.
Exploitation Scenario
An attacker scans for internet-facing Flowise deployments (e.g., via Shodan/censys fingerprinting or targeted recon of known AI agent platform ports) and identifies a target running an enterprise-configured instance. Knowing from the public GHSA advisory that unconfigured deployments fall back to the hardcoded secrets 'auth_token'/'refresh_token' with audience/issuer 'AUDIENCE'/'ISSUER', the attacker crafts a JWT signed with these known values, setting the claims to represent an administrator account. The attacker submits this forged token to the Flowise API, which — having never set the corresponding environment variables — validates it as legitimate and grants full admin session access. From there the attacker browses all workflows, extracts embedded LLM API keys and database credentials, exfiltrates proprietary agent logic and RAG data sources, and optionally modifies live agent flows to inject malicious tool calls or backdoors that execute against future end users of the platform.
Weaknesses (CWE)
CWE-321 — Use of Hard-coded Cryptographic Key: The product uses a hard-coded, unchangeable cryptographic key.
- [Architecture and Design] Prevention schemes mirror that of hard-coded password storage.
Source: MITRE CWE corpus.
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H References
Timeline
Related Vulnerabilities
CVE-2025-71338 10.0 Flowise: unauthenticated file write enables RCE
Same package: flowise CVE-2025-59528 10.0 Flowise: Unauthenticated RCE via MCP config injection
Same package: flowise CVE-2025-61913 9.9 Flowise: path traversal in file tools leads to RCE
Same package: flowise CVE-2026-40933 9.9 Flowise: RCE via MCP stdio command injection
Same package: flowise CVE-2026-46442 9.9 Flowise: sandbox escape enables authenticated RCE
Same package: flowise