CVE-2026-18708: CWE-94: Improper Control of Generation of Code ('Code Injection') in MongoDB MongoDB Server
An issue in MongoDB Server's JavaScript scripting engine could allow an authenticated user with write privileges to cause code they control to be executed within the query scope of other users, through a specially crafted stored value processed during an internal maintenance cycle. This could result in corruption of query results affecting other users and denial of service targeted at their operations on the same database. Impact is limited to the scripting engine's execution sandbox, which does not provide access to database, filesystem, or network resources.
AI Analysis
Technical Summary
This vulnerability involves improper control of code generation (CWE-94) in MongoDB Server's JavaScript scripting engine. An authenticated user with write privileges can inject code that executes within the query context of other users by exploiting how stored values are processed during internal maintenance. The execution is confined to the scripting engine's sandbox, preventing access to broader system resources. The vulnerability affects MongoDB Server versions 7.0, 8.0, and 8.3.0. No official patch or remediation level has been published yet, and no known exploits are reported in the wild.
Potential Impact
An attacker with authenticated write access can cause code execution within the scripting engine sandbox affecting other users' query results, potentially corrupting data returned and causing denial of service for operations on the same database. The impact is limited to the scripting engine sandbox and does not allow access to the database contents, filesystem, or network, reducing the scope of potential damage.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, restrict write privileges to trusted users only and monitor for suspicious activity related to stored values processed during internal maintenance cycles.
CVE-2026-18708: CWE-94: Improper Control of Generation of Code ('Code Injection') in MongoDB MongoDB Server
Description
An issue in MongoDB Server's JavaScript scripting engine could allow an authenticated user with write privileges to cause code they control to be executed within the query scope of other users, through a specially crafted stored value processed during an internal maintenance cycle. This could result in corruption of query results affecting other users and denial of service targeted at their operations on the same database. Impact is limited to the scripting engine's execution sandbox, which does not provide access to database, filesystem, or network resources.
CVSS v4.0
Score 5.3medium
Affected software
pkg:github/mongodb/mongodb-serverRun 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) in MongoDB Server's JavaScript scripting engine. An authenticated user with write privileges can inject code that executes within the query context of other users by exploiting how stored values are processed during internal maintenance. The execution is confined to the scripting engine's sandbox, preventing access to broader system resources. The vulnerability affects MongoDB Server versions 7.0, 8.0, and 8.3.0. No official patch or remediation level has been published yet, and no known exploits are reported in the wild.
Potential Impact
An attacker with authenticated write access can cause code execution within the scripting engine sandbox affecting other users' query results, potentially corrupting data returned and causing denial of service for operations on the same database. The impact is limited to the scripting engine sandbox and does not allow access to the database contents, filesystem, or network, reducing the scope of potential damage.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, restrict write privileges to trusted users only and monitor for suspicious activity related to stored values processed during internal maintenance cycles.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- mongodb
- Date Reserved
- 2026-08-03T15:55:08.340Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a7b7424bf8831d539467fc7
Added to database: 08/11/2026, 19:12:36 UTC
Last enriched: 08/11/2026, 19:27:30 UTC
Last updated: 08/11/2026, 22:51:02 UTC
Views: 5
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.