CVE-2026-18708

Medium

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.

SeverityMedium
CVSS6.4
Exploit probability—
ProductMongodb
PublishedAug 11, 2026
First seenAug 11, 2026

How to fix

Update
  • mongodb mongodb7.0.40, 8.0.29, 8.3.8 or later

Affected products

ProductAffected versionsFixed in
mongodb mongodb7.0.0 ≤ v < 7.0.40, 8.0.0 ≤ v < 8.0.29, 8.2.0 ≤ v ≤ 8.2.12, 8.3.0 ≤ v < 8.3.8, 9.0.0, 9.1.07.0.40, 8.0.29, 8.3.8

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.