CVE-2026-18708

Improper Neutralization of Input in MongoDB Server's JavaScript Scripting Engine Leads to Unauthorized Code Execution Within Query Scopes

Published Aug 11, 2026 CVSS 4.0 · 5.3 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

An issue in MongoDB Server's JavaScript scripting engine allows an authenticated user with write privileges to inject specially crafted stored values that are processed during an internal maintenance cycle. This causes code the attacker controls to execute within the query scope of other users, leading to tampered query results and targeted denial of service against those users’ operations. The vulnerability is limited to the sandboxed scripting environment, which lacks direct access to the database, filesystem, or network resources.

Affected Systems

The affected product is MongoDB Server. No specific version information is provided, so all currently installed instances may be susceptible unless a patch has already been applied.

Risk and Exploitability

The CVSS score of 5.3 indicates moderate severity, while the EPSS score of < 1% suggests a low likelihood of widespread exploitation at this time. The vulnerability is not listed in the CISA KEV catalog. The likely attack vector requires an authenticated user with write rights; the attacker must craft data that will be executed during maintenance, which is an inferred prerequisite rather than an explicitly stated condition. Exploitation would corrupt data visible to other users and could disrupt operations within the same database.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply vendor-supplied patches that address the scripting engine issue
  • Limit write privileges to trusted users and remove unnecessary write access from accounts that do not require it
  • Monitor query logs for unexpected JavaScript execution and consider disabling the JavaScript engine or enforcing query validation when possible

Generated by OpenCVE AI on August 12, 2026 at 20:13 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Mongodb mongodb
CPEs cpe:2.3:a:mongodb:mongodb:*:*:*:*:*:*:*:*
cpe:2.3:a:mongodb:mongodb:9.0.0:alpha0:*:*:-:-:*:*
cpe:2.3:a:mongodb:mongodb:9.0.0:alpha1:*:*:-:-:*:*
cpe:2.3:a:mongodb:mongodb:9.1.0:alpha0:*:*:-:-:*:*
Vendors & Products Mongodb mongodb
Type Values Removed Values Added
First Time appeared Mongodb
Mongodb mongodb Server
Vendors & Products Mongodb
Mongodb mongodb Server
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Improper Neutralization of Input in MongoDB Server's JavaScript Scripting Engine Leads to Unauthorized Code Execution Within Query Scopes
Weaknesses CWE-94
References
Metrics cvssV3_1

{'score': 6.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L'}

cvssV4_0

{'score': 5.3, 'vector': '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'}

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

Sources

Status
PUBLISHED
Assigner
mongodb
Published
Updated
Aug 11, 2026, 8:23 PM
Reserved
Aug 3, 2026, 3:55 PM
Status
Analyzed
Published
Aug 11, 2026, 7:17 PM
Modified
Sep 16, 2026, 3:19 PM