Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-18708: CWE-94: Improper Control of Generation of Code ('Code Injection') in MongoDB MongoDB Server

0
Medium
VulnerabilityCVE-2026-18708cvecve-2026-18708cwe-94
Published: 08/11/2026 (08/11/2026, 18:41:10 UTC)
Source: CVE Database V5
Vendor/Project: MongoDB
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
Low
Vuln. Availability
Low
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N

Affected software

GitHub Actionsmore threats →ai
mongodb/mongodb-server
pkg:github/mongodb/mongodb-server
Affected versions
=8.3.0=8.0=7.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/11/2026, 19:27:30 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses