| タイトル | Node.js @tanstack/db 0.6.8 Prototype Pollution |
|---|
| 説明 | `@tanstack/db` is vulnerable to prototype pollution through public query APIs.
The root package entry exports `queryOnce`, `createCollection`, and `localOnlyCollectionOptions`. A caller can pass an alias containing prototype-pollution path segments to `select()`, such as `__proto__.tanstackPolluted`.
During query compilation, `src/query/compiler/select.ts` processes select aliases as dot-separated nested paths. The alias is split with `alias.split('.')`, and each segment is used to build nested objects in the query result. Dangerous segments such as `__proto__`, `constructor`, and `prototype` are not filtered. When the first segment is `__proto__`, the write cursor can resolve to `Object.prototype`, causing the next assignment to pollute the global object prototype. |
|---|
| ソース | ⚠️ https://github.com/TanStack/db/issues/1584 |
|---|
| ユーザー | Dremig (UID 95003) |
|---|
| 送信 | 2026年06月11日 05:12 (1 月 ago) |
|---|
| モデレーション | 2026年07月13日 17:40 (1 month later) |
|---|
| ステータス | 承諾済み |
|---|
| VulDBエントリ | 378115 [tanstack db 迄 0.6.8 Alias Path select.ts select] |
|---|
| ポイント | 20 |
|---|