CVE-2026-54313: CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in n8n-io n8n
n8n is an open source workflow automation platform. Prior to 2.24.0, an authenticated user with workflow edit access could supply a malicious filter value in the MongoDB node's Find And Replace operation. The value was not validated before being passed to MongoDB as a query filter, allowing unintended documents to be matched and overwritten with attacker-controlled content. This vulnerability is fixed in 2.24.0.
AI Analysis
Technical Summary
CVE-2026-54313 describes an SQL injection vulnerability in the n8n workflow automation platform. Specifically, before version 2.24.0, the MongoDB node's Find And Replace operation did not validate filter values supplied by authenticated users with workflow edit access. This improper neutralization of special elements allowed attackers to manipulate the query filter, causing unintended documents to be matched and overwritten with attacker-controlled content. The vulnerability is resolved in n8n version 2.24.0.
Potential Impact
An attacker with authenticated workflow edit privileges can exploit this vulnerability to overwrite unintended documents in the MongoDB database with arbitrary content. This could lead to data corruption or unauthorized data manipulation within the affected workflows.
Mitigation Recommendations
Upgrade n8n to version 2.24.0 or later, where this vulnerability has been fixed. Since no official vendor advisory or patch link is provided, verify the upgrade from the official n8n release notes or repository to ensure the fix is applied.
CVE-2026-54313: CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in n8n-io n8n
Description
n8n is an open source workflow automation platform. Prior to 2.24.0, an authenticated user with workflow edit access could supply a malicious filter value in the MongoDB node's Find And Replace operation. The value was not validated before being passed to MongoDB as a query filter, allowing unintended documents to be matched and overwritten with attacker-controlled content. This vulnerability is fixed in 2.24.0.
CVSS v4.0
Score 6.5medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-54313 describes an SQL injection vulnerability in the n8n workflow automation platform. Specifically, before version 2.24.0, the MongoDB node's Find And Replace operation did not validate filter values supplied by authenticated users with workflow edit access. This improper neutralization of special elements allowed attackers to manipulate the query filter, causing unintended documents to be matched and overwritten with attacker-controlled content. The vulnerability is resolved in n8n version 2.24.0.
Potential Impact
An attacker with authenticated workflow edit privileges can exploit this vulnerability to overwrite unintended documents in the MongoDB database with arbitrary content. This could lead to data corruption or unauthorized data manipulation within the affected workflows.
Mitigation Recommendations
Upgrade n8n to version 2.24.0 or later, where this vulnerability has been fixed. Since no official vendor advisory or patch link is provided, verify the upgrade from the official n8n release notes or repository to ensure the fix is applied.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-12T18:42:02.222Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a3aafb0eed863c81e44dd63
Added to database: 06/23/2026, 16:09:20 UTC
Last enriched: 06/23/2026, 16:24:57 UTC
Last updated: 08/06/2026, 00:41:14 UTC
Views: 56
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.