CVE-2026-85625
sift 17.1.3 Prototype Pollution Remote Code Execution via $where
- State
- Published
- Severity
- 9.2 Critical
- Published
- Sep 4, 2026
- Updated
- Sep 14, 2026
- Reserved
- Sep 4, 2026
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 9.2 Critical | 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 |
| 3.1 | 8.1 High | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H | VulnCheck |
Weaknesses
- CWE-1321 Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
Affected Products
| Product | Versions |
|---|---|
sift.jscrcn |
|
References
- GitHub Issue #276issue-tracking
- https://github.com/crcn/sift.jsproduct
- https://github.com/crcn/sift.js/blob/v17.1.3/src/core.tstechnical-description
- VulnCheck Advisory: sift 17.1.3 Prototype Pollution Remote Code Execution via $wherethird-party-advisory
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.