AgentbeamBeta
AI agent vulnerability · n8n

CVE-2026-54312: n8n: Microsoft SQL Node Prototype Pollution

highCVSS 4.0 7.2 · 3.1 8.5GHSA-x6p3-m6h9-fx7r

n8n versions below 2.24.0 have a prototype pollution flaw in the Microsoft SQL node. A user who can create or edit workflows can pass a crafted table parameter that pollutes Object.prototype for the whole server process and makes the n8n instance stop working until it is restarted. Fixed in n8n 2.24.0.

Published Jun 16, 2026 · Updated Jul 20, 2026 · Analysis Nov 9, 2026

What an attacker can do

The Microsoft SQL node (n8n-nodes-base.microsoftSql) accepts a table parameter from the workflow. A crafted value there writes to Object.prototype instead of to a normal object. Prototype pollution is process-wide in Node.js, so the change affects every workflow, every user and every request handled by that server process, for as long as it runs.

The advisory reports the effect as application-wide validation failures that leave the n8n instance completely non-functional until restarted. That is a denial of service for all tenants on the instance, caused by one low-privilege account. It can be repeated after each restart.

The attacker needs an authenticated account that can create or modify workflows. No user interaction is required. The advisory does not describe data theft or code execution, and the CVSS vector reports low integrity and high availability impact. Scope is changed because one user's workflow breaks the whole service.

Who is affected

Affected: npm n8n below 2.24.0. The risk is highest on instances where several people can create or edit workflows, such as shared team or hosted setups. The Microsoft SQL node must be available, which it is by default.

npm ls n8n
n8n --version

For Docker, check the image tag. The UI also shows the version under Help, About.

n8n

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

How to fix it

Upgrade to n8n 2.24.0 or later:

npm install [email protected]

For Docker, pull a 2.24.0 or newer tag. As a short-term measure the advisory suggests two steps that do not fully remove the risk: limit workflow creation and editing to fully trusted users, and add n8n-nodes-base.microsoftSql to the NODES_EXCLUDE environment variable to disable the node.

How to tell if you were hit

Sudden instance-wide failures, such as every workflow failing validation or the UI and API erroring at once, that clear only after a restart, point to this flaw. Look at the execution history and workflows for Microsoft SQL nodes whose table parameter contains __proto__, constructor or prototype. Check who edited those workflows just before the outage.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Impact

An authenticated user with permission to create or modify workflows could achieve global prototype pollution via the Microsoft SQL node by supplying a crafted value as the table parameter. This pollutes Object.prototype process-wide for the lifetime of the n8n server process, causing application-wide validation failures and rendering the n8n instance completely non-functional until restarted.

Patches

The issue has been fixed in n8n version 2.24.0. Users should upgrade to this version 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.
  • Disable the Microsoft SQL node by adding n8n-nodes-base.microsoftSql to the NODES_EXCLUDE environment variable.

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

Credited to s2ongmo.

Questions

Can CVE-2026-54312 run code on my n8n server?

The advisory describes denial of service, not code execution. Object.prototype is polluted process-wide and the instance becomes non-functional until restart.

Does the attacker need an account?

Yes. They need an authenticated user with permission to create or modify workflows.

How do I stay safe if I cannot upgrade?

Disable the node with NODES_EXCLUDE=n8n-nodes-base.microsoftSql and limit workflow editing to trusted users. The advisory says this only reduces the risk.

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