CVE-2026-54313: medium-severity vulnerability in n8n-io n8n
n8n: NoSQL Injection in MongoDB Node Find And Replace Operation
Published
13Vexday Risk Score
No sign of exploitation. No public exploitation artifact known so far.
ssvc Trackcvss 6.5epss 0.3%
exploitation probability
0.3%top 74% of all CVEs
observed exploitation
nono source reports it
In short
A user who can edit workflows in n8n can inject malicious code into MongoDB queries through the Find And Replace operation, allowing them to modify documents they shouldn't have access to.
Technical detail
NoSQL injection vulnerability in n8n's MongoDB node Find And Replace operation where user-supplied filter values are passed unsanitized to MongoDB queries. An authenticated user with workflow edit permissions can manipulate the query filter to match unintended documents and overwrite them with attacker-controlled data, bypassing intended access controls.
Summary generated and translated by AI from the official 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:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H
Affected products
n8n-io · n8nRelated CVEs — n8n-io n8n
In the same product, most dangerous first.
CVE-2025-68613CRITICALn8n Vulnerable to Remote Code Execution via Expression InjectionEPSS 99.0%KEVCVE-2026-21858CRITICALn8n Vulnerable to Unauthenticated File Access via Improper Webhook Request HandlingEPSS 78.2%CVE-2025-68668CRITICALn8n Vulnerable to Arbitrary Command Execution in Pyodide based Python Code NodeEPSS 13.2%CVE-2026-21877CRITICALn8n is vulnerable to Remote Code Execution via Arbitrary File WriteEPSS 5.4%CVE-2026-25055HIGHn8n Arbitrary File Write on Remote Systems via SSH NodeEPSS 1.9%CVE-2026-25049CRITICALn8n Has an Expression Escape Vulnerability Leading to RCEEPSS 1.6%