AgentbeamBeta
AI agent vulnerability · Flowise

GHSA-4fr9-3x69-36wv: Flowise vulnerable to XSS

mediumCVSS 4.0 6.3

The flowise npm package before 3.0.8 renders unfiltered HTML and JavaScript in chat output, which allows stored cross-site scripting. A chat message or a response from a custom function can run script in a viewer's browser and steal cookie data. Upgrade to 3.0.8.

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

What an attacker can do

Flowise does not sanitize input and output that reach its chat view. The report shows two routes. First, a user types an iframe element with a javascript: source into the chat box, and the script runs. Second, an Agentflow custom function fetches an external site, and that site returns an XSS payload as text. Flowise renders the returned text and runs the script.

The second route matters for agent use. Any web content an agent fetches can carry the payload, so an attacker needs only a page the flow reads. In the report the script sent the victim's cookie data to the external website.

The victim is whoever views the chat, such as a builder or an admin. The CVSS 4.0 vector rates it Moderate, 6.3, with low privileges and passive user interaction, and a high subsequent-system impact. The reporter called it critical for all users of agent workflows.

Who is affected

flowise, all versions before 3.0.8. Check:

npm ls flowise

For a Docker deployment, check the image tag. Exposed instances are the ones whose chat view displays user text or text returned by custom functions and fetched pages.

flowise

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

How to fix it

Upgrade to flowise 3.0.8:

npm install -g [email protected]

For Docker, pull an image at that version or later. The advisory lists no workaround. Until then, limit who can use the chat and avoid flows that return raw fetched content from sites you do not control.

How to tell if you were hit

Search stored chat messages and flow outputs for iframe elements with javascript: sources, script elements and event-handler attributes. Check the web server and proxy logs for outbound requests from user browsers to unfamiliar hosts right after a chat view loads. Review custom functions that fetch external URLs and see what content they returned.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

A XSS(cross-site scripting) vulnerability is caused by insufficient filtering of input by web applications. Attackers can leverage this XSS vulnerability to inject malicious script code (HTML code or client-side Javascript code) into web pages, and when users browse these web pages, the malicious code will be executed, and the victims may be vulnerable to various attacks such as cookie data theft, etc.

Details

  1. Send a Message <iframe src="javascript:alert(document.cookie);"> from User in a chat box:

Trigger in other ways:

  1. Create a Agentflow in cloud platform (https://cloud.flowiseai.com/agentflows)
  1. Create a Custom function as an example, use the below example code.
const fetch = require('node-fetch');
const url = 'https://external.website';
const options = {
    method: 'GET',
    headers: {
        'Content-Type': 'application/json'
    }
};
try {
    const response = await fetch(url, options);
    const text = await response.text();
    return text;
} catch (error) {
    console.error(error);
    return '';
}
  1. The external website (https://external.website) return a XSS payload as content.
  1. The javascript code is executed and the victim's cookie data is sent to the external website.

PoC

<iframe src="javascript:alert(document.cookie);">

Impact

it is critical XSS vulnerability. All users of Flowise platform that use the workflows of agents.

Credited to quitbug.

Questions

Does this flaw have a CVE id?

No. GitHub lists it only as GHSA-4fr9-3x69-36wv, with no known CVE.

Which Flowise version fixes it?

3.0.8. All versions before 3.0.8 are affected, per the GitHub advisory.

Can fetched web content trigger it?

Yes. In the second route of the report, a custom function in an Agentflow fetches an external page that returns an XSS payload. Flowise renders it and the script runs in the viewer's browser.

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