Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

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

Quick assessment

Affected
MongoDB Inc. Mongoid
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Mongoid 未对以字符串形式传入其查询构建器的查询条件进行中和处理,而是将其作为服务端 JavaScript 表达式直接传递给数据库。因此,任何未认证的攻击者若能够影响应用程序作为查询参数传入的值,就可能使数据库引擎执行其选择的代码。这可能导致存储字段值的意外泄露、应用程序发起的写操作选中非预期的文档,以及数据库性能下降。

CVSS 8.6 · High EPSS 0.43% · P38

Possible ATT&CK Techniques 1 AI

T1203 · Exploitation for Client Execution

Affected Version Matrix 4

VendorProduct Version RangeStatus
MongoDB Inc. Mongoid 9.1.0 affected
9.0.0≤ 9.0.11 affected
8.1.0≤ 8.1.12 affected
8.0.0≤ 8.0.12 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-93759

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Server-side JavaScript injection via string query criteria bypassing the strict operator allowlist
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L
Source: CVE Program / CVE List V5
Vulnerability Type
对生成代码的控制不恰当(代码注入)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
MongoDB Inc. Mongoid 9.1.0 -

II. Public POCs for CVE-2026-93759

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-93759

请登录查看更多情报信息。

Other References for CVE-2026-93759 (1)

Same Patch Batch · MongoDB Inc. · 2026-09-18 · 8 CVEs total

CVE-2026-93762 9.8 CRITICAL Data deletion and attribute disclosure via field-name method injection in in-memory querie
CVE-2026-93765 9.1 CRITICAL Document deletion and process crash via unvalidated method-name dispatch in atomic pop ope
CVE-2026-93760 8.2 HIGH NoSQL injection of JavaScript-executing query operators via unsafe-by-default operator gua
CVE-2026-93758 8.1 HIGH Cross-principal document update, theft, and deletion via unvalidated id in nested attribut
CVE-2026-93761 7.5 HIGH Denial of service via unbounded regex matching in Mongoid's in-memory query matcher
CVE-2026-93763 6.5 MEDIUM Silent plaintext persistence via unresolved callable database name in encryption schema ma
CVE-2026-93764 6.5 MEDIUM Plaintext storage of encrypted fields via skipped embedded models in encryption schema gen

IV. Related Vulnerabilities