CVE-2025-46343 Details
Description
n8n is a workflow automation platform. Prior to version 1.90.0, n8n is vulnerable to stored cross-site scripting (XSS) through the attachments view endpoint. n8n workflows can store and serve binary files, which are accessible to authenticated users. However, there is no restriction on the MIME type of uploaded files, and the MIME type could be controlled via a GET parameter. This allows the server to respond with any MIME type, potentially enabling malicious content to be interpreted and executed by the browser. An authenticated attacker with member-level permissions could exploit this by uploading a crafted HTML file containing malicious JavaScript. When another user visits the binary data endpoint with the MIME type set to text/html, the script executes in the context of the user’s session. This script could send a request to change the user’s email address in their account settings, effectively enabling account takeover. This issue has been patched in version 1.90.0.
A stored cross-site scripting vulnerability has been identified in n8n, a workflow automation platform, prior to version 1.90.0. This issue arises in the attachments view endpoint, where workflows can store and serve binary files to authenticated users. The vulnerability exists because there were no restrictions on the MIME types of uploaded files, allowing an authenticated attacker with member-level permissions to upload a crafted HTML file containing malicious JavaScript. When another user accesses the binary data endpoint with the MIME type set to text/html, the script executes in the context of the user's session, potentially leading to account takeover by changing the user's email address in their account settings.
Users can upgrade to n8n version 1.90.0 or later to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 29, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/n8n-io/n8n/pull/14350 | [email protected] | Issue TrackingPatch |
| https://github.com/n8n-io/n8n/pull/14685 | [email protected] | Issue TrackingPatch |
| https://github.com/n8n-io/n8n/releases/tag/n8n%401.90.0 | [email protected] | Release Notes |
| https://github.com/n8n-io/n8n/security/advisories/GHSA-c8hm-hr8h-5xjw | [email protected] | PatchVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| n8n n8n | < 1.90.0 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 9, 2025 | Initial Analysis | [email protected] |
| Apr 29, 2025 | New CVE Received | [email protected] |