# CVE-2025-46343: n8n Vulnerable to Stored XSS through Attachments View Endpoint

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.0
- **CVSS:** 5.0 (v3.1, CNA) `CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:L/A:N`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Privileges required: Low; User interaction: Required; Scope: Unchanged; Confidentiality impact: High; Integrity impact: Low; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.49% (percentile 35, 2026-11-26)
- **CWE:** CWE-79
- **Aliases:** GHSA-c8hm-hr8h-5xjw
- **Published:** 2025-04-28T21:02:23.000Z
- **Modified:** 2026-06-17T09:26:16.270Z

## Who should check

- Projects that depend on npm package n8n (\< 1.90.0)
- Anyone running n8n-io n8n \< 1.90.0

## 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.

## Affected and fixed versions

- npm `n8n`: affected \< 1.90.0; fixed 1.90.0 (osv)
- n8n-io n8n: \< 1.90.0 (cvelist)

## Mitigation

- Upgrade n8n to 1.90.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-46343. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-46343.md
Affected: n8n < 1.90.0
Fixed in: 1.90.0

Steps:
1. Search this machine and project for n8n (npm), n8n-io n8n: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-46343 being exploited?

There is no confirmed exploitation: CVE-2025-46343 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.49% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-46343?

Medium: CVSS 5.0 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2025-46343?

n8n \< 1.90.0.

### Is there a fix for CVE-2025-46343?

Yes. Fixed in 1.90.0. Upgrade n8n to 1.90.0 or later.

### How do I check if I'm affected by CVE-2025-46343?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/n8n-io/n8n/security/advisories/GHSA-c8hm-hr8h-5xjw>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2025-46343>
- patch: <https://github.com/n8n-io/n8n/pull/14350>
- patch: <https://github.com/n8n-io/n8n/pull/14685>
- other: <https://github.com/n8n-io/n8n/releases/tag/n8n%401.90.0>
- other: <https://github.com/n8n-io/n8n>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-46343>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-c8hm-hr8h-5xjw> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2025-46343> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-46343>
