{"id":"CVE-2025-46343","published":"2025-04-29T04:35:16Z","modified":"2025-04-29T13:35:04Z","title":"n8n Vulnerable to Stored XSS through Attachments View Endpoint","vendor":"n8n","product":"n8n","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00274,"percentile":0.20076,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/n8n-io/n8n/security/advisories/GHSA-c8hm-hr8h-5xjw","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/n8n-io/n8n/pull/14350","tags":["x_refsource_MISC"]},{"url":"https://github.com/n8n-io/n8n/pull/14685","tags":["x_refsource_MISC"]},{"url":"https://github.com/n8n-io/n8n/releases/tag/n8n%401.90.0","tags":["x_refsource_MISC"]}],"priority":{"score":7.5,"factors":[{"name":"EPSS percentile","points":4.02},{"name":"CVSS severity","points":3.5}]},"vendorSlug":"n8n","affectedVersions":[{"vendor":"n8n-io","product":"n8n","versions":["< 1.90.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-29T13:34:53.606717Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"n8n","vulnerableRanges":["<1.90.0"],"patched":["1.90.0"],"from":["GHSA-c8hm-hr8h-5xjw"],"provenance":"source"}],"summary":{"text":"A stored cross-site scripting flaw in the attachments view endpoint of n8n, a workflow automation platform, allows malicious script to be served from uploaded binary files because the MIME type of those files is not restricted and can be set through a GET parameter. An attacker with member-level authenticated access who uploads a crafted HTML file can have its script run in another user's session when that user is tricked into visiting the binary data endpoint, which requires user interaction and could be used to change the victim's account email address and take over the account.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:15:42Z"},"euvd":{"id":"EUVD-2025-12609","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2023-27562","published":"2023-05-10","fixed":"0.216.1","kev":false},{"cve":"CVE-2023-27563","published":"2023-05-10","fixed":"0.216.1","kev":false},{"cve":"CVE-2023-27564","published":"2023-05-10","fixed":"0.216.1","kev":false},{"cve":"CVE-2025-46343","published":"2025-04-29","fixed":"1.90.0","kev":false},{"cve":"CVE-2025-49592","published":"2025-06-26","fixed":"1.98.0","kev":false,"link":{"from":"CVE-2025-46343","to":"CVE-2025-49592","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:n8n","fromFixed":"1.90.0","toFixed":"1.98.0","daysApart":58}]}},{"cve":"CVE-2025-52478","published":"2025-08-19","fixed":"1.98.2","kev":false},{"cve":"CVE-2025-49595","published":"2025-07-03","fixed":"1.99.0","kev":false}],"package":"npm:n8n"}}