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

CVE-2026-41278: Flowise: Public chatflow endpoints return unsanitized flowData including plaintext API keys, passwords, and credential IDs

highCVSS 4.0 8.7 · 3.1 7.5GHSA-w47f-j8rh-wx87

Flowise 3.0.13 and earlier returns the full, unsanitized flowData of public chatflows from GET /api/v1/public-chatflows/:id and public-chatbotConfig. Anyone on the network can read credential IDs and any plaintext API keys or passwords saved in node inputs. Upgrade flowise to 3.1.0.

Published Apr 17, 2026 · Updated Apr 24, 2026 · Analysis Oct 29, 2026

What an attacker can do

In packages/server/src/controllers/chatflows/index.ts, the handler for public chatflows loads the chatflow and, if isPublic is set, returns the whole object as JSON. The advisory reports that a function named sanitizeFlowDataForPublicEndpoint is absent from the released v3.0.13 Docker image. It exists only in unreleased code, and even there only public-chatbotConfig calls it. So both public-chatflows and public-chatbotConfig return raw flowData. This is CWE-200.

No login is needed, only the chatflow id of a public chatflow. The response includes credential IDs, any password or apiKey values typed directly into node inputs, and node settings that reveal internal architecture and endpoint URLs. The researcher showed this with a test chatflow that held a password-type input and an apiKey input. Keys pasted straight into nodes give direct access to third-party accounts. Credential IDs alone are not keys, but the advisory says they enable further abuse; the TTS endpoint flaw in CVE-2026-41279 accepts a credentialId from an unauthenticated caller.

Who is affected

The flowise npm package at 3.0.13 and earlier, for any chatflow marked public. Check the version:

npm ls -g flowise

To see exposure, request /api/v1/public-chatflows/ with the id of one of your public chatflows without credentials and read what comes back.

flowise

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

How to fix it

Upgrade to 3.1.0:

npm install -g [email protected]

The advisory suggests sanitizing both public endpoints so that all credential, password, apiKey and secretKey fields are stripped from flowData. It names no workaround. Until you upgrade, make public chatflows private if you can. Rotate any key or password that was ever typed into a node of a public chatflow, because it may have been read.

How to tell if you were hit

Check access logs for unauthenticated GET requests to /api/v1/public-chatflows/ and the public-chatbotConfig route, particularly from addresses that are not your users, or sweeps across many ids. Then audit the flowData of every public chatflow for plaintext keys and passwords. The advisory gives no log signature.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

The GET /api/v1/public-chatflows/:id endpoint returns the full chatflow object without sanitization for public chatflows. Docker validation revealed this is worse than initially assessed: the sanitizeFlowDataForPublicEndpoint function does NOT exist in the released v3.0.13 Docker image. Both public-chatflows AND public-chatbotConfig return completely raw flowData including credential IDs, plaintext API keys, and password-type fields.

Root Cause

// packages/server/src/controllers/chatflows/index.ts:218-220
const chatflow = await chatflowsService.getChatflowById(req.params.id)
if (!chatflow) return res.status(StatusCodes.NOT_FOUND).json(...)
if (chatflow.isPublic) return res.status(StatusCodes.OK).json(chatflow) // ← NO sanitization!

Docker Validation (v3.0.13)

Created public chatflow with credential IDs and passwords in flowData:

{
  "flowData": "{\"nodes\":[{\"data\":{\"credential\":\"e92a39bf-...\",\"inputs\":{\"password\":\"sk-supersecretkey123\",\"apiKey\":\"should-not-leak\"}}}]}"
}

The sanitizeFlowDataForPublicEndpoint function only exists in unreleased HEAD, and even there, only public-chatbotConfig calls it — public-chatflows never does.

Impact

  • Credential IDs leaked — enables OAuth2 token theft chain (Finding 1)
  • Plaintext API keys and passwords leaked — direct third-party account compromise
  • Node configurations leaked — reveals internal architecture and endpoint URLs
  • Both public-chatflows and public-chatbotConfig are affected in the released version

Suggested Fix

Apply sanitization to both public endpoints:

const sanitized = sanitizeFlowDataForPublicEndpoint(chatflow)
return res.status(StatusCodes.OK).json(sanitized)

Ensure the sanitization function strips all credential, password, apiKey, and secretKey fields from flowData.

---

References

  • packages/server/src/controllers/chatflows/index.ts lines 209-236
  • packages/server/src/utils/sanitizeFlowData.ts lines 11-34 (exists only in unreleased HEAD)

Credits

  • Shinobi Security - https://github.com/shinobisecurity

Credited to DeathsPirate.

Questions

Does CVE-2026-41278 need authentication?

No. The CVSS vector has no privileges and no user interaction. The chatflow must be marked public.

Is the sanitize function in the release?

Per the advisory, sanitizeFlowDataForPublicEndpoint does not exist in the released v3.0.13 image. It exists only in unreleased code, where only public-chatbotConfig uses it.

What should I rotate?

Any API key or password stored in node inputs of a public chatflow. Credentials kept in the Flowise credential store appear only as IDs, but see CVE-2026-41279 for how an ID can be misused.

Which version fixes it?

Flowise 3.1.0 fixes it. Versions up to and including 3.0.13 are listed as vulnerable.

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