Skip to content

chore: update @cursor/sdk to 1.0.26 and override undici - #32

Open
serrade wants to merge 1 commit into
standardagents:mainfrom
serrade:chore/update-cursor-sdk
Open

chore: update @cursor/sdk to 1.0.26 and override undici#32
serrade wants to merge 1 commit into
standardagents:mainfrom
serrade:chore/update-cursor-sdk

Conversation

@serrade

@serrade serrade commented Jul 30, 2026

Copy link
Copy Markdown

Problem

The dependency tree on main carries 19 advisories, including the only critical one:

19 vulnerabilities (3 low, 1 moderate, 14 high, 1 critical)

Most of them arrive through @cursor/sdk@1.0.13, which depends on the native sqlite3 package and pulls in tar (critical), node-gyp, cacache, make-fetch-happen and brace-expansion.

Fix

  • @cursor/sdk ^1.0.13 to ^1.0.26. Newer releases no longer require native SQLite, so that whole chain disappears.
  • An undici override at ^8.9.0, which clears the remaining advisory in that package.

After:

8 vulnerabilities (1 low, 7 high)

The 8 that remain predate this change and come from the Cloudflare and Vite toolchain (vite, wrangler, miniflare, sharp, postcss, ws, @cloudflare/vite-plugin). They are untouched by the SDK bump and out of scope here.

Verification

  • npm ci, npm run typecheck, npm test all pass; Package macOS smoke green on my fork.
  • Audit numbers above measured with npm audit on this branch and npm audit --package-lock-only against main for the baseline.

The bridge continues to work against the newer SDK; no source changes were needed.

The 1.0.13 dependency tree carried 19 advisories, including the only
critical one. Newer SDK releases drop the native sqlite3 dependency,
which removes the tar, node-gyp, cacache, make-fetch-happen and
brace-expansion chains along with it. An undici override clears the
remaining advisory in that package.

npm audit goes from 19 advisories (1 critical, 14 high) to 8 (7 high).
The rest predate this change and come from the Cloudflare and Vite
toolchain, so they are out of scope here.

Typecheck and the Worker test suite pass unchanged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant