CVE-2026-56271: Flowise - Weak Default JWT Secrets in Authentication Middleware

Published Jul 12, 2026
·
Updated

Flowise before 3.1.0 (affected versions 3.0.13 and earlier) uses weak hardcoded default JWT secrets ('authtoken', 'refreshtoken') 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 (JWTAUTHTOKENSECRET, JWTREFRESHTOKENSECRET, JWTAUDIENCE, JWTISSUER) 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.

Affected Software

2 affected components
Flowise<3.1.0
FlowiseAI Flowise<3.1.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade flowise to a version that resolves this vulnerability.

    Fixed in 3.1.0
  2. Configuration

    Set JWT_AUTH_TOKEN_SECRET in the environment so Flowise does not use the publicly known hardcoded default 'auth_token'.

    Flowise enterprise passport authentication middleware (packages/server/src/enterprise/middleware/passport/index.ts) JWT_AUTH_TOKEN_SECRET = Set to a strong, unpredictable value (so it does not fall back to the weak default 'auth_token')
  3. Configuration

    Set JWT_REFRESH_TOKEN_SECRET in the environment so Flowise does not use the publicly known hardcoded default 'refresh_token'.

    Flowise enterprise passport authentication middleware (packages/server/src/enterprise/middleware/passport/index.ts) JWT_REFRESH_TOKEN_SECRET = Set to a strong, unpredictable value (so it does not fall back to the weak default 'refresh_token')
  4. Configuration

    Set JWT_AUDIENCE in the environment so Flowise does not use the publicly known default value 'AUDIENCE'.

    Flowise enterprise passport authentication middleware (packages/server/src/enterprise/middleware/passport/index.ts) JWT_AUDIENCE = Set to the intended audience value (so it does not fall back to default 'AUDIENCE')
  5. Configuration

    Set JWT_ISSUER in the environment so Flowise does not use the publicly known default value 'ISSUER'.

    Flowise enterprise passport authentication middleware (packages/server/src/enterprise/middleware/passport/index.ts) JWT_ISSUER = Set to the intended issuer value (so it does not fall back to default 'ISSUER')

Event History

Jul 12, 2026
CVE Published
via MITRE·12:06 PM
Data Sourced
via MITRE·12:06 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·12:16 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-56271?

The severity of CVE-2026-56271 is critical, rated at 9.8.

2

How do I fix CVE-2026-56271?

To fix CVE-2026-56271, upgrade Flowise to version 3.1.0 or later.

3

What are the implications of CVE-2026-56271?

CVE-2026-56271 allows attackers to potentially exploit weak default JWT secrets, compromising the authentication process.

4

Which versions of Flowise are affected by CVE-2026-56271?

Versions 3.0.13 and earlier of Flowise are affected by CVE-2026-56271.

5

What components are involved in CVE-2026-56271?

CVE-2026-56271 specifically affects the enterprise passport authentication middleware in Flowise.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203