AgentbeamBeta
AI agent vulnerability · Flowise

CVE-2026-70472: Flowise: Cross-workspace credential IDOR in openai-assistants-vector-store

highCVSS 4.0 7.1GHSA-chm3-vqcf-52rx

Flowise 3.1.2 and earlier lets a user in one workspace use another workspace's stored OpenAI key through the `/api/v1/openai-assistants-vector-store` endpoints. The server loads the credential by ID with no workspace check. Anyone who knows a victim's `credentialId` can read, change or delete its vector stores and files and run up its OpenAI bill. Upgrade to 3.1.3.

Published Aug 4, 2026 · Analysis Nov 8, 2026

What an attacker can do

The endpoints take a client-supplied credential query parameter. The assistants:* route permissions check only that the feature is allowed. The controller passes req.query.credential to the service, which runs findOneBy({ id: credentialId }), decrypts the credential and calls the OpenAI API with it. No workspaceId comparison happens anywhere in this flow, so this is an insecure direct object reference.

The attacker needs an account in any workspace of the same Flowise instance, with assistants-related permissions, plus the victim credential's ID. A request such as GET /api/v1/openai-assistants-vector-store?credential={B_credentialId} then acts with the victim's key. The advisory lists the results as unauthorised use of stored OpenAI keys, reading, modifying and deleting the victim's vector stores and files, and billing against the victim's OpenAI account.

It breaks the boundary between tenants on shared instances. The need to know a credential ID makes it harder to exploit, since IDs are UUIDs, but they can leak through shared exports, logs or screenshots. The decrypted key itself is not shown to the attacker in the advisory. They use it through the server.

Who is affected

The npm package flowise at 3.1.2 and earlier, on instances with more than one workspace or tenant that store OpenAI credentials. Single-workspace installs have no tenant boundary to cross, though any low-privilege user could still use credentials meant for others in the same workspace only if they are in it already.

npm ls flowise

Check whether your users have the assistants permissions and whether more than one team shares the instance.

flowise

Ecosystem
npm
Affected
<= 3.1.2
Fixed in
3.1.3
Check
npm ls flowise

How to fix it

Upgrade flowise to 3.1.3:

npm install -g [email protected]

The fix in pull request 6170 adds workspace and organization scoping to several API paths through a new tenantRequestGuards utility. According to the PR summary, it covers chatflow lookups, upsert history, the OpenAI assistant vector store, datasets and dataset rows, document store preview, evaluations, the OAuth2 authorize endpoint and the workspace-user endpoint. We could not see the diff.

If you shared OpenAI credentials across tenants on an old version, rotate the keys and review your OpenAI account usage.

How to tell if you were hit

Review OpenAI account usage and audit logs for vector store and file operations you did not run, and for spikes in spend. In Flowise and proxy logs, look for calls to /api/v1/openai-assistants-vector-store whose credential value belongs to a different workspace than the caller's. Check for vector stores or files that vanished or changed.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

These endpoints accept a client-controlled credential parameter. The server loads credentials by id and uses them directly, without checking whether that credential belongs to the caller’s workspace. If an attacker knows another workspace’s credentialId, they can use that workspace’s OpenAI key.

Details

Route permissions (assistants:*) only check feature access. They do not check credential ownership. The controller passes req.query.credential straight to the service. The service does findOneBy({ id: credentialId }), decrypts the credential, and calls OpenAI APIs. There is no workspaceId check in this flow, so this is an IDOR.

Impact

  • Cross-workspace unauthorized use of stored OpenAI keys.
  • Unauthorized read/modify/delete of victim vector stores and files.
  • Direct billing impact on victim OpenAI account.
  • Multi-tenant boundary violation with practical exploitability.

Reproduction steps

  1. Set up two workspaces: A (attacker) and B (victim), each with an OpenAI credential.
  2. Log in as a user in workspace A (with assistants-related permissions).
  3. Call /api/v1/openai-assistants-vector-store and set credential to B’s credential ID.
  4. Example: GET /api/v1/openai-assistants-vector-store?credential=<B_credentialId>.
  5. If responses/actions are executed using B’s credential context, the issue is confirmed.

Credited to Kazamayc.

Questions

Does the attacker see my OpenAI key?

The advisory does not say so. The server decrypts the key and uses it on the attacker's behalf, so they act as you at OpenAI.

What does the attacker need?

A Flowise account in any workspace on the same instance with assistants permissions, and the victim credential's ID.

Which version fixes CVE-2026-70472?

Flowise 3.1.3 is the patched version. Versions up to 3.1.2 are affected.

Should I rotate OpenAI keys?

If several tenants shared a vulnerable instance and credential IDs might have leaked, yes. Also check OpenAI usage for activity you did not start.

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