AgentbeamBeta
AI agent vulnerability · Flowise

CVE-2024-36421: Flowise Cors Misconfiguration in packages/server/src/index.ts

highCVSS 4.0 8.7 · 3.1 7.5GHSA-66f2-xxgm-f6xp

Flowise 1.4.3 and earlier enables CORS for every origin, so any website can send requests to a Flowise server and read the answers. With the default setup, which has no login, a page the user visits can pull data from Flowise. The advisory data lists no patched version.

Published Aug 5, 2024 · Analysis Nov 10, 2026

What an attacker can do

In packages/server/src/index.ts, the server calls this.app.use(cors()) with no origin restriction, which sets Access-Control-Allow-Origin to all origins (CWE-346). Browsers then let a script on any site read responses from the Flowise API.

In the default unauthenticated configuration, the attacker only needs a victim whose browser can reach the Flowise server, for example a developer with Flowise on localhost or an internal address. A malicious page makes the cross-origin calls and returns the data to the attacker, including chatflows and stored configuration the API returns. GitHub Security Lab also chains it with a path injection in the /api/v1/openai-assistants-file endpoint, where the fileName parameter is joined into a file path unchecked. Together, an attacker without direct network access to Flowise can read arbitrary files from the server, using the victim's browser as the bridge. The data panel rates it 7.5 with high confidentiality impact.

Who is affected

flowise up to and including 1.4.3, in the default configuration without authentication. Check:

npm ls flowise

Test by sending a request with an Origin header from another site and looking for Access-Control-Allow-Origin in the response.

flowise

Ecosystem
npm
Affected
<= 1.4.3
Fixed in
No patched version yet
Check
npm ls flowise

How to fix it

The advisory data lists no patched version, and the sources we read name none. Move to a current Flowise release, and enable authentication so the API is not open by default. GitHub Security Lab's general mitigation is to restrict CORS to an explicit allowlist of trusted origins and to validate fileName inside the path-injection endpoint. Keep Flowise off networks that untrusted browsers can reach.

How to tell if you were hit

Check Flowise access logs for requests with an unfamiliar Origin or Referer header, and for calls to /api/v1/openai-assistants-file with path traversal in fileName. A browser developer-tools network view of a Flowise response showing Access-Control-Allow-Origin: * confirms the misconfiguration.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Flowise is a drag & drop user interface to build a customized large language model flow. In version 1.4.3 of Flowise, A CORS misconfiguration sets the Access-Control-Allow-Origin header to all, allowing arbitrary origins to connect to the website. In the default configuration (unauthenticated), arbitrary origins may be able to make requests to Flowise, stealing information from the user. This CORS misconfiguration may be chained with the path injection to allow an attacker attackers without access to Flowise to read arbitrary files from the Flowise server. As of time of publication, no known patches are available.

Questions

Does the attacker need network access to Flowise?

No direct access. A victim's browser that can reach Flowise is the bridge, and the malicious page runs the requests.

Is it related to CVE-2024-36422?

Yes. GitHub Security Lab reported both together. CVE-2024-36422 is a reflected XSS, and either can be chained with the path injection.

Is there a patch?

The data lists none for 1.4.3. Use a current release and restrict CORS.

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