Skip to content

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

MediumCVSS 5.3 EPSS 0.39%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial

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.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
MongoDB Server >= 7.0, < 7.0.40; >= 8.0, < 8.0.29; >= 8.3.0, < 8.3.8 7.0.40, 8.0.29, 8.3.8 Fixed
mongodb/mongodb = 9.0.0-alpha0; = 9.0.0-alpha1; = 9.1.0-alpha0; >= 7.0.0, < 7.0.40 +3 more 7.0.40, 8.0.29, 8.3.8 Fixed

Affected products

ProductAffected versionsFixed in
MongoDB Server >= 8.3.0, < 8.3.8 8.3.8
MongoDB Server >= 8.0, < 8.0.29 8.0.29
MongoDB Server >= 7.0, < 7.0.40 7.0.40
mongodb/mongodb >= 7.0.0, < 7.0.40 7.0.40
mongodb/mongodb >= 8.0.0, < 8.0.29 8.0.29
mongodb/mongodb >= 8.2.0, <= 8.2.12 No fix listed
mongodb/mongodb >= 8.3.0, < 8.3.8 8.3.8
mongodb/mongodb = 9.0.0-alpha0 No fix listed
mongodb/mongodb = 9.0.0-alpha1 No fix listed
mongodb/mongodb = 9.1.0-alpha0 No fix listed

References