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

GHSA-jc5m-wrp2-qq38: Flowise Vulnerable to PII Disclosure on Unauthenticated Forgot Password Endpoint

mediumCVSS 4.0 6.9

Flowise 3.0.12 and earlier return the full user record, not a generic message, from the unauthenticated `POST /api/v1/account/forgot-password` endpoint. Anyone who knows a registered email address gets that user's id, name, status and timestamps back. Upgrade the `flowise` npm package to 3.0.13.

Published Mar 5, 2026 · Analysis Oct 31, 2026

What an attacker can do

The forgotPassword method in packages/server/src/enterprise/services/account.service.ts ends with return sanitizeUser(data.user). The sanitizeUser helper deletes only credential, tempToken and tokenExpiry. Everything else stays in the response: id, name, email, status, createdDate, updatedDate, createdBy and updatedBy.

The attacker needs no account and no session. They send one POST with a target email in the JSON body. A 404 "user not found" error versus a 201 with a user object also tells them whether an address is registered. That makes the endpoint an account-enumeration oracle as well as a PII leak.

No password hash or reset token is exposed, so this does not give account takeover by itself. The risk is targeted phishing and social engineering against people who build and operate your Flowise agent flows, using real names and internal user UUIDs. The advisory scores it as low confidentiality impact.

Who is affected

Flowise npm package versions up to and including 3.0.12 are affected. The endpoint is part of the enterprise account service, and the advisory's evidence shows it answering on a hosted instance. Check your version with:

npm ls flowise

For Docker deployments, check the image tag. You can also test your own instance by posting a known user's email to the endpoint and looking for a user object in the response.

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 advisory states the expected behaviour: the endpoint should return the same generic message whether or not the email exists, for example "If this email exists, a password reset link has been sent." It lists no separate workaround. Until you upgrade, you can restrict network access to the Flowise API with a reverse proxy or firewall.

How to tell if you were hit

Search web server or reverse proxy logs for POST /api/v1/account/forgot-password requests, especially many requests from one source with different email addresses, or a mix of 201 and 404 responses. Compare the volume with your normal password-reset traffic. The advisory reports no exploitation in the wild.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

The /api/v1/account/forgot-password endpoint returns the full user object including PII (id, name, email, status, timestamps) in the response body instead of a generic success message. This exposes sensitive user information to unauthenticated attackers who only need to know a valid email address.

Vulnerability Details

| Field | Value |
| CWE | CWE-200: Exposure of Sensitive Information to an Unauthorized Actor |
| Affected File | `packages/server/src/enterprise/services/account.service.ts` (lines 517-545) |
| Endpoint | `POST /api/v1/account/forgot-password` |
| Authentication | None required |
| CVSS 3.1 | 3.7 (Low) |

Root Cause

In account.service.ts, the forgotPassword method returns the sanitized user object instead of a simple success acknowledgment:

public async forgotPassword(data: AccountDTO) {
    // ...
    const user = await this.userService.readUserByEmail(data.user.email, queryRunner)
    if (!user) throw new InternalFlowiseError(StatusCodes.NOT_FOUND, UserErrorMessage.USER_NOT_FOUND)

    data.user = user
    // ... password reset logic ...

    return sanitizeUser(data.user)  // Returns user object with PII
}

The sanitizeUser function only removes sensitive authentication fields:

export function sanitizeUser(user: Partial<User>) {
    delete user.credential    // password hash
    delete user.tempToken     // reset token
    delete user.tokenExpiry

    return user  // Still contains: id, name, email, status, createdDate, updatedDate
}

Impact

An unauthenticated attacker can:

  1. Harvest PII: Collect user IDs, full names, and account metadata
  2. Profile users: Determine account creation dates and activity patterns
  3. Enumerate accounts: Confirm email existence and gather associated data
  4. Enable further attacks: Use harvested data for social engineering or targeted phishing

Exploitation

curl -X POST "https://cloud.flowiseai.com/api/v1/account/forgot-password" \
  -H "Content-Type: application/json" \
  -d '{"user":{"email":"[email protected]"}}'

Evidence

Request:

POST /api/v1/account/forgot-password HTTP/1.1
Host: cloud.flowiseai.com
Content-Type: application/json

{"user":{"email":"[email protected]"}}

Response (201 Created):

{
    "id": "56c3fc72-4e85-49c9-a4b5-d1a46b373a12",
    "name": "Vefag naprb",
    "email": "[email protected]",
    "status": "active",
    "createdDate": "2026-01-17T15:21:59.152Z",
    "updatedDate": "2026-01-17T15:35:06.492Z",
    "createdBy": "56c3fc72-4e85-49c9-a4b5-d1a46b373a12",
    "updatedBy": "56c3fc72-4e85-49c9-a4b5-d1a46b373a12"
}

Exposed Data

| Field | Risk |
| `id` | Internal user UUID - enables targeted attacks |
| `name` | Full name - PII disclosure |
| `email` | Email confirmation |
| `status` | Account state information |
| `createdDate` | User profiling |
| `updatedDate` | Activity tracking |
| `createdBy` / `updatedBy` | Internal reference leak |

Expected Behavior

A secure forgot-password endpoint should return a generic response regardless of whether the email exists:

{"message": "If this email exists, a password reset link has been sent."}

References

Credited to tenbbughunters.

Questions

Does the forgot-password leak expose password hashes or reset tokens?

No. sanitizeUser removes credential, tempToken and tokenExpiry before the response. The leaked fields are id, name, email, status and date and author metadata.

Which Flowise version fixes GHSA-jc5m-wrp2-qq38?

Version 3.0.13. Versions up to and including 3.0.12 are listed as vulnerable.

Does the attacker need to be authenticated?

No. The advisory says no authentication is required. The attacker only needs a valid email address.

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