Junglewise Threat Intelligence

FlowiseAI Flowise weak default JWT secrets in passport middleware

Severity: medium · CVSS 5.6 · Published 2026-04-16

Technologies: flowise (npm), FlowiseAI Flowise. Vendors: npm, FlowiseAI.

Executive brief

Flowise, an open-source tool for building LLM applications, contains a security flaw where it uses easily guessable default passwords (secrets) for its login tokens. If an administrator does not manually change these settings during setup, an attacker can use these known defaults to create fake login credentials. This allows an attacker to impersonate any user, including administrators, potentially gaining full control over the application and its data.

Technical details

Flowise (npm package 'flowise') contains a vulnerability where JWT secrets, audiences, and issuers fall back to weak, hardcoded strings if environment variables (JWT_AUTH_TOKEN_SECRET, JWT_REFRESH_TOKEN_SECRET, etc.) are not defined. Specifically, in 'packages/server/src/enterprise/middleware/passport/index.ts', the application defaults to values like 'auth_token' and 'refresh_token'. Because these defaults are public knowledge, an attacker can forge valid JSON Web Tokens (JWTs) to impersonate any user account, including administrators. Additionally, a design flaw exists where the refresh token secret falls back to the auth token secret if the former is unset, further reducing the cryptographic entropy of the system. This issue is resolved in version 3.1.0.

Affected products

  • FlowiseAI flowise <= 3.0.13

Timeline

  • 2026-04-15: disclosed
  • 2026-04-16: advisory: GitHub reviewed advisory published
  • 2026-04-16: patched: Fixed in version 3.1.0

References

Related threats