AgentbeamBeta
AI agent vulnerability · n8n

CVE-2026-65592: n8n: Stored DOM XSS via Resource Locator `cachedResultUrl`

highCVSS 4.0 8.4GHSA-9wcp-9r3j-383q

n8n has a stored DOM XSS in the Resource Locator. The workflow-saved cachedResultUrl goes to window.open() without a scheme check, so a crafted workflow can run JavaScript in the browser of a user who opens it and uses its external links. Fixed in n8n 1.123.64, 2.29.8 and 2.30.1.

Published Jul 22, 2026 · Analysis Nov 8, 2026

What an attacker can do

The Resource Locator is the editor control that lets a node pick a resource, such as a sheet or a repository. It stores a cachedResultUrl inside the workflow. The editor passes that stored value to window.open() with no check of the URL scheme. An attacker can save a javascript: URL in that field.

The attacker needs permission to create or edit workflows, or a way to get a crafted workflow in front of a victim, such as a shared or imported one. The victim opens the workflow and interacts with the external link. The script then runs in the victim's n8n session in the browser (CWE-79).

From there the script acts as the victim in the n8n UI. That can expose their session and the workflows and credential metadata they can reach, and can change workflows on their behalf. An administrator victim raises the stakes. The CVSS 4.0 vector marks high confidentiality and integrity impact with user action required and low privileges.

Who is affected

n8n (npm) in three ranges: before 1.123.64, from 2.0.0-rc.0 before 2.29.8, and 2.30.0 before 2.30.1. Any instance where users other than the admin can create, edit or import workflows is the most exposed.

npm ls -g n8n

For Docker, check the image tag, or read the version in the n8n UI under Help, About.

n8n

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

n8n

Ecosystem
npm
Affected
>= 2.30.0, < 2.30.1
Fixed in
2.30.1
Check
npm ls n8n

n8n

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

How to fix it

Upgrade to the patched release in your line: 1.123.64, 2.29.8 or 2.30.1.

npm install -g [email protected]

If you cannot upgrade yet, the advisory gives two stopgaps. Restrict workflow creation and editing to fully trusted users. Audit existing workflows for cachedResultUrl values with non-HTTP(S) schemes. The advisory says these do not fully remove the risk.

How to tell if you were hit

Search workflow JSON, in the database or exported, for cachedResultUrl values that start with javascript: or any scheme other than http or https. Check who last edited any workflow that has one. Review recently imported or shared workflows first. Also check for unexpected workflow edits or new credentials made around the time a user opened a flagged workflow.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Impact

The Resource Locator passes the workflow-persisted cachedResultUrl to window.open() without scheme validation. When a victim opens the crafted workflow and interact with external links, the JavaScript payload runs in the victim's browser.

Patches

The issue has been fixed in n8n versions 1.123.64, 2.29.8, and 2.30.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:

  • Restrict workflow creation and editing permissions to fully trusted users only.
  • Audit existing workflows for unexpected cachedResultUrl values containing non-HTTP(S) schemes.

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

Credited to odgrso.

Questions

Does CVE-2026-65592 need user interaction?

Yes. The victim must open the crafted workflow and interact with the external links in the Resource Locator.

Which n8n versions are fixed?

1.123.64 on the 1.x line, 2.29.8 and 2.30.1 on the 2.x line. Upgrade to one of these or later.

Is it exploited in the wild?

The sources do not say so. VulnCheck notes no exploit status.

Is there a workaround?

Only partial ones: limit workflow editing to trusted users and audit cachedResultUrl values for non-HTTP(S) schemes.

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