TanStack DB
CVE-2026-15607
LOW
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconObtain low-privilege query API access
-
DeliveryCraft select() call with __proto__ or constructor alias
-
ExploitSubmit query to TanStack DB select compiler
-
InstallCompiler splits alias on '.' without sanitization
-
C2Traverse segments onto Object.prototype
-
ExecuteMutate global prototype chain
-
ImpactAffect downstream application logic
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 the attacker to have low-privileged access to submit TanStack DB select() queries with attacker-controlled alias path strings - confirmed by PR:L in the CVSS 4.0 vector. The specific trigger is the ability to supply dot-notation alias keys containing the segments __proto__, prototype, or constructor to the select() compiler, as used in multi-tenant or user-facing query APIs. Exploitation is not possible against deployments where query alias keys are fully server-controlled or validated before reaching the TanStack DB compiler. Default or non-default configuration does not gate the vulnerability - any code path that passes user-supplied strings as select() alias keys is vulnerable. What limits exploitation is the PR:L requirement: unauthenticated remote exploitation is not possible; the attacker must have some form of authenticated or authorized access to the query interface. |
| Impact | The CVSS 4.0 score of 2.1 with vector AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N indicates low real-world severity in isolation: the attack is network-reachable with no attack complexity or prerequisites beyond low-privilege access, but impact is narrowly scoped to low integrity on the vulnerable system. The E:P supplemental metric confirms a publicly available exploit, which elevates the operational concern above a theoretical-only vulnerability. No EPSS data was provided. This vulnerability is not in CISA KEV, indicating no confirmed active exploitation at time of analysis. The principal risk amplifier for prototype pollution is that Object.prototype mutation is a global side-effect - downstream code paths that iterate object keys, use in-operator checks, or rely on prototype-derived defaults may behave unexpectedly or unsafely in ways not captured by the VI:L rating alone. For deployments where untrusted or semi-trusted users can submit arbitrary select() queries (e.g., multi-tenant query APIs), the realistic impact is higher than the CVSS base score implies. For internal-only or fully trusted deployments, the risk is genuinely low. |
| Exploit ScenarioDerived | A low-privileged user with access to a TanStack DB query interface submits a select() query with a crafted alias key such as {'__proto__.polluted': someField}, which is split on '.' and walked unsanitized into the result accumulator, writing a property directly onto Object.prototype. A publicly available proof-of-concept exists via GitHub issue #1584 demonstrating both __proto__ and constructor.prototype variants. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 13, 2026
Prototype pollution in TanStack DB's select() query compiler allows low-privileged remote attackers to mutate Object.prototype by supplying dot-notation alias paths containing reserved JavaScript property names such as __proto__, prototype, or constructor. Versions up to 0.6.8 are confirmed affected via CPE cpe:2.3:a:tanstack:db. A publicly available exploit exists (GitHub issue #1584), though the vulnerability is not in CISA KEV. The CVSS 4.0 base score of 2.1 reflects low integrity impact scoped to the vulnerable system, but the downstream consequences of Object.prototype mutation in JavaScript runtimes can exceed what raw scoring conveys depending on application logic.
RemediationAI
Apply the patch from GitHub commit ac09b1177a100eafa85cba3cd09dd1f53f933ded (PR #1595 at https://github.com/TanStack/db/pull/1595) by upgrading @tanstack/db to the next patch release beyond 0.6.8; the changeset tags this fix as a patch-level release, but the exact tagged version is not confirmed in the available data - verify the current release tag in the npm registry or GitHub releases. If an immediate upgrade is not possible, the primary compensating control is to restrict access to the select() query API to fully trusted callers only, preventing untrusted input from reaching the alias path handler. Sanitizing alias keys at the application boundary before passing them to select() (rejecting keys containing __proto__, prototype, or constructor segments) is an additional defense-in-depth measure, though this duplicates what the patch implements internally. There are no known side effects of the upstream fix beyond queries using unsafe alias segments now throwing UnsafeAliasPathError instead of silently mutating the prototype.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
TanStack DB is a JavaScript/TypeScript reactive database library. The vulnerable component is the select() query compiler in packages/db/src/query/compiler/select.ts, specifically the Alias Path Handler. CWE-1321 (Improperly Controlled Modification of Object Prototype Attributes) describes the root cause: alias keys supplied to select() are split on '.' and their segments are walked into the result object without checking for reserved JavaScript prototype chain keywords. A crafted alias such as '__proto__.polluted' or 'constructor.prototype.polluted' causes the segment traversal to write directly onto Object.prototype, poisoning the global prototype chain for the entire JavaScript runtime. The fix introduced a blocklist (UNSAFE_ALIAS_SEGMENTS = {'__proto__', 'prototype', 'constructor'}) enforced by a new assertSafeAliasSegments() guard applied in processMerge, processNonMergeOp, and addFromObject, throwing UnsafeAliasPathError on violation. CPE confirms the affected scope as cpe:2.3:a:tanstack:db:*:*:*:*:*:*:*:* up to 0.6.8.
Know when Db 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:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P
Network-reachable via query API (AV:N), no special conditions (AC:L), requires low-privilege query access per PR:L in 4.0 vector; scope unchanged (S:U) and impact limited to low integrity per 4.0 VC:N/VI:L/VA:N.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
5DescriptionCVE.org
A vulnerability was detected in tanstack db up to 0.6.8. Affected by this vulnerability is the function select of the file src/query/compiler/select.ts of the component Alias Path Handler. The manipulation results in improperly controlled modification of object prototype attributes. The attack may be launched remotely. The exploit is now public and may be used. The patch is identified as ac09b1177a100eafa85cba3cd09dd1f53f933ded. A patch should be applied to remediate this issue.
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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB