NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · n8n

CVE-2026-33749: n8n Vulnerable to XSS via Binary Data Inline HTML Rendering

mediumCVSS 4.0 6.3 · 3.1 8.9GHSA-qfc3-hm4j-7q77

n8n serves HTML binary data inline from its own origin, so a workflow author can run JavaScript in another user's n8n session. Upgrade to 1.123.27, 2.13.3 or 2.14.1. The attacker needs permission to create or edit workflows and must get a higher-privileged user to open a link.

Published Mar 26, 2026 · Analysis Oct 31, 2026

What an attacker can do

A workflow can produce an HTML binary data object that has no filename. The /rest/binary-data endpoint returned such objects inline, on the n8n origin, without a Content-Disposition header and without a Content-Security-Policy header. The browser then rendered the HTML as a page of n8n itself, with full same-origin JavaScript access (CWE-79).

The attacker is an authenticated user who can create or modify workflows. They build a workflow that outputs the HTML, then send the resulting binary-data URL to an admin or other higher-privileged user. When that user opens the link, the script runs in their authenticated session.

From there the script can read and change workflows, exfiltrate workflows and stored credentials, and escalate to admin. The CVSS 3.1 vector uses a changed scope (S:C) and rates confidentiality and integrity as high, because the script acts as the victim. Because n8n often holds API keys for many services, one stolen admin session can expose connected systems.

Who is affected

Affected npm versions of n8n: below 1.123.27; exactly 2.14.0; and 2.0.0-rc.0 up to but not including 2.13.3. Check what you run:

npm ls n8n
n8n --version

For Docker, check the image tag. Instances where only fully trusted users can edit workflows have a much smaller exposure.

n8n

Ecosystem
npm
Affected
< 1.123.27
Fixed in
1.123.27
Check
npm ls n8n

n8n

Ecosystem
npm
Affected
= 2.14.0
Fixed in
2.14.1
Check
npm ls n8n

n8n

Ecosystem
npm
Affected
>= 2.0.0-rc.0, < 2.13.3
Fixed in
2.13.3
Check
npm ls n8n

How to fix it

Upgrade to n8n 1.123.27, 2.13.3 or 2.14.1, or any later version, on the matching release line.

npm install -g n8n@latest

The advisory gives two temporary mitigations that do not fully remove the risk: limit workflow creation and editing permissions to fully trusted users, and restrict network access to the instance so untrusted users cannot reach binary-data URLs.

How to tell if you were hit

Review recently created or changed workflows for nodes that output HTML as binary data without a filename, especially from users who are not admins. Look in access logs for requests to /rest/binary-data from admin sessions that were reached through a link rather than the n8n UI. Check for workflow edits, new credentials or role changes made by an admin account around that time. The advisory gives no log signature.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Impact

An authenticated user with permission to create or modify workflows could craft a workflow that produces an HTML binary data object without a filename. The /rest/binary-data endpoint served such responses inline on the n8n origin without Content-Disposition or Content-Security-Policy headers, allowing the HTML to render in the browser with full same-origin JavaScript access.

By sending the resulting URL to a higher-privileged user, an attacker could execute JavaScript in the victim's authenticated session, enabling exfiltration of workflows and credentials, modification of workflows, or privilege escalation to admin.

Patches

The issue has been fixed in n8n versions 1.123.27, 2.13.3, and 2.14.1. Users should upgrade to one of these versions or later to remediate the vulnerability.

Workarounds

If upgrading is not immediately possible, administrators should consider the following temporary mitigations:

  • Limit workflow creation and editing permissions to fully trusted users only.
  • Restrict network access to the n8n instance to prevent untrusted users from accessing binary data URLs.

These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.

Credited to simonkoeck.

Questions

Does the attacker need an n8n account?

Yes. They need permission to create or modify workflows. The CVSS vectors list low privileges and required user interaction.

What can the script do once it runs?

It runs in the victim's session, so it can exfiltrate workflows and credentials, modify workflows, or escalate to admin, per the advisory.

Which n8n versions are fixed?

1.123.27, 2.13.3 and 2.14.1. Version 2.14.0 is affected, and so is every release below 1.123.27 and between 2.0.0-rc.0 and 2.13.3.

Is it exploited in the wild?

No source reports exploitation, and it is not in CISA's KEV catalog. The EPSS score is 0.0025.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More n8n vulnerabilities

All n8n entries