AgentbeamBeta
AI agent vulnerability · Flowise

CVE-2024-9148: Flowise and Flowise Chat Embed vulnerable to Stored Cross-site Scripting

mediumCVSS 4.0 5.8 · 3.1 9.6GHSA-m5p9-xvxj-64c8

The Flowise Chat Embed library before 2.0.0 does not sanitize chat input, so a stranger who chats with an embedded chatbot can store a script that later runs in the Flowise admin panel. Flowise before 2.1.1 is affected. Upgrade flowise to 2.1.1 and flowise-embed to 2.0.0.

Published Sep 25, 2024 · Updated Sep 30, 2024 · Analysis Nov 10, 2026

What an attacker can do

Tenable, who found it, describes the chain. An unauthenticated user starts a conversation with a chatbot embedded on a website. The embed library filters on* event-handler attributes, but a payload without one still works, for example an iframe with a javascript: source. The message is stored, and when an administrator views the conversation in the Flowise panel, the script runs there.

The attacker needs no account, only the public chatbot, and the administrator must open the stored chat, which is the user-interaction part. Tenable rates it critical (CVSS 3.1 9.6) with a changed scope, because the script runs in the administrative context. In practice the attacker can act as the admin: read chatflows, API keys and credentials stored in Flowise, and change flows. Flowise admins reading conversations is a routine task, so the trigger is easy to cause.

Who is affected

flowise below 2.1.1 and flowise-embed below 2.0.0. Check:

npm ls flowise flowise-embed

Also check the embed script on your websites, since the embedded copy may be a CDN or pinned version of flowise-embed.

flowise-embed

Ecosystem
npm
Affected
< 2.0.0
Fixed in
2.0.0
Check
npm ls flowise-embed

flowise

Ecosystem
npm
Affected
< 2.1.1
Fixed in
2.1.1
Check
npm ls flowise

How to fix it

Upgrade flowise to 2.1.1 or later and flowise-embed to 2.0.0 or later. If you only use the embed library, version 2.0.0 is the fix for that part. Tenable lists no workaround. After upgrading, review stored chat messages for script or iframe markup, and rotate credentials that an admin session could have exposed.

How to tell if you were hit

Search stored chat messages in Flowise for iframe, script, javascript: and similar HTML from anonymous users. Check admin session activity for unexpected changes to chatflows or credentials, and look at web logs for requests to unknown hosts from the admin panel.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Flowise < 2.1.1 suffers from a Stored Cross-Site vulnerability due to a lack of input sanitization in Flowise Chat Embed < 2.0.0.

Questions

Who can exploit CVE-2024-9148?

Any visitor who can chat with an embedded Flowise chatbot. No account is needed.

Where does the script run?

In the Flowise administration panel, when an admin views the stored conversation.

Which versions fix it?

flowise 2.1.1 and flowise-embed 2.0.0. If you only use the embed library, 2.0.0 is the fix for it.

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