Skip to main content

TanStack DB CVE-2026-15607

LOW
Improperly Controlled Modification of Object Prototype Attributes (Prototype Pollution) (CWE-1321)
2026-07-13 VulDB
2.1
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

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

  1. Recon
    Obtain low-privilege query API access
  2. Delivery
    Craft select() call with __proto__ or constructor alias
  3. Exploit
    Submit query to TanStack DB select compiler
  4. Install
    Compiler splits alias on '.' without sanitization
  5. C2
    Traverse segments onto Object.prototype
  6. Execute
    Mutate global prototype chain
  7. Impact
    Affect 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.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.3% exploitation probability (EPSS)

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

Alert me

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

Vendor (VulDB) PRIMARY 2.1 MEDIUM
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
vuln.today AI 4.3 MEDIUM

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.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

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

Lifecycle Timeline

5
Severity Changed
Jul 13, 2026 - 23:22 NVD
MEDIUM LOW
CVSS changed
Jul 13, 2026 - 23:22 NVD
5.3 (MEDIUM) 2.1 (LOW)
Severity Changed
Jul 13, 2026 - 23:22 NVD
MEDIUM LOW
CVSS changed
Jul 13, 2026 - 23:22 NVD
5.3 (MEDIUM) 2.1 (LOW)
CVE Published
Jul 13, 2026 - 23:00 cve.org
LOW 2.1

DescriptionCVE.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

EPSS Score
0.3%
Top 83% exploitable
Prevalence
Low
emerging TanStack ecosystem library, limited production footprint
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High
NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

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 LOW
CISA KEV No
Public POC Yes
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
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
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Affected Products (CPE)CVE.org

cpe:2.3:a:tanstack:db:*:*:*:*:*:*:*:*

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