CVE-2025-71331 Flowise - Cross-Site Scripting in Chat Messages and Agent Workflows

Medium 5.1 Published Updated

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.

PackageAffectedFixed in
flowise npmAll versions3.0.8
flowise npmAll versions3.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.

All Flowiseai Flowise vulnerabilities

Sources

Also known as GHSA-4fr9-3x69-36wv, GHSA-jv86-v5fr-xvg6.

Is CVE-2025-71331 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free