CVE Catalog

CVE-2026-93759

HighCVSS 8.6
Published: Updated: Translated: NVD NIST

Summary

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.

Risk Assessment

The risk includes the possibility of arbitrary JavaScript execution in the database, which may lead to data leakage, data manipulation, and disruption of database operations.

Recommendation

It is recommended to avoid passing user input as string query criteria and to use parameterized queries or proper validation.

Other vulnerabilities in Mongoid

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS