CVE-2026-103250 n8n before 1.123.80, 2.39.6, and 2.40.1 NoSQL Injection via MongoDB Chat Memory

High 7.0 Published Updated

Unauthenticated attackers can inject MongoDB operators into the sessionId parameter to read, modify, or delete other users' conversation histories.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-103250?

CVE-2026-103250 is a high-severity SQL injection vulnerability in n8n-io n8n, published on 1 Oct 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

n8n versions before 1.123.80, from 2.0.0 before 2.39.6, and from 2.40.0 before 2.40.1 contain a NoSQL injection vulnerability in the MongoDB Chat Memory node that fails to validate the sessionId parameter. Unauthenticated attackers can supply MongoDB query operators in the sessionId field to access conversation histories from other users and perform unauthorized write and delete operations.

Weakness: CWE-943

Which versions are affected by CVE-2026-103250?

How do I fix CVE-2026-103250?

Upgrade to a fixed version.

Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.

Is CVE-2026-103250 being exploited?

There is no known exploitation of CVE-2026-103250 in the wild and no public exploit code.

Sources

Also known as GHSA-gpvq-4wmp-cp47, GHSA-w24g-6454-7w7f, MINI-hmq4-47w6-cppg.

Is CVE-2026-103250 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free