@prisma/studio-core 0.34.1 bundles kysely 0.28.10 (CVE-2026-32763, CVE-2026-33468, CVE-2026-44635)

オープン
#1,587 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
42/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
javascript, mysql, postgresql, sql, sqlite, typescript

調査の方向性

The stale kysely copy comes from the kysely devDependency pin in prisma/studio's package.json, and the bundle is produced by the build that writes dist/metafile-esm.json. Start by checking that pin and the lockfile, then bump it to at least 0.28.17 and rebuild. Done means the metafile lists only kysely >= 0.28.17 and the published-tarball check in the issue passes. This touches release steps and a security fix, so confirm with maintainers before publishing.

索引モデルが issue の本文から書いたものです。

説明

While scanning published npm packages for bundled third-party code we found that @prisma/[email protected] (npm latest) inlines kysely 0.28.10 into dist/ (chunk-W46LCTJX.js and the dist/data/*-core adapters). It comes from the devDependency pin "kysely": "0.28.10" in prisma/studio's package.json. The older @prisma/[email protected] carries the same copy.

  • CVE-2026-32763 (GHSA-wmrf-hv6w-mr66): SQL injection via unsanitized JSON path keys (fixed 0.28.12)
  • CVE-2026-33468 (GHSA-8cpq-38p9-67gx): MySQL SQL injection via insufficient backslash escaping in sql.lit(string) and similar literal paths (fixed 0.28.14)
  • CVE-2026-44635 (GHSA-pv5w-4p9q-p3v2): JSON-path traversal injection via unsanitized path-leg metacharacters in JSONPathBuilder.key()/.at() (fixed 0.28.17)

kysely is not declared as a dependency, so npm audit and SCA tools cannot flag it for you or for Studio users.

We have not assessed exploitability in Studio. Because the copy ships where dependency audits cannot see it, it is easy to miss. We would suggest updating it when convenient, and sooner if untrusted input can reach it in your setup.

Suggested fix: bump the kysely devDependency to >= 0.28.17 and rebuild/publish @prisma/studio-core (and -licensed, if it is still distributed).

Studio distribution

Embedded (@prisma/studio-core as published on npm); this concerns the published package itself, not one setup.

Database

All adapters bundle the same kysely copy; CVE-2026-33468 applies to MySQL / MariaDB, the other two to JSON-path queries.

Prisma & studio-core versions

@prisma/studio-core 0.34.1 (npm latest, 2026-10-15).

Steps to reproduce

Checked against the published tarball on 2026-11-02:

npm pack @prisma/[email protected] && tar xzf prisma-studio-core-0.34.1.tgz
grep -o 'node_modules/.pnpm/kysely@[0-9.]*' package/dist/metafile-esm.json | sort | uniq -c

Output:

1476 node_modules/.pnpm/[email protected]
Expected behavior

The published bundle carries kysely >= 0.28.17.

Actual behavior

Every kysely input in the build metafile is kysely 0.28.10.

主要言語
TypeScript
スター
2.2k
フォーク
91
平均マージ
15時間 27分
マージ済み PR(30日)
3

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

prisma/studio のほかの issue

prisma/studio の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。