Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-30821: CWE-434: Unrestricted Upload of File with Dangerous Type in FlowiseAI Flowise

0
High
VulnerabilityCVE-2026-30821cvecve-2026-30821cwe-434
Published: Sat Mar 07 2026 (03/07/2026, 05:07:50 UTC)
Source: CVE Database V5
Vendor/Project: FlowiseAI
Product: Flowise

Description

Flowise is a drag & drop user interface to build a customized large language model flow. Prior to version 3.0.13, the /api/v1/attachments/:chatflowId/:chatId endpoint is listed in WHITELIST_URLS, allowing unauthenticated access to the file upload API. While the server validates uploads based on the MIME types defined in chatbotConfig.fullFileUpload.allowedUploadFileTypes, it implicitly trusts the client-provided Content-Type header (file.mimetype) without verifying the file's actual content (magic bytes) or extension (file.originalname). Consequently, an attacker can bypass this restriction by spoofing the Content-Type as a permitted type (e.g., application/pdf) while uploading malicious scripts or arbitrary files. Once uploaded via addArrayFilesToStorage, these files persist in backend storage (S3, GCS, or local disk). This vulnerability serves as a critical entry point that, when chained with other features like static hosting or file retrieval, can lead to Stored XSS, malicious file hosting, or Remote Code Execution (RCE). This issue has been patched in version 3.0.13.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 03/14/2026, 19:46:12 UTC

Technical Analysis

FlowiseAI's Flowise is a drag-and-drop interface for building customized large language model flows. Versions prior to 3.0.13 expose an unauthenticated file upload API endpoint (/api/v1/attachments/:chatflowId/:chatId) listed in a whitelist, allowing any user to upload files without authentication. The server attempts to restrict uploads by validating MIME types against a configured whitelist (chatbotConfig.fullFileUpload.allowedUploadFileTypes). However, it relies solely on the client-provided Content-Type header (file.mimetype) without verifying the actual file content via magic bytes or validating the file extension (file.originalname). This trust in client-supplied metadata enables attackers to spoof allowed MIME types (e.g., application/pdf) and upload arbitrary malicious files, including scripts. Uploaded files are stored persistently in backend storage systems such as Amazon S3, Google Cloud Storage, or local disk. When combined with other Flowise features like static hosting or file retrieval, these malicious uploads can lead to Stored Cross-Site Scripting (XSS), hosting of malicious files, or even Remote Code Execution (RCE). The vulnerability is classified under CWE-434 (Unrestricted Upload of File with Dangerous Type). It has a CVSS 4.0 base score of 8.2 (high severity), reflecting network attack vector, high impact on integrity, and no user interaction required. The issue was patched in version 3.0.13, which presumably adds proper file content validation and/or authentication controls to the upload endpoint.

Potential Impact

This vulnerability poses significant risks to organizations deploying vulnerable versions of Flowise. Attackers can upload malicious files that may execute arbitrary code on the server or client side, leading to full system compromise or data breaches. Stored XSS attacks can compromise user sessions and steal sensitive information. Malicious file hosting can facilitate distribution of malware or phishing content. The unauthenticated nature of the upload endpoint increases the attack surface, allowing remote attackers to exploit the flaw without credentials or user interaction. Organizations relying on Flowise for AI workflows risk disruption, data loss, reputational damage, and regulatory penalties if exploited. The persistence of malicious files in backend storage further complicates detection and remediation. Given Flowise’s role in AI model orchestration, compromise could also affect AI integrity and confidentiality.

Mitigation Recommendations

Organizations should immediately upgrade Flowise to version 3.0.13 or later where this vulnerability is patched. Until upgrade, restrict network access to the /api/v1/attachments/:chatflowId/:chatId endpoint to trusted users only, ideally behind authentication and authorization controls. Implement server-side validation of uploaded files by verifying magic bytes and file extensions against allowed types rather than relying on client-supplied MIME types. Employ content scanning tools to detect malicious payloads in uploaded files. Monitor backend storage for unexpected or suspicious files and remove them promptly. Use Web Application Firewalls (WAFs) to detect and block suspicious upload attempts. Conduct regular security audits and penetration tests focusing on file upload functionalities. Educate developers and administrators about secure file handling practices and the risks of trusting client metadata.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-03-05T21:06:44.605Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 69abb493c48b3f10ff564c12

Added to database: 3/7/2026, 5:16:03 AM

Last enriched: 3/14/2026, 7:46:12 PM

Last updated: 4/21/2026, 7:12:04 PM

Views: 120

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses