GHSA-rwrp-9823-p2xq: Flowise: Incomplete Credential Redaction Exposes Secrets via API
Flowise up to 3.1.2 returns many stored credentials in plaintext from GET /api/v1/credentials/:id. Redaction covers only fields typed password, so database URLs with embedded passwords, Google service account JSON and AWS keys come back in full. Any user with credentials:view can harvest them. Upgrade to flowise 3.1.3.
Published Aug 4, 2026 · Updated Sep 2, 2026 · Analysis Nov 23, 2026
What an attacker can do
getCredentialById() in packages/server/src/services/credentials/index.ts decrypts the stored credential and puts it in the plainDataObj field of the response. redactCredentialWithPasswordType() in packages/server/src/utils/index.ts masks only fields whose input type is password. Many credential definitions store secrets in fields typed string, so they pass through unmasked.
The advisory lists examples: mongoDBConnectUrl (MongoDB URL with password), googleApplicationCredential (full service account JSON with an RSA private key), postgresUrl, redisUrl and the AWS access key ID in awsKey. More than 60 credential definitions exist, and many have sensitive string fields. An OpenAI key, typed password, was correctly redacted in the proof of concept.
The attacker needs only an authenticated account with credentials:view in the workspace. In a multi-user deployment, that user can pull every credential in the workspace. The stolen secrets let them reach production databases, impersonate a Google Cloud service account and pivot from Flowise to connected cloud services and APIs.
Who is affected
npm package flowise at 3.1.2 and earlier. The proof of concept used v3.0.13 from the flowiseai/flowise:latest image with enterprise auth. Multi-user workspaces, where some users hold credentials:view but should not see raw secrets, are the main exposure. Check the version:
npm ls flowiseFor Docker, check the image tag in use.
flowise
- Ecosystem
- npm
- Affected
- <= 3.1.2
- Fixed in
- 3.1.3
- Check
npm ls flowise
How to fix it
Upgrade to flowise 3.1.3:
npm install -g [email protected]The advisory does not describe what 3.1.3 changed, and the release notes do not mention it, so check that the credentials endpoint no longer returns string-typed secrets after upgrading. The advisory's remediation advice is to redact all sensitive fields, stop returning plainDataObj and use masked previews, re-type sensitive fields as password, and add an explicit secret flag. Rotate any database password, service account key or access key that was stored in a credential reachable by users who should not see it.
How to tell if you were hit
Check access logs for GET requests to /api/v1/credentials/ with a credential id from accounts that do not normally manage credentials, especially many requests in a row across ids. Review who holds credentials:view. Then audit the downstream systems: look for logins to MongoDB, PostgreSQL, Redis or Google Cloud using the stored secrets from unfamiliar addresses. The sources do not report exploitation in the wild.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
The GET /api/v1/credentials/:id endpoint decrypts stored credential data and returns it in the plainDataObj field of the API response. While a redactCredentialWithPasswordType() function masks fields defined with type: 'password' in their component schema, many credential types store highly sensitive data (database connection URLs with embedded passwords, Google service account JSON with RSA private keys, AWS access keys) in fields defined as type: 'string'. These string-type fields are returned in full plaintext without any redaction.
Any authenticated user with credentials:view permission can retrieve the raw secrets of any credential in their workspace by calling this endpoint.
Vulnerable Code
Service Layer
`packages/server/src/services/credentials/index.ts`, getCredentialById() (line 127):
At line 138, the credential's encrypted data is decrypted:
const decryptedCredentialData = await decryptCredentialData(
credential.encryptedData,
credential.credentialName,
appServer.nodesPool.componentCredentials
)At lines 143-146, the decrypted data is attached to the response as plainDataObj:
const returnCredential: ICredentialReturnResponse = {
...credential,
plainDataObj: decryptedCredentialData // <-- decrypted secrets in response
}At line 147, only encryptedData is stripped, leaving plainDataObj intact:
const dbResponse: any = omit(returnCredential, ['encryptedData'])Incomplete Redaction
`packages/server/src/utils/index.ts`, redactCredentialWithPasswordType() (line 1697):
export const redactCredentialWithPasswordType = (
componentCredentialName: string,
decryptedCredentialObj: ICredentialDataDecrypted,
componentCredentials: IComponentCredentials
): ICredentialDataDecrypted => {
const plainDataObj = cloneDeep(decryptedCredentialObj)
for (const cred in plainDataObj) {
const inputParam = componentCredentials[componentCredentialName].inputs?.find(
(inp) => inp.type === 'password' && inp.name === cred // <-- only 'password' type
)
if (inputParam) {
plainDataObj[cred] = REDACTED_CREDENTIAL_VALUE
}
}
return plainDataObj
}This function only redacts fields where inp.type === 'password'. Fields with type: 'string' are returned verbatim, even when they contain secrets.
Credential Definitions Storing Secrets in String-Type Fields
| Credential | Field | Type | Contains | | `mongoDBUrlApi` | `mongoDBConnectUrl` | `string` | `mongodb+srv://user:password@host/db` | | `googleVertexAuth` | `googleApplicationCredential` | `string` | Full service account JSON with RSA private key | | `postgresUrl` | `postgresUrl` | `string` | `postgresql://user:password@host/db` | | `redisCacheUrlApi` | `redisUrl` | `string` | `redis://user:password@host:port` | | `awsApi` | `awsKey` | `string` | AWS Access Key ID | | `langfuseApi` | `langFusePublicKey` | `string` | Langfuse API public key | | `httpBasicAuth` | `basicAuthUsername` | `string` | HTTP Basic Auth username |
There are 60+ credential definitions in packages/components/credentials/, many with sensitive string-type fields.
Proof of Concept
Environment
- Flowise v3.0.13 (
flowiseai/flowise:latestDocker image) - Authenticated as admin user via enterprise auth
Steps to Reproduce
- Start Flowise and log in as any user with
credentials:viewpermission. - Create a MongoDB credential with a connection URL containing embedded credentials:
curl -X POST "http://TARGET:3000/api/v1/credentials" \
-H "Content-Type: application/json" \
-H "x-request-from: internal" \
-H "Cookie: token=<jwt-token>" \
-d '{
"name": "MongoDB Production",
"credentialName": "mongoDBUrlApi",
"plainDataObj": {
"mongoDBConnectUrl": "mongodb+srv://admin:[email protected]/mydb"
}
}'- Retrieve the credential by ID:
curl -X GET "http://TARGET:3000/api/v1/credentials/<credential-id>" \
-H "x-request-from: internal" \
-H "Cookie: token=<jwt-token>"Observed Result
The API returns the MongoDB connection URL in full plaintext, including the embedded password:
{
"id": "e9543cad-8c0c-422e-9990-090c3b1dc3ab",
"name": "MongoDB Production",
"credentialName": "mongoDBUrlApi",
"createdDate": "2026-02-07T17:35:29.000Z",
"updatedDate": "2026-02-07T17:35:29.000Z",
"plainDataObj": {
"mongoDBConnectUrl": "mongodb+srv://admin:[email protected]/mydb"
}
}The same test with a Google Vertex Auth credential returned the complete service account JSON including the RSA private key in plaintext:
{
"id": "f7768444-a4fc-4fa3-8e5e-d0d4df89fb56",
"name": "Google Vertex Auth",
"credentialName": "googleVertexAuth",
"plainDataObj": {
"googleApplicationCredential": "{\"type\":\"service_account\",\"private_key\":\"-----BEGIN RSA PRIVATE KEY-----\\nMIIEpAIBAAKCAQEA0Z3VS5JJcds3xfn/ygWep4PAtGoL3VBpFe97XRQFQB\\n-----END RSA PRIVATE KEY-----\\n\",\"client_email\":\"[email protected]\"}",
"projectID": "my-project-123"
}
}For comparison, an OpenAI API key (where the field is typed as password) was correctly redacted:
{
"plainDataObj": {
"openAIApiKey": "_FLOWISE_BLANK_07167752-1a71-43b1-"
}
}This confirms the redaction is only applied to password-type fields, leaving string-type fields fully exposed.
Impact
- Database credential theft: MongoDB, PostgreSQL, Redis, MySQL connection URLs with embedded passwords are returned in full plaintext. An attacker can use these to directly access production databases.
- Cloud service account compromise: Google service account JSON with RSA private keys is returned in plaintext, enabling full impersonation of the service account across Google Cloud.
- AWS key exposure: AWS Access Key IDs stored in
string-type fields are exposed, enabling enumeration of active AWS credentials. - Lateral movement: Stolen credentials enable pivoting from the Flowise instance to connected cloud services, databases, and APIs.
- Multi-user workspace risk: In multi-user deployments, any user with
credentials:viewpermission can harvest all workspace credentials via the API.
Remediation
- Apply
redactCredentialWithPasswordType()to all sensitive credential fields, not just those typed aspassword. Any field containing secrets (connection strings, JSON credentials, access keys) should be redacted. - Consider never returning
plainDataObjin API responses. The UI should use masked previews (e.g.,mongodb+srv://admin:****@cluster0...) instead of full values. - Re-type sensitive credential fields from
stringtopasswordin component credential definitions to ensure they are covered by the existing redaction logic. - Add a separate
secret: trueflag to credential field definitions to explicitly mark sensitive fields regardless of their input type.
Credited to yuvalo1212.
Questions
- Which credential types leak in GHSA-rwrp-9823-p2xq?
Those with secrets in string-typed fields, such as MongoDB, PostgreSQL and Redis URLs, Google Vertex service account JSON and the AWS access key ID. Password-typed fields like an OpenAI key were redacted.
- Who can read the secrets?
Any authenticated user with the credentials:view permission in the workspace. No admin role is required, and the CVSS vector needs only low privileges.
- Should I rotate credentials after upgrading to 3.1.3?
Yes, if users who should not see raw secrets held credentials:view. Patching stops further reads, but any secret already returned stays valid until you rotate it at the source.
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
