n8n Data Table Get node allows SQL injection in authenticated workflows

HighSE Fix-First Score 43/100CVE-2026-33713SE-AIV-01748Injection into a database or queryAI apps and chat interfacesMade public 26 Mar 2026

Download as PDF

What this means

An attacker with permission to create or edit workflows could read, modify, or delete data from the connected database. On PostgreSQL, an attacker could run multiple SQL statements in one go, making the damage worse. On SQLite, the risk is lower because only one statement can run at a time.

SecurityElites Manager Brief: the decision in one minute

A person with workflow editing rights in n8n can inject SQL commands through the Data Table Get node. On PostgreSQL this can destroy or steal data; on SQLite the damage is limited. You need to upgrade n8n to close this hole.

SecurityElites Fix-First Score43 of 100
Our own ranking of what to fix first. Real attacks count most, then the chance of attack, then severity.
SecurityElites fix windowWithin 30 days
High severity. This is our suggestion from common practice; your own policy comes first.
Who should own the fixPlatform or infrastructure team that runs n8n.
Likely effortAbout 30 minutes to an hour: download and deploy the patched version, then restart n8n. Testing existing workflows afterward may add time if you have many of them.

Questions to ask your team or supplier

  • Do we know which of our n8n deployments use PostgreSQL versus SQLite, and which teams have permission to edit workflows on each one?
  • Have we checked our n8n audit logs and database logs since this vulnerability was discovered to see if anyone has already tried to exploit it?
  • If we cannot upgrade immediately, can we safely disable the Data Table node or restrict workflow editing permissions to a smaller group while we plan the upgrade?

Message you can forward to the owning team

Security notice: n8n Data Table Get node allows SQL injection in authenticated workflows (CVE-2026-33713)

Severity: High
SecurityElites Fix-First Score: 43 of 100
SecurityElites fix window: Within 30 days
Action: upgrade to n8n 2.14.1 or later.
What we need from you: confirm whether we run this software, who owns it, and the date it will be fixed.
Full guide: https://securityelites.com/ai-vulnerabilities/cve-2026-33713-n8n-data-table-get-node-allows-sql-injection-in/
Source: SecurityElites AI Vulnerabilities Database, record SE-AIV-01748

What is at stake in your AI setup

  • Tools and systems connected to n8n agents: an attacker could modify workflows to send data to external systems or change how agents behave.
  • Data stored in the connected database: the attacker could read training data, retrieval data, or cached prompts used by AI models.
  • API keys and credentials stored in n8n: if the database holds keys for AI providers or other services, an attacker could steal or modify them.

Map where your company uses AI

Who is exposed

  • n8n deployments on PostgreSQL: highest risk because attackers can run multiple SQL commands.
  • n8n deployments on SQLite: lower risk because only single statements can run.
  • Teams where many people can create or edit workflows.
  • Workflows that use Data Table Get nodes with orderByColumn set to user-supplied input.

Upgrades you need

SoftwareAffected versionsMove to
n8n
npm
Every version before 1.123.26; 2.14.0 up to, but not including, 2.14.1; 2.0.0-rc.0 up to, but not including, 2.13.32.14.1 or later

Each maintained branch has its own fixed version. Stay on your branch if you cannot jump to the newest: n8n 1.123.26, 2.13.3, 2.14.1.

Am I affected?

Enter the version you run. Nothing you type is stored.

SecurityElites Developer Brief: the technical picture

Is it being attackedNo known attacks and no public attack code when CISA last reviewed it
Where the attacker must beAnywhere that can reach it over a network, including the internet if it is exposed
Account neededAn ordinary user account
Does a person have to do somethingNo. It works without anyone clicking or opening anything
How hard it is to doEasy. It works reliably once the attacker can reach it
Risk of: data being readHigh
Risk of: data or settings being changedHigh
Risk of: the service being taken downHigh
Can attackers automate it at scaleNo, according to CISA. Each target needs manual work
How much control an attacker gainsTotal control of the affected software, according to CISA

Read from the official severity rating: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Kind of coding mistake

  • CWE-89: database queries can be injected

If you cannot upgrade today

  • Limit workflow creation and editing permissions to only the most trusted team members until you can upgrade.
  • Disable the Data Table node by setting the environment variable `NODES_EXCLUDE='n8n-nodes-base.dataTable'` and restart n8n. This blocks all use of the vulnerable node.
  • Audit all existing workflows. Remove or rebuild any Data Table Get nodes where orderByColumn uses expressions based on external data, user input, or dynamic values. Use fixed column names instead.

Signs it may already have been used against you

  • Check n8n audit logs for workflows created or modified before this fix was applied, especially those with Data Table Get nodes.
  • Review PostgreSQL query logs for unusual multi-statement executions or SQL keywords (DROP, DELETE, ALTER, INSERT) that came from n8n connections.
  • Look for workflow execution errors that mention SQL syntax issues or unexpected command results in workflows using Data Table Get nodes.
  • Search for changes to database schema, missing data, or unexpected data modifications that happened around the time this vulnerability could have been exploited.

Log searches to start from

Find Data Table Get node executions (adapt field names for your logs)Splunk

source="n8n" "Data Table Get" node_name OR workflow_log | stats count by workflow_name, node_name

Search for PostgreSQL multi-statement executions from n8n (adapt field names)Elastic

source:postgres AND source_app:n8n AND (";") | search query:*DROP* OR query:*DELETE* OR query:*ALTER* OR query:*INSERT*

Written with AI as a starting point. Review them and change the index and field names to match your own logs before you rely on the result.

SecurityElites Fix Guide: step by step

  1. Find all n8n installations in your companyList every machine, container, or cloud service running n8n. Write down the version of each one. Check your Docker images, Kubernetes clusters, npm installations, and cloud platforms.
  2. Check which database each n8n usesFor each n8n installation, find out if it connects to PostgreSQL or SQLite. PostgreSQL deployments are higher priority. Look at the deployment config, environment variables, or connection settings.
  3. Review who can create and edit workflowsIdentify which users and teams have permission to create or modify workflows in n8n. Those people could exploit this bug, whether on purpose or by accident.
  4. Search for Data Table Get nodes in existing workflowsExport or scan all workflows in each n8n installation. Find any that use the Data Table Get node. Check if the orderByColumn field uses expressions with user input, external data, or variables.
  5. Back up n8n data before upgradingCreate a full backup of the n8n database and configuration. This lets you recover quickly if the upgrade goes wrong.
  6. Upgrade n8n to the fixed versionDeploy n8n version 1.123.26, 2.13.3, or 2.14.1 or later. Use the same update method you used before (Docker, npm, cloud provider, etc.). Then restart n8n.
  7. Verify the upgrade workedCheck that n8n started successfully and shows the new version number. Log in and confirm you can create and run workflows. Test a workflow with a Data Table Get node to make sure it still works.
  8. Look for signs of past misuseReview n8n audit logs and database logs for the period before this fix was applied. Search for SQL commands in workflow execution logs or unusual database activity. If you find suspicious activity, investigate whether data was read, changed, or deleted without permission.

How to confirm it is fixed: Log into each n8n installation and check the version number in the settings or by running `npm list n8n`. Confirm it shows 1.123.26, 2.13.3, 2.14.1 or higher.

SecurityElites Quick Fixes: copy and paste

Upgrade n8n with npmupgrade

npm install n8n@2.14.1
npm ls n8n

Check n8n version on npm-based installationfor this issue

npm list n8n

Check n8n version on Dockerfor this issue

docker exec <container_name> npm list n8n

Temporarily disable Data Table node (environment variable)for this issue

export NODES_EXCLUDE='n8n-nodes-base.dataTable'

Pass values as parameters (Python)general hardening

cur.execute("SELECT * FROM items WHERE id = %s", (item_id,))

Test in a non-production environment first. General hardening examples use placeholder names and ports; change them to match your setup.

Let your AI coding assistant do the upgrade

Paste this into the coding assistant you already use, inside the project. It checks first and asks before it changes anything.

Instruction for your coding assistant

You are helping me fix a security vulnerability (CVE-2026-33713) in this project.\n\n1. Search the whole repository, including lock files, container files and CI configuration, for these packages and list every place they are pinned or installed:\n   - n8n (npm): must be 2.14.1 or later
2. Tell me which version we use now and whether it is affected. Stop and ask me before changing anything.
3. After I agree, raise each one to the safe version, update the lock files, and keep every other dependency as it is.
4. Run the tests and tell me what failed.
5. Give me a short summary of the files you changed that I can put in the pull request.

SecurityElites Incident Drill: could your team handle this?

Four questions to ask in your next team meeting. If any has no clear answer, that is the gap to close.

Which n8n database type puts us at higher risk from this SQL injection bug?A good answer: PostgreSQL deployments are at higher risk because attackers can run multiple SQL statements in one command, while SQLite only allows single statements.
What would an attacker need to exploit this vulnerability?A good answer: An attacker would need permission to create or modify workflows in n8n, and they would use the Data Table Get node to inject SQL commands.
What is the first step to protect ourselves?A good answer: Find all n8n installations, check which database each one uses, and upgrade to version 1.123.26, 2.13.3, 2.14.1 or later.
If we cannot upgrade right now, what can we do to lower the risk?A good answer: Limit workflow editing to trusted users only, disable the Data Table node using the NODES_EXCLUDE environment variable, or audit and fix workflows that use dynamic expressions in the orderByColumn field.

Run a full timed drill with your team

Ticket for your backlog

Paste into Jira, GitHub Issues or any tracker that reads Markdown.

Ready-made ticket

## n8n Data Table Get node allows SQL injection in authenticated workflows (CVE-2026-33713)

**Severity:** High  |  **SE Fix-First Score:** 43/100  |  **Fix window:** Within 30 days
**Record:** SE-AIV-01748 https://securityelites.com/ai-vulnerabilities/cve-2026-33713-n8n-data-table-get-node-allows-sql-injection-in/

### Why this matters
An attacker with permission to create or edit workflows could read, modify, or delete data from the connected database. On PostgreSQL, an attacker could run multiple SQL statements in one go, making the damage worse. On SQLite, the risk is lower because only one statement can run at a time.

### What to do
1. Find all n8n installations in your company
2. Check which database each n8n uses
3. Review who can create and edit workflows
4. Search for Data Table Get nodes in existing workflows
5. Back up n8n data before upgrading
6. Upgrade n8n to the fixed version
7. Verify the upgrade worked
8. Look for signs of past misuse

Full steps: https://securityelites.com/ai-vulnerabilities/cve-2026-33713-n8n-data-table-get-node-allows-sql-injection-in/

### Done when
- [ ] n8n is at 2.14.1 or later everywhere it is installed
- [ ] Lock files, container images and CI configuration are updated
- [ ] Log into each n8n installation and check the version number in the settings or by running `npm list n8n`. Confirm it shows 1.123.26, 2.13.3, 2.14.1 or higher.
- [ ] Logs were checked for signs of earlier use

SecurityElites Fix Tracker

Record who owns this fix, the date it is due and when it is done, and see everything still open in one list. Free with a SecurityElites account.

Sign in to track this fix

Change history

  • 26 Mar 2026: Made public
  • 3 Dec 2026: Published

Official record

## Impact An authenticated user with permission to create or modify workflows could exploit a SQL injection vulnerability in the Data Table Get node. On default SQLite DB, single statements can be manipulated and the attack surface is practically limited. On PostgreSQL deployments, multi-statement execution is possible, enabling data modification and deletion.## Patches The issue has been fixed in n8n versions 1.123.26, 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. - Disable the Data Table node by adding `n8n-nodes-base.dataTable` to the `NODES_EXCLUDE` environment variable. - Review existing workflows for Data Table Get nodes where `orderByColumn` is set to an expression that incorporates external or user-supplied input.These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.

Weakness type: CWE-89

Use this record in your own tools

Get this record as JSON

curl https://securityelites.com/wp-json/se-aivd/v1/vulns/CVE-2026-33713

For scanners and pipelines: OSV format · CycloneDX format · API guide · Email alerts · Fix tracker

The plain-language sections were written with AI from the official record, and the upgrade versions come directly from the official data. Last updated 3 Dec 2026. Read the vendor advisory before changing a production system.