Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSupply untrusted query object or pollute Object.prototype.$where
-
Deliverysift enumerates keys via for...in, matches $where
-
Exploitnew Function compiles string payload
-
Executionarbitrary JavaScript executes in process
-
Impactfull host/data compromise
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V3 - Web Frontend Security Prototype pollution prevention
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires one of two concrete preconditions under the default configuration (CSP_ENABLED not set): either (1) the consuming application passes an untrusted query object containing a string-valued $where key directly into sift(), or (2) a prototype-pollution primitive exists elsewhere in the process that sets Object.prototype.$where to a malicious string, after which even benign sift({}) calls execute it. Limiting factors: if CSP_ENABLED is set the new Function sink is disabled; the direct path requires the app to feed unsanitized objects into a sift query; and the pollution path requires a separate, independent prototype-pollution vulnerability to already be present. |
| Impact | The vendor CVSS 4.0 vector (AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H, score 9.2) reflects unauthenticated, network-reachable code execution with full confidentiality/integrity/availability impact, tempered by AC:H and AT:P - signaling that successful exploitation depends on a precondition (either an existing prototype-pollution primitive or an application data flow that passes untrusted objects directly into a sift query). No EPSS score, KEV listing, or explicit POC flag was provided, so exploitation is not confirmed to be widespread or active; this is a real code-execution risk but one whose exposure is gated by how each consuming application feeds data into sift. The direct-$where path is low-complexity where an app passes attacker-controlled JSON straight into a query, while the prototype-pollution path requires a separate polluting bug - these differ substantially in likelihood, so the AC:H/AT:P rating best fits the pollution scenario rather than the direct path. |
| Exploit ScenarioDerived | An application accepts a JSON filter from an HTTP client and passes it directly to sift() to query an in-memory dataset; an attacker submits {"$where": "<malicious JS>"}, which sift compiles via new Function and executes in the server process, yielding RCE. Alternatively, an attacker leverages a separate prototype-pollution bug to set Object.prototype.$where to a malicious string, after which any subsequent sift call - even sift({}) - executes the payload. No public POC was noted, but the VulnCheck advisory describes both paths concretely. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 04, 2026
Remote code execution in sift.js 17.1.3 arises because the library enumerates query keys with for...in, which traverses the prototype chain, and dispatches the $where operator by compiling its string value via new Function whenever CSP_ENABLED is unset (the default). An attacker who can either supply an untrusted query object containing a string $where, or who has established a prototype-pollution primitive elsewhere in the process (setting Object.prototype.$where), achieves arbitrary JavaScript execution - in the pollution case even benign calls like sift({}) trigger it. Reported by VulnCheck; no public exploit identified at time of analysis, though the advisory documents the mechanism in detail.
RemediationAI
No vendor-released fixed version was identified in the provided data (No vendor-released patch identified at time of analysis) - monitor the upstream repository (https://github.com/crcn/sift.js) and issue #276 for a patched release and upgrade once available. As immediate compensating controls: set CSP_ENABLED to disable the new Function compilation of $where (trade-off: any legitimate use of $where string evaluation stops working); strip or reject the $where key from any query object built from untrusted input before calling sift; and eliminate prototype-pollution primitives in the surrounding application (freeze Object.prototype or use Object.create(null)/Map for untrusted parsing) so a polluted $where cannot be inherited. Never construct sift queries directly from unsanitized user-supplied JSON.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
sift.js (cpe:2.3:a:crcn:sift.js) is a widely used JavaScript library that applies MongoDB-style query filters to in-memory objects and arrays. The root cause is CWE-1321 (Improperly Controlled Modification of Object Prototype Attributes / prototype pollution) compounded by an unsafe code-generation sink: the $where operator compiles a supplied string into executable code with new Function, mirroring MongoDB's server-side $where JavaScript evaluation but running it directly in the Node/JS process. Because operator keys are matched using for...in without a hasOwnProperty guard, keys inherited from Object.prototype are treated as legitimate operators, so a polluted Object.prototype.$where is dispatched for any filter operation. The CSP_ENABLED flag would gate the new Function path but is off by default.
Know when Prototype Pollution gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
RCE gives full C/I/A; AC:H because exploitation requires either an untrusted object reaching the sift query or a separate pre-existing prototype-pollution primitive, neither being the default data flow.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
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.
Executive ViewAI
sift.js version 17.1.3 contains a critical vulnerability enabling remote code execution through malformed query input on affected systems with default configuration. Any organization deploying this library faces severe risk of complete system compromise and data breach with minimal attacker requirements. Immediate inventory and remediation of affected applications is required.
No vendor-released patch identified at time of analysis. Implement interim mitigations: (1) Set CSP_ENABLED=true if architecture permits, disabling Function compilation; (2) Enforce strict input validation and sanitization to reject or escape $where operators; (3) Apply prototype pollution prevention (freeze Object.prototype properties, use Object.create(null) for query objects); (4) Deploy network segmentation and access controls to minimize query API exposure; (5) Implement query-pattern detection and alerting for suspicious activity; (6) Evaluate library replacement or code forking for long-term sustainability.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
More in Prototype Pollution
View allPrototype pollution in Adobe Acrobat Reader versions 24.001.30356, 26.001.21367 and earlier enables arbitrary code execu
All versions of package dojo are vulnerable to Prototype Pollution via the setObject function. Rated critical severity (
Prototype pollution in the farinspace Partners WordPress plugin (versions up to and including 0.2.0) enables remote unau
The package handlebars before 4.7.7 are vulnerable to Prototype Pollution when selecting certain compiling options to co
This affects the package ini before 1.3.6. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitabl
Prototype pollution vulnerability in 'deephas' versions 1.0.0 through 1.0.5 allows attacker to cause a denial of service
A Prototype Pollution issue in Cronvel Tree-kit v.0.7.4 and before allows a remote attacker to execute arbitrary code vi
A Prototype Pollution issue in Aliconnect /sdk v.0.0.6 allows an attacker to execute arbitrary code via the aim function
All versions of the package safe-eval are vulnerable to Prototype Pollution via the safeEval function, due to improper s
This affects the package vm2 before 3.9.4 via a Prototype Pollution attack vector, which can lead to execution of arbitr
Prototype Pollution in chargeover redoc v2.0.9-rc.69 allows attackers to execute arbitrary code or cause a Denial of Ser
alizeait unflatto <= 1.0.2 was discovered to contain a prototype pollution via the method exports.unflatto at /dist/inde
EUVD-2026-71232
GHSA-8pfg-3p4c-36vm
NVD
CVE.org
EPSS
Exploit-DB