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

CVE-2026-25054: n8n Has Stored Cross-site Scripting via Markdown Rendering in Workflow UI

highCVSS 4.0 8.5GHSA-qpq4-pw7f-pp8w

n8n has a stored cross-site scripting flaw in the markdown rendering component of its editor, including workflow sticky notes. A user who can create or edit workflows can embed a script that runs with same-origin privileges when someone else opens the workflow. That can lead to session hijacking and account takeover. Fixed in n8n 2.2.1 and 1.123.9.

Published Feb 4, 2026 · Analysis Nov 1, 2026

What an attacker can do

n8n renders markdown in sticky notes and other interface areas. The markdown component did not neutralize all script content, so a crafted note stored in a workflow executes in the browser of whoever views it. The advisory does not name the exact sanitization gap or give a payload.

The attacker needs an authenticated account that can create or modify workflows. Another user must then interact with the workflow, for example by opening it in the editor. The script runs with the n8n origin and the victim's session, so it can act as that user. The CVSS 4.0 vector shows low privileges, passive user interaction and high confidentiality and integrity impact.

The realistic risk is on multi-user instances, or when workflows are imported from outside sources. An editor with limited rights could take over an owner or administrator account and, through it, reach credentials stored in n8n. A single-user instance that never opens foreign workflows is much less exposed.

Who is affected

The GitHub advisory page lists all versions before 2.2.0 as affected. The package data shows two ranges: 2.0.0 up to 2.2.1, and everything below 1.123.9. Fixed releases are 2.2.1 and 1.123.9. Check your version:

npm ls n8n

For Docker, read the image tag. Instances with several editors, or that import shared workflows, carry the most risk.

n8n

Ecosystem
npm
Affected
>= 2.0.0, < 2.2.1
Fixed in
2.2.1
Check
npm ls n8n

n8n

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

How to fix it

Upgrade to n8n 2.2.1 on the 2.x line or 1.123.9 on the 1.x line, or any later release.

If you cannot upgrade yet, the advisory suggests these short-term steps, which it says do not fully remove the risk:

  • Limit workflow creation and editing to fully trusted users.
  • Review existing workflows for malicious markdown in sticky notes and other components.
  • Warn users about opening workflows from untrusted sources.

How to tell if you were hit

Review sticky notes and other markdown fields in existing workflows for script tags, event-handler attributes such as onerror, javascript: URLs or embedded HTML. Look at who created or last edited workflows that other users opened, and at workflow imports from outside sources. The sources give no log line for exploitation. If a suspicious note turns up, treat sessions of users who opened that workflow as exposed: invalidate sessions and rotate credentials those users could reach.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Impact

A Cross-site Scripting (XSS) vulnerability existed in a markdown rendering component used in n8n's interface, including workflow sticky notes and other areas that support markdown content.

An authenticated user with permission to create or modify workflows could abuse this to execute scripts with same-origin privileges when other users interact with a maliciously crafted workflow. This could lead to session hijacking and account takeover.

Patches

The issue has been fixed in n8n versions 2.2.1 and 1.123.9. Users should upgrade to 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.
  • Review existing workflows for potentially malicious markdown content in sticky notes and other components.
  • Educate users about the risks of opening workflows from untrusted sources.

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

--- n8n has adopted CVSS 4.0 as primary score for all security advisories. CVSS 3.1 vector strings are provided for backward compatibility.

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N

Credited to MyLong.

Questions

Does CVE-2026-25054 need an account?

Yes. The attacker needs permission to create or modify workflows, and a victim must interact with the crafted workflow. It is not a pre-authentication flaw.

Where is the vulnerable markdown?

In a markdown rendering component in the n8n interface, including workflow sticky notes. The advisory does not list every area that renders markdown.

Is it exploited in the wild?

No source reports exploitation, and the entry has no CISA KEV data.

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