# CVE-2026-77070: n8n MongoDB node NoSQL injection in query operations

Source: https://junglewise.ai/threats/cve-2026-77070-n8n-mongodb-node-nosql-injection-in-query-operations  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-08-20. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2026-77070 · Severity: critical · CVSS 9.8 · Published 2026-08-20

n8n is a workflow automation platform that connects to databases and services via node-based workflows. The MongoDB node, which allows users to query, delete, and aggregate data in MongoDB databases, fails to sanitize user input when processing database queries. An attacker who can control data flowing into a MongoDB query operation can inject MongoDB operators to read entire collections, delete all records, or perform other unauthorized database operations.

Technologies: [N8n](https://junglewise.ai/threats/technologies/n8n). Vendors: [N8n](https://junglewise.ai/threats/vendors/n8n).

## Quick answers

**Is CVE-2026-77070 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-77070 being exploited in the wild.

**How severe is CVE-2026-77070?** Critical severity, with a CVSS score of 9.8, published 20 August 2026.

**Which products and versions are affected?** N8n before 1.123.69, 2.33.4, 2.34.1.

**Is there a fix for CVE-2026-77070?** A patch was published on 2026-08-20: Patched in versions 1.123.69, 2.33.4, and 2.34.1 Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-77070 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-77070?** Check whether you run N8n at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

This is a NoSQL injection vulnerability (CWE-943) in n8n's MongoDB node. The Find, Delete, and Aggregate operations parse the Query parameter as JSON after expression resolution without sanitizing MongoDB operators like $ne or $where. An attacker who can influence the resolved query through externally-controlled data (e.g., webhook input, previous node output) can inject malicious operators to bypass the intended single-document lookup logic, enabling full-collection disclosure, full-collection deletion, or arbitrary database operations. The vulnerability requires the attacker to have workflow configuration capabilities or control over data sources feeding into the MongoDB node query field. Patches are available in n8n versions 1.123.69, 2.33.4, and 2.34.1 or later.

## Affected products

- n8n n8n before 1.123.69, 2.33.4, 2.34.1

## Timeline

- 2026-08-05: disclosed
- 2026-08-20: advisory
- 2026-08-20: patched: Patched in versions 1.123.69, 2.33.4, and 2.34.1

## References

- [https://github.com/n8n-io/n8n/security/advisories/GHSA-953p-jm2c-8h5j](https://github.com/n8n-io/n8n/security/advisories/GHSA-953p-jm2c-8h5j)
- [https://www.vulncheck.com/advisories/n8n-before-nosql-injection-via-mongodb-node](https://www.vulncheck.com/advisories/n8n-before-nosql-injection-via-mongodb-node)

## Related threats

- [n8n path traversal in Databricks node](https://junglewise.ai/threats/cve-2026-119557-n8n-from-2-14-0-through-2-46-3-contains-a-path-traversal)
- [n8n remote code execution in deprecated Function nodes](https://junglewise.ai/threats/cve-2026-119408-n8n-before-2-42-6-2-43-x-before-2-43-3-and-3-x-before-3-0-1)
- [n8n Slack Trigger SSRF and token exfiltration](https://junglewise.ai/threats/cve-2026-118679-n8n-before-1-123-83-2-41-4-and-2-42-1-contains-a-server-side)
- [n8n prototype pollution in workflow history compaction](https://junglewise.ai/threats/cve-2026-118678-n8n-before-2-41-4-and-2-42-x-before-2-42-1-contains-a-prototype)
- [n8n Local Gateway deep-link missing confirmation re-pairing](https://junglewise.ai/threats/cve-2026-118677-n8n-before-2-41-4-and-2-42-x-before-2-42-1-contains-a-missing)
