CVE-2025-71331 Flowise - Cross-Site Scripting in Chat Messages and Agent Workflows
Attackers can inject malicious JavaScript into Flowise chat messages or agent workflows to steal cookies and session data from victims.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2025-71331?
CVE-2025-71331 is a medium-severity cross-site scripting vulnerability in Flowiseai Flowise, published on 20 Jun 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-80
Which versions are affected by CVE-2025-71331?
2 open source packages ship an affected version, including flowise. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
flowise npm | All versions | 3.0.8 |
flowise npm | All versions | 3.0.8 |
Products include Flowiseai Flowise.
How do I fix CVE-2025-71331?
Upgrade flowise to 3.0.8 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2025-71331 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-71331 exists.
Other vulnerabilities in Flowiseai Flowise
- CVE-2025-71338 Flowise through 2.2.7 - Arbitrary File Write to Remote Code Execution via document-store API
- CVE-2026-40933 Flowise: Authenticated RCE Via MCP Adapters
- CVE-2025-61913 Flowise is vulnerable to arbitrary file read, arbitrary file write
- CVE-2025-59528 Flowise has Remote Code Execution vulnerability
- CVE-2026-52098 Code injection in n/a
Sources
Also known as GHSA-4fr9-3x69-36wv, GHSA-jv86-v5fr-xvg6.