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

CVE-2026-18708 affects 25 listed versions of MongoDB in the Dawnsentry catalogue.

6.4CVSS medium
None knownexploitation
under 1%EPSS (next 30 days)
11 August 2026published

Affected products and versions

The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.

MongoDB

25 of 250 listed versions are affected. Fixed in 8.3.8, 8.0.29, 7.0.40. The newest release, 9.0.8, is not affected.

8.3.7 8.3.4 8.3.3 8.3.2 8.3.1 8.3.0 8.0.28 8.0.26 8.0.25 8.0.24 8.0.23 8.0.21 8.0.20 8.0.19 8.0.18 7.0.39 7.0.37 7.0.36 7.0.35 7.0.34 7.0.32 7.0.31 7.0.30 7.0.29 7.0.28

What it is

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:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L (Mongodb)

Published by Mongodb on 11 August 2026. Last changed 16 September 2026.

Sources

Check one version you run: look CVE-2026-18708 up, or pick a product and version in the quick lookup.

Updated 2 December 2026.