CVE-2026-103965: CWE-94: Improper Control of Generation of Code ('Code Injection') in MongoDB MongoDB Server
Description
An issue in MongoDB Server's aggregation framework can cause certain constant values to be handled incorrectly during internal query rewriting. Under certain conditions, an authenticated user with read access may receive field values in aggregation output that the query did not intend to return.
CVSS v4.0
Score 5.3medium
Affected software
MongoDB
MongoDB Server
pkg:github/mongodb/mongoRun 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
This vulnerability involves improper control of code generation (CWE-94) within MongoDB Server's aggregation framework. Specifically, during internal query rewriting, certain constant values can be incorrectly handled, leading to unintended field values being returned in aggregation query results. The flaw requires an authenticated user with read privileges to exploit and does not require user interaction. The CVSS 4.0 base score is 5.3 (medium severity), reflecting network attack vector, low complexity, no privileges required beyond read access, and limited impact on confidentiality and integrity. Affected versions include MongoDB Server versions >=7.0 <7.0.45, >=8.0 <8.0.34, >=8.3.0 <8.3.13, and >=9.0 <9.0.4.
Potential Impact
An authenticated user with read access may receive unintended field values in aggregation query outputs, potentially exposing data not intended by the query. The impact is limited to confidentiality and integrity with low severity as per CVSS 4.0. There is no indication of privilege escalation or denial of service. No known exploits are reported in the wild.
Mitigation Recommendations
No explicit patch links or vendor advisory details are provided in the input. Patch status is not yet confirmed — check the official MongoDB vendor advisory for current remediation guidance. Until patched, restrict read access to trusted users only and monitor for unusual aggregation query results.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- mongodb
- Date Reserved
- 2026-10-01T15:53:56.581Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6ace52f62cdf04f65680e4f5
Added to database: 10/13/2026, 15:49:10 UTC
Last enriched: 10/13/2026, 16:04:07 UTC
Last updated: 10/13/2026, 16:49:17 UTC
Views: 6
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.