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

CVE-2026-42233: n8n has SQL Injection in Oracle Database Node via Limit Field

mediumCVSS 4.0 5.3 · 3.1 9.8GHSA-r6jc-mpqw-m755

The n8n Oracle Database node's select operation puts the Limit field into the SQL query without sanitizing or parameterizing it. If a workflow feeds outside input, such as a webhook value, into Limit, an attacker can inject SQL and read data from the connected Oracle database. Fixed in n8n 1.123.32, 2.17.4 and 2.18.1.

Published Apr 29, 2026 · Updated May 8, 2026 · Analysis Nov 5, 2026

What an attacker can do

Values passed into the Limit field by expression are interpolated straight into the SQL text of the select operation. A crafted value then runs as part of the query, not as a number. The advisory says an attacker can inject arbitrary SQL and exfiltrate data from the Oracle database the node connects to.

The flaw needs a particular workflow: the Oracle Database node must take user-controlled input through an expression into Limit. Whether the attacker needs credentials depends on how the workflow is triggered. An unauthenticated webhook gives unauthenticated exploitation. The two CVSS scores differ a lot. The 3.1 score is 9.8 with no privileges. The 4.0 score is 5.3 and counts the workflow-configuration precondition. Read both with that precondition in mind.

The damage lands in the Oracle database, with high confidentiality and integrity impact on that system. It depends on the database account the n8n credential uses.

Who is affected

n8n on npm below 1.123.32, from 2.0.0 below 2.17.4, and 2.18.0 below 2.18.1. Only workflows with the Oracle Database node, the select operation, and external input in the Limit field are exposed.

npm ls n8n

n8n

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

n8n

Ecosystem
npm
Affected
>= 2.18.0, < 2.18.1
Fixed in
2.18.1
Check
npm ls n8n

n8n

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

How to fix it

Upgrade to n8n 1.123.32, 2.17.4 or 2.18.1 (or later) for your release line:

npm install -g [email protected]

Short-term steps from the advisory, which do not fully remove the risk:

  • Limit workflow creation and editing to fully trusted users.
  • Add n8n-nodes-base.oracleDatabase to the NODES_EXCLUDE environment variable.
  • Do not pass unvalidated external input into the Limit field.

How to tell if you were hit

Check execution data for Oracle Database node runs where Limit held anything other than a plain number. Look in the Oracle audit trail for SELECT statements from the n8n database account that contain unexpected clauses such as UNION. Review logs of webhooks that feed those workflows for odd parameter values.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Impact

A flaw in the Oracle Database node's select operation allowed user-controlled input passed into the Limit field via expressions to be interpolated directly into the SQL query without sanitization or parameterization. In workflows where external input is passed into the Limit field (e.g., from a webhook), an attacker could inject arbitrary SQL and exfiltrate data from the connected Oracle database.

Exploitation requires a specific workflow configuration:

  • The Oracle Database node must be used with user-controlled input passed via expressions into the Limit field.
  • Authentication requirements depend on the workflow's configuration (e.g., an unauthenticated webhook endpoint would allow unauthenticated exploitation).

Patches

The issue has been fixed in n8n versions 1.123.32, 2.17.4, and 2.18.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.
  • Disable the Oracle Database node by adding n8n-nodes-base.oracleDatabase to the NODES_EXCLUDE environment variable.
  • Avoid passing unvalidated external user input into the Oracle Database node's Limit field via expressions.

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

Credited to pawbednarz.

Questions

Can CVE-2026-42233 be exploited without authentication?

Yes, if the workflow starts from an unauthenticated webhook that passes input into Limit. Otherwise it depends on the workflow's own access control.

Why do the CVSS scores differ so much?

The 3.1 vector scores 9.8 with no preconditions. The 4.0 vector scores 5.3 and counts the workflow configuration the attack requires.

Is every Oracle node workflow exposed?

No. Only those that route external input by expression into the Limit field of the select operation.

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