Skip to main content

sift.js CVE-2026-85625

| EUVDEUVD-2026-71232 CRITICAL
Improperly Controlled Modification of Object Prototype Attributes (Prototype Pollution) (CWE-1321)
2026-09-04 VulnCheck GHSA-8pfg-3p4c-36vm
9.2
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Supply untrusted query object or pollute Object.prototype.$where
  2. Delivery
    sift enumerates keys via for...in, matches $where
  3. Exploit
    new Function compiles string payload
  4. Execution
    arbitrary JavaScript executes in process
  5. Impact
    full 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

sift.js 0 ≤17.1.3

Affected Packages

euvd sift_js no fix

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

Vendor (VulnCheck) PRIMARY 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
vuln.today AI 8.1 HIGH

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.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Red Hat 8.1 HIGH

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

Why It Matters

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.

Business Impact: Severe
Compensating Controls

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

EPSS Score
0.5%
Top 56% exploitable
Prevalence
High
widely-used npm MongoDB-style object filtering library
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.5%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
Very High

Priority Score

47
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

CVE-2026-34621 HIGH POC
8.6 Apr 11

Prototype pollution in Adobe Acrobat Reader versions 24.001.30356, 26.001.21367 and earlier enables arbitrary code execu

CVE-2021-23450 CRITICAL POC
9.8 Dec 17

All versions of package dojo are vulnerable to Prototype Pollution via the setObject function. Rated critical severity (

CVE-2024-56059 CRITICAL
9.8 Dec 18

Prototype pollution in the farinspace Partners WordPress plugin (versions up to and including 0.2.0) enables remote unau

CVE-2021-23383 CRITICAL POC
9.8 May 04

The package handlebars before 4.7.7 are vulnerable to Prototype Pollution when selecting certain compiling options to co

CVE-2020-7788 CRITICAL POC
9.8 Dec 11

This affects the package ini before 1.3.6. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitabl

CVE-2020-28271 CRITICAL POC
9.8 Nov 12

Prototype pollution vulnerability in 'deephas' versions 1.0.0 through 1.0.5 allows attacker to cause a denial of service

CVE-2023-38894 CRITICAL POC
9.8 Aug 16

A Prototype Pollution issue in Cronvel Tree-kit v.0.7.4 and before allows a remote attacker to execute arbitrary code vi

CVE-2024-24292 CRITICAL POC
9.8 Mar 28

A Prototype Pollution issue in Aliconnect /sdk v.0.0.6 allows an attacker to execute arbitrary code via the aim function

CVE-2023-26121 CRITICAL POC
10.0 Apr 11

All versions of the package safe-eval are vulnerable to Prototype Pollution via the safeEval function, due to improper s

CVE-2021-23449 CRITICAL POC
10.0 Oct 18

This affects the package vm2 before 3.9.4 via a Prototype Pollution attack vector, which can lead to execution of arbitr

CVE-2024-39011 CRITICAL POC
9.8 Jul 30

Prototype Pollution in chargeover redoc v2.0.9-rc.69 allows attackers to execute arbitrary code or cause a Denial of Ser

CVE-2024-38988 CRITICAL POC
9.8 Mar 28

alizeait unflatto <= 1.0.2 was discovered to contain a prototype pollution via the method exports.unflatto at /dist/inde

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy