Vulnerability 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.
CVSS Score
HIGH
Related Weaknesses (CWE)
References
- https://github.com/crcn/sift.js
- https://github.com/crcn/sift.js/blob/v17.1.3/src/core.ts
- https://github.com/crcn/sift.js/issues/276
- https://www.vulncheck.com/advisories/sift-17.1.3-prototype-pollution-remote-code
FAQ
What is CVE-2026-85625?
CVE-2026-85625 is a vulnerability with a CVSS score of 8.1 (HIGH). 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 valu...
How severe is CVE-2026-85625?
CVE-2026-85625 has been rated HIGH with a CVSS base score of 8.1/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-85625?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.