Skip to content
Heist/ feed
Back to feed
Critical

sift 17.1.3 Prototype Pollution Remote Code Execution via $where

Type: advisorySources: OSV

sift (sift.js) 17.1.3 enumerates query keys with for...in, which walks the object prototype chain, and dispatches any matched operator key including $where. The $where operation compiles a string value into a function using new Function unless CSP_ENABLED is set (not set by default). As a result, if a prototype-pollution primitive elsewhere in the process sets Object.prototype.$where to a malicious string, even benign filter calls such as sift({}) execute arbitrary JavaScript. Additionally, passing an untrusted query object containing a string $where directly to sift results in code execution under the default configuration.

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

Source evidence

sift 17.1.3 Prototype Pollution Remote Code Execution via $where

core-osv · Original source

Published 4 Sept 2026, 14:32 UTC

sift (sift.js) 17.1.3 enumerates query keys with for...in, which walks the object prototype chain, and dispatches any matched operator key including $where. The $where operation compiles a string value into a function using new Function unless CSP_ENABLED is set (not set by default). As a result, if a prototype-pollution primitive elsewhere in the process sets Object.prototype.$where to a malicious string, even benign filter calls such as sift({}) execute arbitrary JavaScript. Additionally, passing an untrusted query object containing a string $where directly to sift results in code execution under the default configuration.

osv:CVE-2026-85625
Complete source record
{
  "id": "0e77aeb1c3fd420e6a84b335f9aa84447310db8c023d3f774228a8c9839013b5",
  "url": "https://osv.dev/vulnerability/CVE-2026-85625",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "sift 17.1.3 Prototype Pollution Remote Code Execution via $where",
    "summary": "sift (sift.js) 17.1.3 enumerates query keys with for...in, which walks the object prototype chain, and dispatches any matched operator key including $where. The $where operation compiles a string value into a function using new Function unless CSP_ENABLED is set (not set by default). As a result, if a prototype-pollution primitive elsewhere in the process sets Object.prototype.$where to a malicious string, even benign filter calls such as sift({}) execute arbitrary JavaScript. Additionally, passing an untrusted query object containing a string $where directly to sift results in code execution under the default configuration.",
    "evidence": "osv:CVE-2026-85625",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2026-85625",
      "aliases": [
        "CVE-2026-85625"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/crcn/sift.js",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "8a9a4995d4a2a653bf9b68a7a2d72e02f05dfe03"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "17.1.3"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v17.1.3",
            "v17.1.2",
            "v17.1.1",
            "v17.1.0",
            "v15.1.0",
            "v15.0.0",
            "v14.0.3",
            "v14.0.2",
            "v14.0.0",
            "v14.0.1",
            "v13.5.4",
            "v13.5.3",
            "v13.5.2",
            "v13.5.1",
            "v13.4.0",
            "v13.3.5",
            "v13.3.4",
            "v13.3.3",
            "v13.3.2",
            "v13.3.1",
            "v13.3.0",
            "v13.2.0",
            "v13.1.10",
            "v13.1.9",
            "v13.1.8",
            "v13.1.7",
            "v13.1.6",
            "v13.1.5",
            "v13.1.4",
            "v13.1.2",
            "v13.1.1",
            "v13.0.6",
            "v13.0.5",
            "v13.0.4",
            "v13.0.3",
            "v13.0.2",
            "v13.0.1",
            "v13.0.0",
            "v12.0.1",
            "v12.0.0",
            "v11.1.8",
            "11.1.6",
            "v11.1.7",
            "11.1.7",
            "11.1.5",
            "11.1.4",
            "11.1.3",
            "11.1.2",
            "11.1.0",
            "11.0.11",
            "11.0.1",
            "9.0.7",
            "9.0.6",
            "9.0.3",
            "9.0.1",
            "9.0.0",
            "8.5.0",
            "8.4.0",
            "v8.3.2",
            "v8.3.1",
            "v8.3.0",
            "8.3.0",
            "8.2.0",
            "v8.1.0",
            "8.0.1",
            "7.0.1",
            "7.0.0",
            "6.0.0",
            "5.1.0",
            "5.0.0",
            "4.0.0",
            "3.3.12",
            "3.3.11",
            "3.3.8",
            "3.3.7",
            "3.3.6",
            "3.3.5",
            "v3.3.4",
            "3.3.4",
            "3.3.3",
            "3.3.2",
            "3.3.1",
            "3.3.x",
            "3.3.0",
            "3.2.8",
            "3.2.7",
            "3.2.6",
            "3.2.5",
            "3.2.4",
            "3.2.2",
            "3.2.0",
            "3.1.1",
            "3.1.0",
            "3.0.0",
            "2.0.10",
            "2.0.9",
            "2.0.8",
            "2.0.7",
            "2.0.6",
            "2.0.5",
            "2.0.4",
            "2.0.2",
            "2.0.1",
            "2.0.0",
            "1.1.0",
            "1.0.6",
            "1.0.5",
            "1.0.3",
            "1.0.2",
            "1.0.0",
            "0.5.6",
            "0.5.3",
            "0.5.2",
            "0.5.1",
            "0.4.5",
            "0.2.3",
            "0.1.0",
            "0.0.18",
            "0.0.7",
            "0.0.5",
            "0.0.3",
            "0.0.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-85625.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:49.055608952Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/85xxx/CVE-2026-85625.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-85625",
        "https://www.vulncheck.com/advisories/sift-17.1.3-prototype-pollution-remote-code-execution-via-where",
        "https://github.com/crcn/sift.js/issues/276",
        "https://github.com/crcn/sift.js",
        "https://github.com/crcn/sift.js/blob/v17.1.3/src/core.ts"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-1321"
        ],
        "cna_assigner": "VulnCheck",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/85xxx/CVE-2026-85625.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-85625",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 517535,
  "published_at": "2026-09-04T14:32:15.388+00:00"
}