8.6High

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

MongoDB Inc. Mongoid Published: (1 month ago)

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.

Weakness (CWE): CWE-94

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
MongoDB Inc. Mongoid 9.1.0, 9.0.0 – ≤ 9.0.11, 8.1.0 – ≤ 8.1.12, 8.0.0 – ≤ 8.0.12

References and patches

CPE matches (NVD) (4)

  • cpe:2.3:a:mongodb:mongoid:*:*:*:*:*:*:*:* ≥ 8.0.0 < 8.0.13
  • cpe:2.3:a:mongodb:mongoid:*:*:*:*:*:*:*:* ≥ 8.1.0 < 8.1.13
  • cpe:2.3:a:mongodb:mongoid:*:*:*:*:*:*:*:* ≥ 9.0.0 < 9.0.12
  • cpe:2.3:a:mongodb:mongoid:9.1.0:*:*:*:*:*:*:*