CVE-2026-93759

Server-side JavaScript injection via string query criteria bypassing the strict operator allowlist

State
Published
Severity
8.8 High
Published
Sep 18, 2026
Updated
Sep 21, 2026
Reserved
Sep 18, 2026

Read the record on cve.org

Description

Mongoid does not neutralize a string-typed query criterion supplied to its query builder, and instead passes it to the database as a server-side JavaScript expression. An unauthenticated party able to influence the value an application supplies as a query argument may cause code of their choosing to be evaluated by the database engine. This may result in unintended disclosure of stored field values, unintended selection of documents for application-initiated writes, and reduced database performance.

Scores

CVSSScoreVectorSource
4.08.8 HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:L/SC:N/SI:N/SA:Nmongodb
3.18.6 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:Lmongodb

Weaknesses

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

Affected Products

ProductVersions
MongoidMongoDB Inc.
  • 9.1.0Affected
  • 9.0.0 through 9.0.11Affected
  • 8.1.0 through 8.1.12Affected
  • 8.0.0 through 8.0.12Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.