# CVE-2026-54313: n8n: NoSQL Injection in MongoDB Node Find And Replace Operation

- Severity: Medium 6.5 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 18% of CVEs (2026-12-01)
- Published: 2026-06-16T18:59:23.000Z
- Modified: 2026-10-25T23:10:00.167Z
- Also known as: GHSA-jpq7-226w-6cxx
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- n8n-io n8n: < 2.24.0
- n8n (npm): before 2.24.0
- n8n n8n: before 2.24.0

## Every score

- GitHub_M: CVSS:4.0 6.5 Medium `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`
- GitHub: CVSS:3.1 7.7 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N`
- GitHub: CVSS:4.0 Medium `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`
- NVD: CVSS:3.1 7.7 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N`

## References

- <https://github.com/n8n-io/n8n/security/advisories/GHSA-jpq7-226w-6cxx> (mitigation, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-54313> (advisory)
- <https://github.com/n8n-io/n8n> (package)

## Sources

- CVE List: [CVE-2026-54313](https://www.cve.org/CVERecord?id=CVE-2026-54313), CVE Terms of Use, modified 2026-06-23
- GitHub Advisory Database: [GHSA-jpq7-226w-6cxx](https://github.com/advisories/GHSA-jpq7-226w-6cxx), CC-BY-4.0, modified 2026-07-20
- NVD: [CVE-2026-54313](https://nvd.nist.gov/vuln/detail/CVE-2026-54313), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-54313 · Whole record: https://cve.day/CVE-2026-54313.json · Rebuilt by cve.day 2026-11-25T22:59:25.466Z
