CVE-2026-41276: Flowise Authentication Bypass Vulnerability

HIGH
Advisory Identifier: GHSA-f6hc-c5jr-878p
CVSS 9.8
CWE-287
Published
Advisory Summary

CVE-2026-41276 is a HIGH (CVSS 9.8) authentication bypass vulnerability (CWE-287: Improper Authentication) affecting Flowise libraries in the npm ecosystem. The issue involves resetpassword authentication bypass vulnerability. Remediation is available by upgrading affected packages to version 3.1.0.

CVE-2026-41276 at a Glance

CVE Identifier CVE-2026-41276
GHSA Identifier GHSA-f6hc-c5jr-878p
Severity HIGH
CVSS v3.1 Base Score 9.8
CWE Classification CWE-287: Improper Authentication
Affected Product Flowise
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 9.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2026-41276

To remediate this vulnerability, upgrade all affected Flowise dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

flowise fixed: 3.1.0
npm install flowise@3.1.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls flowise

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-41276, inspect your project dependencies using npm:

npm ls flowise

Analyze the terminal output to locate any version of Flowise in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.1.0), your application is affected.

Note: The npm ls flowise command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. In Flowise, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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

CVE-2026-41276 Affected Flowise Versions

1 component(s)
Fixed Versions:
3.1.0
Product / Package Ecosystem Affected Versions Fixed Version
flowise
npm
< 3.1.0
3.1.0

References

Frequently Asked Questions

What is CVE-2026-41276?
CVE-2026-41276 is a security vulnerability in Flowise involving resetPassword Authentication Bypass Vulnerability under CWE-287: Improper Authentication.
Which Flowise versions are affected?
Affected versions include releases prior to 3.1.0 across affected packages: flowise.
What version fixes CVE-2026-41276?
Upgrading to 3.1.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is flowise affected?
Yes, flowise is affected in releases prior to 3.1.0. Upgrade your dependency to 3.1.0 or later.
What is the CVSS score of CVE-2026-41276?
CVE-2026-41276 has a CVSS v3.1 base score of 9.8 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2026-41276?
CVE-2026-41276 is classified under CWE-287: Improper Authentication (When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.).
How can I check npm dependencies for CVE-2026-41276?
Run the dependency tree command: 'npm ls flowise'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-f6hc-c5jr-878p",
  "modified" : "2026-04-24T21:01:09Z",
  "published" : "2026-04-16T21:55:18Z",
  "aliases" : [ "CVE-2026-41276" ],
  "summary" : "Flowise: resetPassword Authentication Bypass Vulnerability",
  "details" : "ZDI-CAN-28762: Flowise AccountService resetPassword Authentication Bypass Vulnerability\n\n-- ABSTRACT -------------------------------------\n\nTrend Micro's Zero Day Initiative has identified a vulnerability affecting the following products:\nFlowise - Flowise\n\n-- VULNERABILITY DETAILS ------------------------\n* Version tested:  3.0.12\n* Installer file:  hxxps://github.com/FlowiseAI/Flowise\n* Platform tested: NA\n\n---\n\n### Analysis\n\nThis vulnerability allows remote attackers to bypass authentication on affected installations of FlowiseAI Flowise. Authentication is not required to exploit this vulnerability.\n\nThe 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.\n\n### Product information\n\nFlowiseAI Flowise version 3.0.12 (hxxps://github.com/FlowiseAI/Flowise)\n\n### Setup Instructions\n\n```\nnpm install flowise@3.0.12\nnpx flowise start\n```\n\n### Root Cause Analysis\n\nFlowiseAI 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.\n\nFlowise 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.\n\nThe 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.\n\nHowever, 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).\n\nThis 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.\n\ncomments documenting the issue have been added to the following code snippet. Added comments are prepended with \"!!!\".\nFrom packages/server/src/enterprise/services/account.service.ts\n```ts\n    public async resetPassword(data: AccountDTO) {\n        data = this.initializeAccountDTO(data) \n        const queryRunner = this.dataSource.createQueryRunner()\n        await queryRunner.connect()\n        try {\n            const user = await this.userService.readUserByEmail(data.user.email, queryRunner)  //!!! retrieve stored user info by email address\n            if (!user) throw new InternalFlowiseError(StatusCodes.NOT_FOUND, UserErrorMessage.USER_NOT_FOUND)\n            //!!!user.tempToken is null or empty string, unless a user has requested a reset token and not used it\n            if (user.tempToken !== data.user.tempToken)  //!!! check if the stored token (null by default) matches the provided token\n                throw new InternalFlowiseError(StatusCodes.BAD_REQUEST, UserErrorMessage.INVALID_TEMP_TOKEN)\n\n            const tokenExpiry = user.tokenExpiry\n            const now = moment()\n            const expiryInMins = process.env.PASSWORD_RESET_TOKEN_EXPIRY_IN_MINUTES\n                ? parseInt(process.env.PASSWORD_RESET_TOKEN_EXPIRY_IN_MINUTES)\n                : 15\n            const diff = now.diff(tokenExpiry, 'minutes') //!!! check if token is expired\n            if (Math.abs(diff) > expiryInMins) throw new InternalFlowiseError(StatusCodes.BAD_REQUEST, UserErrorMessage.EXPIRED_TEMP_TOKEN)\n\n            // all checks are done, now update the user password, don't forget to hash it and do not forget to clear the temp token\n            // leave the user status and other details as is\n            //!!! hash and update the user's password since checks passed\n            const salt = bcrypt.genSaltSync(parseInt(process.env.PASSWORD_SALT_HASH_ROUNDS || '5'))\n            // @ts-ignore\n            const hash = bcrypt.hashSync(data.user.password, salt)\n            data.user = user\n            data.user.credential = hash\n            data.user.tempToken = ''  //!!! stored Token value is set to empty string which can also be used by an attacker to bypass the token check\n            data.user.tokenExpiry = undefined\n            data.user.status = UserStatus.ACTIVE\n\n            await queryRunner.startTransaction()\n            data.user = await this.userService.saveUser(data.user, queryRunner)  //!!! save changes to user account\n            await queryRunner.commitTransaction()\n\n            // Invalidate all sessions for this user after password reset\n            await destroyAllSessionsForUser(user.id as string)\n        } catch (error) {\n            await queryRunner.rollbackTransaction()\n            throw error\n        } finally {\n            await queryRunner.release()\n        }\n\n        return sanitizeUser(data.user)\n    }\n```\n\n### Proof of Concept\n\nA proof of concept for this vulnerability is provided in ./poc.py. It expects the following syntax:\n\n```\n    python3 poc.py --user <USER> --host <HOST> [--port <PORT>] \n```\n\nWhere 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.\n\nIn 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)\n\nBy 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!\".\n\nThe provided proof of concept was tested using FlowiseAI Flowise version 3.0.12 runing on a Ubuntu 24.04 VM.\n\n-- CREDIT ---------------------------------------\nThis vulnerability was discovered by:\nNicholas Zubrisky (@NZubrisky) of TrendAI Research of Trend Micro",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "flowise"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.1.0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 3.0.13"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/FlowiseAI/Flowise/security/advisories/GHSA-f6hc-c5jr-878p"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-41276"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/FlowiseAI/Flowise"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-287" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-04-16T21:55:18Z",
    "nvd_published_at" : "2026-04-23T20:16:16Z"
  }
}