CVE-2026-54310: n8n: SQL Injection in Postgres v1/TimesclaeDB Nodes

Published Jun 16, 2026
·
Updated

Impact An authenticated user with permission to create or modify workflows could supply a crafted parameters to the TimescaleDB and/or legacy Postgres v1 node's allowing arbitrary SQL to be injected and executed against the connected database within the privileges of the configured database account.

Patches The issue has been fixed in n8n versions 2.25.7, and 2.26.2. 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 Postgres and TimescaleDB node by adding n8n-nodes-base.postgres, n8n-nodes-base.timescaleDb to the NODESEXCLUDE environment variable.

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

Other sources

n8n is an open source workflow automation platform. Prior to 2.25.7 and 2.26.2, an authenticated user with permission to create or modify workflows could supply a crafted parameters to the TimescaleDB and/or legacy Postgres v1 node's allowing arbitrary SQL to be injected and executed against the connected database within the privileges of the configured database account. This vulnerability is fixed in 2.25.7 and 2.26.2.

MITRE

Affected Software

4 affected componentsFixes available
npm/n8n<2.25.7
2.25.7
npm/n8n>=2.26.0<2.26.2
2.26.2
n8n N8n Node.js<2.25.7
n8n N8n Node.js>=2.26.0<2.26.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/n8n to a version that resolves this vulnerability.

    Fixed in 2.25.7
  2. Upgrade

    Upgrade npm/n8n to a version that resolves this vulnerability.

    Fixed in 2.26.2
  3. Upgrade

    Upgrade n8n to a version that resolves this vulnerability.

    Fixed in 2.25.7
  4. Upgrade

    Upgrade n8n to a version that resolves this vulnerability.

    Fixed in 2.26.2
  5. Configuration

    Temporarily mitigate by disabling the legacy Postgres v1 node and the TimescaleDB node: add `n8n-nodes-base.postgres` and `n8n-nodes-base.timescaleDb` to the `NODES_EXCLUDE` environment variable.

    n8n environment NODES_EXCLUDE = n8n-nodes-base.postgres, n8n-nodes-base.timescaleDb
  6. Compensating control

    Temporarily reduce exposure by limiting workflow creation and editing permissions to fully trusted users only.

Event History

Jun 16, 2026
Advisory Published
via GitHub·05:51 PM
Data Sourced
via GitHub·05:51 PM
DescriptionSeverityWeaknessAffected Software
Jun 23, 2026
CVE Published
via MITRE·03:40 PM
Data Sourced
via MITRE·03:40 PM
DescriptionWeakness
Data Sourced
via NVD·04:17 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-54310?

The severity of CVE-2026-54310 is critical with a score of 9.9.

2

What type of vulnerability is CVE-2026-54310?

CVE-2026-54310 is classified as an SQL Injection vulnerability.

3

What impact does CVE-2026-54310 have?

CVE-2026-54310 allows an authenticated user to inject and execute arbitrary SQL against the connected database.

4

How do I fix CVE-2026-54310?

To fix CVE-2026-54310, ensure that all user input is properly sanitized and validated to prevent SQL injection.

5

Who is affected by CVE-2026-54310?

CVE-2026-54310 affects users who have permission to create or modify workflows in npm/n8n.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203