CVE-2026-18708

published 11 Aug 2026 · updated 11 Aug 2026

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

6.4MediumCVSS 6.4EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Server 7.0.40, Server 8.0.29 and Server 8.3.8.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
MongoDBServer>=7.0 <7.0.40, >=8.0 <8.0.29, >=8.3.0 <8.3.87.0.40, 8.0.29, 8.3.8

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in MongoDB, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-18708 severity on Zeptric[![CVE-2026-18708](https://zeptric.io/badge/cve/CVE-2026-18708.svg)](https://zeptric.io/cve/CVE-2026-18708)