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

CVE-2026-30823: Flowise has IDOR leading to Account Takeover and Enterprise Feature Bypass via SSO Configuration

highCVSS 3.0 8.8GHSA-cwc3-p92j-g7qm

Flowise up to 3.0.12 lets any logged-in user rewrite another organization's SSO settings. PUT /api/v1/loginmethod takes an organizationId from the request body and never checks that the caller belongs to it. An attacker can swap in their own OAuth app to take over logins, and can enable enterprise-only SSO on a free account. Fixed in 3.0.13.

Published Mar 6, 2026 · Updated Mar 9, 2026 · Analysis Oct 31, 2026

What an attacker can do

The PUT /api/v1/loginmethod handler accepts organizationId in the JSON body and updates the matching database record. No middleware or logic compares request.user.organizationId with body.organizationId. This is an insecure direct object reference plus missing authorization.

The proof of concept uses a free-plan account with a valid JWT. The attacker sends a providers array for Google with their own clientID and clientSecret, names the victim's organizationId, and receives 200 OK with that ID. The attacker must know or obtain the target organizationId, which is a UUID.

Two outcomes follow. First, account takeover: the victim organization's SSO now points at the attacker's OAuth application, so employees who sign in through it authenticate against that app, and the attacker may hijack sessions or capture credentials. Second, license bypass: free-tier users can turn on and configure enterprise-only providers such as Azure or Okta. The advisory demonstrates the request against Flowise's hosted cloud, and self-hosted deployments running the same code are affected.

Who is affected

The npm package flowise, versions <= 3.0.12, in deployments with organizations and SSO login methods, which is the enterprise or cloud multi-tenant setup. Any authenticated user can send the request. Check the version:

npm ls -g flowise

The advisory also shows the request working against Flowise's hosted cloud service.

flowise

Ecosystem
npm
Affected
<= 3.0.12
Fixed in
3.0.13
Check
npm ls flowise

How to fix it

Upgrade to flowise 3.0.13.

npm install -g [email protected]

The 3.0.13 release notes list authorization hardening and updated login method endpoints (#5681), but do not name this advisory. The sources give no workaround. After upgrading, check every organization's SSO provider settings, replace any client IDs and secrets you did not set, and rotate OAuth client secrets as a precaution.

How to tell if you were hit

Review each organization's login method configuration for Google, Azure, Okta or other providers you did not configure, and for unfamiliar clientID values. Search API logs for PUT /api/v1/loginmethod where the user's own organization differs from the organizationId in the body. Check the identity provider side for sign-ins that land on OAuth apps outside your control. Look for users reporting unexpected SSO redirects.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

The Flowise platform has a critical Insecure Direct Object Reference (IDOR) vulnerability combined with a Business Logic Flaw in the PUT /api/v1/loginmethod endpoint.

While the endpoint requires authentication, it fails to validate if the authenticated user has ownership or administrative rights over the target organizationId. This allows any low-privileged user (including "Free" plan users) to:

  1. Overwrite the SSO configuration of any other organization.
  2. Enable "Enterprise-only" features (SSO/SAML) without a license.
  3. Perform Account Takeover by redirecting the authentication flow.

Details

The backend accepts the organizationId parameter from the JSON body and updates the database record corresponding to that ID. There is no middleware or logic check to ensure request.user.organizationId === body.organizationId.

PoC

Prerequisites:

  1. The attacker creates a standard "Free" account and obtains a valid JWT token (Cookie/Header).
  2. The attacker identifies the target organizationId (e.g., bd2b74e0-e0cd-4bb5-ba98-3cc2ae683d5d).

Step-by-Step Exploitation: The attacker sends the following PUT request to overwrite the victim's Google SSO configuration.

Request:

PUT /api/v1/loginmethod HTTP/2
Host: cloud.flowiseai.com
Cookie: token=<ATTACKER_JWT_TOKEN>
Content-Type: application/json
Accept: application/json

{
  "organizationId": "bd2b74e0-e0cd-4bb5-ba98-3cc2ae683d5d",
  "userId": "6ab311fa-0d0a-4bd6-996e-4ae721377fb2", 
  "providers": [
    {
      "providerLabel": "Google",
      "providerName": "google",
      "config": {
        "clientID": "ATTACKER_MALICIOUS_CLIENT_ID",
        "clientSecret": "ATTACKER_MALICIOUS_SECRET"
      },
      "status": "enable"
    }
  ]
}

Response: The server responds with 200 OK, confirming the modification has been applied to the victim's organization context.

{
  "status": "OK",
  "organizationId": "bd2b74e0-e0cd-4bb5-ba98-3cc2ae683d5d"
}

Impact

  • Account Takeover: An attacker can replace a victim organization's legitimate OAuth credentials (e.g., Google Client ID) with their own malicious application credentials. When victim employees try to log in via SSO, they are authenticated against the attacker's application, potentially allowing the attacker to hijack sessions or steal credentials.
  • License Control Bypass: Users on the "Free" tier can illicitly enable and configure SSO providers (Azure, Okta, etc.), which are features strictly restricted to the "Enterprise" plan.

Credited to berkdedekarginoglu.

Questions

Is Flowise 3.0.12 affected by CVE-2026-30823?

Yes. Versions up to and including 3.0.12 are affected. Upgrade to 3.0.13.

What does the attacker need?

A valid login, even a free-plan account, and the target organizationId. No admin role in the target organization is needed.

How does this lead to account takeover?

The attacker replaces the victim organization's OAuth client ID and secret with their own app. Employees who sign in with SSO then authenticate through the attacker's application.

Is it exploited in the wild?

No source we read says so, and it is not in CISA's KEV catalog. The advisory includes a full request as a proof of concept.

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