CVE-2026-46440: FlowiseAI Exposes Basic Auth Credentials via API
Flowise's `checkBasicAuth` endpoint compares a submitted username and password with `FLOWISE_USERNAME` and `FLOWISE_PASSWORD` with no rate limiting. An attacker can guess credentials without limit and, on success, get into the application. Versions up to 3.1.1 are affected. Upgrade to 3.1.2.
Published May 14, 2026 · Updated Jun 9, 2026 · Analysis Oct 27, 2026
What an attacker can do
The handler in packages/server/src/enterprise/controllers/account.controller.ts (lines 128-135) reads username and password from the request body. It compares them to the two environment variables with ===. A match returns Authentication successful. Anything else returns a different failure message.
The reporter lists four weaknesses. There is no rate limiting, because RateLimiterManager covers only chatflow endpoints. The === comparison is not constant-time, which can leak timing. The different success and failure messages make it a clean oracle. The values are compared as plaintext, with no hashing.
The practical attack is online brute force or credential stuffing against a Flowise instance that is exposed to a network and protected by basic auth. A weak shared password, a typical admin username or a reused credential makes it feasible. Success gives access to the Flowise application: chatflows, agent flows, stored API credentials and the model providers behind them. The CVSS vector marks high complexity and needs no privileges.
This is a brute-force risk and not a bypass. A strong, random password limits the realistic danger.
Who is affected
The flowise npm package up to and including 3.1.1 is affected. It matters on instances that use the basic auth mode driven by FLOWISE_USERNAME and FLOWISE_PASSWORD and are reachable from untrusted networks.
Check the version:
npm ls flowiseFor Docker, check the image tag. You can confirm basic auth mode by looking for the two environment variables in the container or .env file.
flowise
- Ecosystem
- npm
- Affected
- <= 3.1.1
- Fixed in
- 3.1.2
- Check
npm ls flowise
How to fix it
Upgrade to flowise 3.1.2:
npm install -g [email protected]The advisory recommends rate limiting on this endpoint, constant-time comparison, hashed comparison, generic error messages and logging of failed attempts. It names no workaround. Until you upgrade, keep Flowise off the public internet, put it behind a VPN or an authenticating reverse proxy, and rate limit /api/v1/account/basic-auth at the proxy. The route path is not stated in the advisory, so check your version's routes first. Use a long random FLOWISE_PASSWORD.
How to tell if you were hit
Search access logs for many POSTs to the basic-auth check route from one address or a spread of addresses, with responses alternating Authentication failed. A success after a long run of failures points to a guessed password.
Check for Flowise sessions and API activity from unfamiliar addresses after such a run, and for new or changed chatflows and credentials. Rotate FLOWISE_PASSWORD and the provider keys stored in Flowise if you see a match.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Detection Method: Kolega.dev Deep Code Scan
| Attribute | Value | | Severity | Medium | | CWE | CWE-522 (Insufficiently Protected Credentials) | | Location | packages/server/src/enterprise/controllers/account.controller.ts:128-135 | | Practical Exploitability | Medium | | Developer Approver | [email protected] |
Description
The checkBasicAuth endpoint validates credentials in plaintext without rate limiting and with direct comparison.
Affected Code
public async checkBasicAuth(req: Request, res: Response) {
const { username, password } = req.body
if (username === process.env.FLOWISE_USERNAME && password === process.env.FLOWISE_PASSWORD) {
return res.json({ message: 'Authentication successful' })Evidence
Credentials are sent in plaintext in request body and compared directly without hashing. No rate limiting prevents brute force attacks. The endpoint returns different messages for success/failure, enabling enumeration.
Impact
Credential brute-forcing - attackers can attempt unlimited username/password combinations against the basic auth system. Successful attacks grant access to the application.
Recommendation
- Implement rate limiting on this endpoint, 2) Use constant-time comparison to prevent timing attacks, 3) Consider using hashed comparison, 4) Return generic error messages, 5) Add logging for failed attempts.
Notes
The checkBasicAuth endpoint at line 128-135 has multiple security issues: (1) No rate limiting - the RateLimiterManager only applies to chatflow-specific endpoints, not auth endpoints. Attackers can perform unlimited brute force attempts. (2) Uses JavaScript === operator for comparison which is not constant-time, potentially enabling timing attacks. (3) Returns different messages for success ('Authentication successful') vs failure ('Authentication failed'), enabling credential enumeration. The endpoint compares plaintext credentials against environment variables FLOWISE_USERNAME and FLOWISE_PASSWORD. While this is basic auth for simpler deployments, the lack of rate limiting makes it actively exploitable for credential brute-forcing.
Credited to kolega-ai-dev.
Questions
- Is Flowise 3.1.1 vulnerable to basic auth brute force?
Yes. Versions up to and including 3.1.1 are listed as affected.
checkBasicAuthhas no rate limiting. Version 3.1.2 is the patched release.- Does this expose the Flowise password directly?
Not as stored data. The title says it exposes credentials, but the described flaw lets an attacker guess them without limit and learn from the different success and failure messages.
- How can I reduce the risk before upgrading?
Do not expose Flowise to the internet, use a long random password and add rate limiting in front of it. The advisory names no official workaround.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More Flowise vulnerabilities
All Flowise entriesCVE-2026-73483
Flowise NodeVM sandbox escape via puppeteer allowlist - authenticated RCE and arbitrary file read via Chromium
critical9.4Oct 7, 2026CVE-2026-73487
Flowise Prompt Injection to RCE and SSRF via CSV/Airtable Agent Python Validator Bypass
critical9.0Oct 7, 2026CVE-2026-69250
Flowise: Unauthenticated OAuth2 Refresh Enables Non-Blind SSRF and Secret Exfiltration
high8.5Aug 4, 2026CVE-2026-69251
Flowise RCE via TypeORM DataSource
critical9.0Aug 4, 2026CVE-2026-69252
Flowise: Missing authorization on `/api/v1/files` allows low-privileged API keys to list and delete files across workspaces within the same organization
high7.2Aug 4, 2026CVE-2026-69253
Flowise Sandbox Escape to RCE
critical9.0Aug 4, 2026
