GHSA-f6hc-c5jr-878p: Flowise: auth bypass enables account takeover via null token
GHSA-f6hc-c5jr-878p HIGHFlowise, the open-source AI agent and LLM workflow builder used by thousands of developers, contains a critical authentication bypass in its password reset flow (CWE-287) that allows any remote attacker with a target user's email address to take over their account without prior credentials or privileges. The attack is trivially simple — a single POST to /api/v1/account/reset-password with a null or empty token value bypasses the entire reset token check due to missing validation that a token was ever generated — and Flowise instances routinely store LLM API keys, database credentials, and agent configurations that make account compromise a direct gateway into AI infrastructure. While no public exploit is listed, a proof-of-concept was developed by Trend Micro ZDI researchers and the advisory includes full technical detail, meaning weaponization is imminent; the package also carries 37 prior CVEs, signaling a pattern of recurring security debt. Upgrade to Flowise 3.1.0 immediately, restrict the Flowise port to trusted networks, and rotate all API keys stored within any potentially exposed instance.
Risk Assessment
HIGH. The vulnerability is trivially exploitable with zero authentication or specialized knowledge required — only a target user's email address. The timing window constraint (15-minute expiry for accounts that never requested a reset token) reduces exploitation surface for established accounts but is fully automatable and can be bypassed for recently created accounts. Flowise runs on port 3000/TCP and is frequently internet-facing in developer environments, broadening attack surface. With full technical details and a PoC published in the ZDI advisory, weaponized exploitation is expected imminently. The combination of easy exploitation and high-value stored assets (LLM API keys, agent logic, data source credentials) elevates this beyond a typical web auth bypass.
Attack Kill Chain
Affected Systems
| Package | Ecosystem | Vulnerable Range | Patched |
|---|---|---|---|
| flowise | npm | <= 3.0.13 | 3.1.0 |
Do you use flowise? You're affected.
Severity & Risk
Recommended Action
6 steps-
PATCH
Upgrade Flowise to 3.1.0 immediately — this is the only complete fix.
-
DETECT
Query logs for POST requests to /api/v1/account/reset-password with null or empty tempToken bodies, especially from external or unexpected source IPs.
-
ROTATE
If exposure is possible, immediately rotate all LLM API keys (OpenAI, Anthropic, etc.), database credentials, and webhook secrets stored in Flowise.
-
NETWORK
Place Flowise behind a VPN or IP allowlist — port 3000 should never be exposed to the public internet.
-
AUDIT
Review all account password changes since 2026-04-16 (disclosure date) for unauthorized resets.
-
MONITOR
Set alerts for any authentication to Flowise accounts not preceded by a legitimate forgot-password email flow.
Classification
Compliance Impact
This CVE is relevant to:
Frequently Asked Questions
What is GHSA-f6hc-c5jr-878p?
Flowise, the open-source AI agent and LLM workflow builder used by thousands of developers, contains a critical authentication bypass in its password reset flow (CWE-287) that allows any remote attacker with a target user's email address to take over their account without prior credentials or privileges. The attack is trivially simple — a single POST to /api/v1/account/reset-password with a null or empty token value bypasses the entire reset token check due to missing validation that a token was ever generated — and Flowise instances routinely store LLM API keys, database credentials, and agent configurations that make account compromise a direct gateway into AI infrastructure. While no public exploit is listed, a proof-of-concept was developed by Trend Micro ZDI researchers and the advisory includes full technical detail, meaning weaponization is imminent; the package also carries 37 prior CVEs, signaling a pattern of recurring security debt. Upgrade to Flowise 3.1.0 immediately, restrict the Flowise port to trusted networks, and rotate all API keys stored within any potentially exposed instance.
Is GHSA-f6hc-c5jr-878p actively exploited?
No confirmed active exploitation of GHSA-f6hc-c5jr-878p has been reported, but organizations should still patch proactively.
How to fix GHSA-f6hc-c5jr-878p?
1. PATCH: Upgrade Flowise to 3.1.0 immediately — this is the only complete fix. 2. DETECT: Query logs for POST requests to /api/v1/account/reset-password with null or empty tempToken bodies, especially from external or unexpected source IPs. 3. ROTATE: If exposure is possible, immediately rotate all LLM API keys (OpenAI, Anthropic, etc.), database credentials, and webhook secrets stored in Flowise. 4. NETWORK: Place Flowise behind a VPN or IP allowlist — port 3000 should never be exposed to the public internet. 5. AUDIT: Review all account password changes since 2026-04-16 (disclosure date) for unauthorized resets. 6. MONITOR: Set alerts for any authentication to Flowise accounts not preceded by a legitimate forgot-password email flow.
What systems are affected by GHSA-f6hc-c5jr-878p?
This vulnerability affects the following AI/ML architecture patterns: agent frameworks, LLM application platforms, AI workflow orchestration, RAG pipelines.
What is the CVSS score for GHSA-f6hc-c5jr-878p?
No CVSS score has been assigned yet.
Technical Details
NVD Description
ZDI-CAN-28762: Flowise AccountService resetPassword Authentication Bypass Vulnerability -- ABSTRACT ------------------------------------- Trend Micro's Zero Day Initiative has identified a vulnerability affecting the following products: Flowise - Flowise -- VULNERABILITY DETAILS ------------------------ * Version tested: 3.0.12 * Installer file: hxxps://github.com/FlowiseAI/Flowise * Platform tested: NA --- ### Analysis This vulnerability allows remote attackers to bypass authentication on affected installations of FlowiseAI Flowise. Authentication is not required to exploit this vulnerability. The specific flaw exists within the resetPassword method of the AccountService class. The issue results from improper implementation of the authentication mechanism. An attacker can leverage this vulnerability to change user's passwords and bypass authentication on the system. ### Product information FlowiseAI Flowise version 3.0.12 (hxxps://github.com/FlowiseAI/Flowise) ### Setup Instructions ``` npm install flowise@3.0.12 npx flowise start ``` ### Root Cause Analysis FlowiseAI Flowise is an open source low-code tool for developers to build customized large language model (LLM) applications and AI agents. It supports integration with various LLMs, data sources, and tools in order to facilitate rapid development and deployment of AI solutions. Flowise offers a web interface with a drag-and-drop editor, as well as an API, through an Express web server accessible over HTTP on port 3000/TCP. Flowise allows users to reset forgotten passwords using a token emailed to the email address associated with their account. A token is sent to the user's email when a request is made to the "/api/v1/account/forgot-password" endpoint. Users will submit this token along with their new password to the "/api/v1/account/reset-password" endpoint, and if it is submitted within sufficient time (15 minutes by default, or the value of the PASSWORD_RESET_TOKEN_EXPIRY_IN_MINUTES environment variable) the user will be able to change their password. The resetPassword() method of the AccountService class is responsible for handling such requests. This method will first retrieve the account information of the user based on their email address, which includes the value of the reset token. The method will then check if the reset token provided matches the one stored in the user's account, and that the token hasn't expired, before changing that users password. However, there is no check performed to ensure that a password reset token has actually been generated for a user account. By default the value of the reset token stored in a users account is null, or an empty string if they've reset their password before. An attacker with knowledge of the user's email address can submit a request to the "/api/v1/account/reset-password" endpoint containing a null or empty string reset token value and reset that user's password to a value of their choosing. The null or empty string reset token value will allow the attacker to pass the reset token check, and they only have to worry about passing the expiry time check. By default the expiry time stored in the account of a user that has never generated a reset token before is equal to the time of their accounts creation plus 15 minutes (or the value of the PASSWORD_RESET_TOKEN_EXPIRY_IN_MINUTES environment variable). This means that an attacker with knowledge of a recently created user account's email can change the user's password and use the changed password to bypass authentication. comments documenting the issue have been added to the following code snippet. Added comments are prepended with "!!!". From packages/server/src/enterprise/services/account.service.ts ```ts public async resetPassword(data: AccountDTO) { data = this.initializeAccountDTO(data) const queryRunner = this.dataSource.createQueryRunner() await queryRunner.connect() try { const user = await this.userService.readUserByEmail(data.user.email, queryRunner) //!!! retrieve stored user info by email address if (!user) throw new InternalFlowiseError(StatusCodes.NOT_FOUND, UserErrorMessage.USER_NOT_FOUND) //!!!user.tempToken is null or empty string, unless a user has requested a reset token and not used it if (user.tempToken !== data.user.tempToken) //!!! check if the stored token (null by default) matches the provided token throw new InternalFlowiseError(StatusCodes.BAD_REQUEST, UserErrorMessage.INVALID_TEMP_TOKEN) const tokenExpiry = user.tokenExpiry const now = moment() const expiryInMins = process.env.PASSWORD_RESET_TOKEN_EXPIRY_IN_MINUTES ? parseInt(process.env.PASSWORD_RESET_TOKEN_EXPIRY_IN_MINUTES) : 15 const diff = now.diff(tokenExpiry, 'minutes') //!!! check if token is expired if (Math.abs(diff) > expiryInMins) throw new InternalFlowiseError(StatusCodes.BAD_REQUEST, UserErrorMessage.EXPIRED_TEMP_TOKEN) // all checks are done, now update the user password, don't forget to hash it and do not forget to clear the temp token // leave the user status and other details as is //!!! hash and update the user's password since checks passed const salt = bcrypt.genSaltSync(parseInt(process.env.PASSWORD_SALT_HASH_ROUNDS || '5')) // @ts-ignore const hash = bcrypt.hashSync(data.user.password, salt) data.user = user data.user.credential = hash data.user.tempToken = '' //!!! stored Token value is set to empty string which can also be used by an attacker to bypass the token check data.user.tokenExpiry = undefined data.user.status = UserStatus.ACTIVE await queryRunner.startTransaction() data.user = await this.userService.saveUser(data.user, queryRunner) //!!! save changes to user account await queryRunner.commitTransaction() // Invalidate all sessions for this user after password reset await destroyAllSessionsForUser(user.id as string) } catch (error) { await queryRunner.rollbackTransaction() throw error } finally { await queryRunner.release() } return sanitizeUser(data.user) } ``` ### Proof of Concept A proof of concept for this vulnerability is provided in ./poc.py. It expects the following syntax: ``` python3 poc.py --user <USER> --host <HOST> [--port <PORT>] ``` Where USER is the email address of a user on the server, HOST is the ip address of the vulnerable server, and PORT is the port the vulnerable server is listening on (default: 3000). Options inclosed in square brackets are optional. In order for this proof of concept to be successful, the user specified as the USER argument must have created their account within the last 15 minutes (or within PASSWORD_RESET_TOKEN_EXPIRY_IN_MINUTES minutes) By default, the poc will first send a POST request to the "/api/v1/account/reset-password" endpoint of the target server containing a JSON body with a null reset token and the password "TMSR1234!" for the user specified by the USER argument. If the request doesn't successfully change the user's password, the same request will be sent again with the reset token value set to the empty string. Upon successful exploitation, the user's password will be changed to "TMSR1234!". The provided proof of concept was tested using FlowiseAI Flowise version 3.0.12 runing on a Ubuntu 24.04 VM. -- CREDIT --------------------------------------- This vulnerability was discovered by: Nicholas Zubrisky (@NZubrisky) of TrendAI Research of Trend Micro
Exploitation Scenario
An adversary targeting an organization's AI development stack discovers a publicly accessible Flowise instance via Shodan or passive DNS. They harvest developer email addresses from LinkedIn or the organization's GitHub commits. For a recently onboarded developer whose Flowise account was created within the last 15 minutes, the attacker sends a crafted POST to http://target:3000/api/v1/account/reset-password with body {"email": "dev@target.com", "tempToken": null, "password": "Attacker1234!"}. The null token matches the stored null default, the timing check passes, and the password is reset. The attacker logs in, exports all chatflow definitions containing proprietary AI logic, harvests stored OpenAI and Anthropic API keys, extracts PostgreSQL connection strings from vector store integrations, and pivots to downstream data infrastructure — all before the legitimate user notices anything is wrong.
Weaknesses (CWE)
References
Timeline
Related Vulnerabilities
CVE-2026-40933 10.0 Analysis pending
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-30821 9.8 flowise: Arbitrary File Upload enables RCE
Same package: flowise CVE-2026-30824 9.8 Flowise: auth bypass exposes NVIDIA NIM container endpoints
Same package: flowise
AI Threat Alert