Skip to content
Heist/ feed
Back to feed
High

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

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-93759
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 03:17 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 18 Sept 2026, 17:27 UTC

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.

osv:CVE-2026-93759
Complete source record
{
  "id": "f0a19cb7e88259bd19c0822cdb09b957c6dbc51d1ea3eb412ccd943880768c9d",
  "url": "https://osv.dev/vulnerability/CVE-2026-93759",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Server-side JavaScript injection via string query criteria bypassing the strict operator allowlist",
    "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.",
    "evidence": "osv:CVE-2026-93759",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-93759",
      "aliases": [
        "CVE-2026-93759"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:L/SC:N/SI:N/SA:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/mongodb/mongoid",
              "type": "GIT",
              "events": [
                {
                  "introduced": "6e780948d297615520085d0df49dbe270c34430d"
                },
                {
                  "fixed": "4775b2a3ced15ba4505a0f03927ada4a9a9a9f74"
                },
                {
                  "introduced": "c95c4859ece38f2d42bf9b9984e7791532a17ff7"
                },
                {
                  "fixed": "492a97bb60c554219a52fe07db7c161c8849b5ca"
                },
                {
                  "introduced": "88f4b1ae86fab094b553a443dc5067493210c384"
                },
                {
                  "fixed": "5373073d24abd206a64ab306a0af0b95a084c4f8"
                },
                {
                  "introduced": "fc21c4106477474a655e5a4a03d829feb6997b00"
                },
                {
                  "last_affected": "fc21c4106477474a655e5a4a03d829feb6997b00"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:mongodb:mongoid:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "8.0.0"
                      },
                      {
                        "fixed": "8.0.13"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:mongodb:mongoid:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "8.1.0"
                      },
                      {
                        "fixed": "8.1.13"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:mongodb:mongoid:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "9.0.0"
                      },
                      {
                        "fixed": "9.0.12"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:mongodb:mongoid:9.1.0:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "9.1.0"
                      },
                      {
                        "last_affected": "9.1.0"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "9.1.0",
            "v8.0.12",
            "v8.1.12",
            "v9.0.11",
            "v9.1.0",
            "v9.0.10",
            "v9.0.9",
            "v9.0.8",
            "v9.0.7",
            "v8.1.11",
            "v8.0.11",
            "v8.0.10",
            "v8.1.10",
            "v9.0.6",
            "v8.0.9",
            "v8.1.9",
            "v9.0.5",
            "v9.0.4",
            "v8.1.8",
            "v9.0.3",
            "v8.1.7",
            "v9.0.2",
            "v8.1.6",
            "v8.0.8",
            "v9.0.1",
            "v9.0.0",
            "v8.1.5",
            "v8.0.7",
            "v8.1.4",
            "v8.1.3",
            "v8.0.6",
            "v8.1.2",
            "v8.1.1",
            "v8.0.5",
            "v8.1.0",
            "v8.0.4",
            "v8.0.3",
            "v8.0.2",
            "v8.0.1",
            "v8.0.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-93759.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:49.318011970Z",
      "provider": "osv",
      "references": [
        "https://jira.mongodb.org/browse/MONGOID-5993",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/93xxx/CVE-2026-93759.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-93759"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-94"
        ],
        "cna_assigner": "mongodb",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "9.1.0"
                  },
                  {
                    "last_affected": "9.1.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandaloneSingleVersion"
              }
            ]
          },
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "9.0.0"
                  },
                  {
                    "last_affected": "9.0.11"
                  },
                  {
                    "introduced": "8.1.0"
                  },
                  {
                    "last_affected": "8.1.12"
                  },
                  {
                    "introduced": "8.0.0"
                  },
                  {
                    "last_affected": "8.0.12"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/93xxx/CVE-2026-93759.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-93759",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 517683,
  "published_at": "2026-09-18T17:27:51.644+00:00"
}