CVE-2026-85625
9.2critical
sift 17.1.3 Prototype Pollution Remote Code Execution via $where
- Severity
- 9.2critical CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.55% (higher than 47% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| crcn sift.js | up to 17.1.3 | CVE List |
All scores
| VulnCheck | 9.2critical CVSS:4.0 | 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 |
| VulnCheck | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
References
| https://github.com/crcn/sift.js/issues/276 | issue-tracking | |
| https://github.com/crcn/sift.js | product | |
| https://github.com/crcn/sift.js/blob/v17.1.3/src/core.ts | technical-description | |
| https://www.vulncheck.com/advisories/sift-17.1.3-prototype-pollution-remote-code-execution-via-where | third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-85625 changed 2026-09-14 | CVE Terms of Use |
| NVD | CVE-2026-85625 changed 2026-09-14 | Public domain |