NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · Flowise

CVE-2026-46443: FlowiseAI Vulnerable to Credential Data Leak

highCVSS 4.0 7.0GHSA-7g73-99r4-m4mj

Flowise returns the `encryptedData` field of stored credentials when the credentials API is called with a `credentialName` filter. The unfiltered path strips it, the filtered path does not. An authenticated user can pull encrypted API keys, and decrypt them if they can also read the encryption key. 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

In packages/server/src/services/credentials/index.ts, the filtered branch (lines 62-71) runs findBy(searchOptions) and pushes the entities into the response as they are. The unfiltered branch (around line 102) calls omit(credential, ['encryptedData']). The mismatch means GET /api/v1/credentials?credentialName=openAIApi returns the AES-encrypted blob for every credential of that type.

The reporter's reproduction uses an API key as the bearer token. The attacker needs a valid account or key with access to the credentials API. The blob alone is encrypted, so the second step is the key. The report notes the encryption key file ~/.flowise/encryption.key is written with default permissions. Any user or process that can read that file, or a deployment that sets the key through an environment variable the attacker can see, can decrypt the data.

With both, the attacker gets plaintext provider credentials: OpenAI, AWS and other service keys that Flowise holds for its flows. These keys work outside Flowise, so the damage reaches provider bills and any data those accounts hold. The high complexity in the CVSS vector reflects the need for that second item.

Who is affected

The flowise npm package up to and including 3.1.1 is affected. Any instance with stored credentials and more than one user or API key is exposed.

Check the version:

npm ls flowise

For Docker, check the image tag. Also check the permissions on the encryption key file, by default ~/.flowise/encryption.key.

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 names no workaround. Tighten the permissions of encryption.key so only the Flowise user can read it, and limit who has API keys with access to the credentials API.

Treat provider keys that were stored in an exposed instance as possibly leaked. Rotate them, especially if other users could read the key file.

How to tell if you were hit

Search API logs for GET /api/v1/credentials with a credentialName query parameter from keys or users that do not normally manage credentials. Check responses sizes: filtered responses are larger because they hold the encrypted data.

On the provider side, look for use of your OpenAI, AWS or other keys from addresses outside your infrastructure. Check who read encryption.key on the host.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Severity: HIGH (CVSS ~7.5) Type: CWE-200 (Exposure of Sensitive Information) File: packages/server/src/services/credentials/index.ts:62-71

Description: When credentials are fetched with a credentialName filter parameter, the encryptedData field is NOT stripped from the response. The code properly omits encryptedData when NO filter is used (line 102) but fails to do so when a filter IS used (lines 62-63, 70-71). Credential Data Leak Evidence:

// Lines 62-63: WITH filter - encryptedData LEAKED
const credentials = await appServer.AppDataSource.getRepository(Credential).findBy(searchOptions)
dbResponse.push(...credentials)  // encryptedData NOT removed!

// Lines 100-102: WITHOUT filter - encryptedData properly omitted
for (const credential of credentials) {
    dbResponse.push(omit(credential, ['encryptedData']))  // Correctly omitted
}

Impact: Authenticated users can extract encrypted credential data (API keys, passwords, tokens for services like OpenAI, AWS, etc.). Combined with access to the encryption key file (~/.flowise/encryption.key written with default permissions), this enables full credential theft.

Reproduction:

curl https://TARGET/api/v1/credentials?credentialName=openAIApi \
  -H "Authorization: Bearer API_KEY"
# Response includes encryptedData field with AES-encrypted credentials

Credited to Dimpyj1604.

Questions

Does this Flowise leak give plaintext API keys?

Not alone. It leaks the encrypted encryptedData value. Plaintext requires the encryption key, which the report says is stored in ~/.flowise/encryption.key with default permissions.

Why does only the filtered request leak?

The code that serves requests with credentialName skips the omit(credential, ['encryptedData']) call that the unfiltered path uses.

Which version fixes CVE-2026-46443?

Flowise 3.1.2. Versions up to and including 3.1.1 are listed as affected.

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 entries