CVE-2026-18708 PUBLISHED

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

Assigner: mongodb
Reserved: 03.08.2026 Published: 11.08.2026 Updated: 11.08.2026

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.

Metrics

CVSS 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
CVSS Score: 5.3

Product Status

Vendor MongoDB
Product MongoDB Server
Versions Default: unaffected
  • affected from 8.3.0 to 8.3.8 (excl.)
  • affected from 8.0 to 8.0.29 (excl.)
  • affected from 7.0 to 7.0.40 (excl.)

References

Problem Types

  • CWE-94: Improper Control of Generation of Code ('Code Injection') CWE