Repository navigation
Comparing changes
Open a pull request
base repository: nuxt/devtools
base: main
head repository: nuxt/devtools
compare: fix/devtools-rpc-auth
- 14 commits
- 85 files changed
- 2 contributors
Commits on Apr 30, 2026
-
Configuration menu - View commit details
-
Copy full SHA for 8c0d3c7 - Browse repository at this point
Copy the full SHA 8c0d3c7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 50f6eb8 - Browse repository at this point
Copy the full SHA 50f6eb8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 05d55a2 - Browse repository at this point
Copy the full SHA 05d55a2View commit details
Commits on May 29, 2026
-
Configuration menu - View commit details
-
Copy full SHA for b2f7647 - Browse repository at this point
Copy the full SHA b2f7647View commit details
Commits on Jul 17, 2026
-
Configuration menu - View commit details
-
Copy full SHA for 1f0b20d - Browse repository at this point
Copy the full SHA 1f0b20dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 961b51d - Browse repository at this point
Copy the full SHA 961b51dView commit details -
Configuration menu - View commit details
-
Copy full SHA for e65c8a9 - Browse repository at this point
Copy the full SHA e65c8a9View commit details
Commits on Jul 24, 2026
-
fix(devtools): require dev auth token for openInEditor and options RP…
…C methods Gate the openInEditor, updateOptions and clearOptions RPC methods on the dev auth token, consistent with the rest of the mutating RPC surface (restartNuxt, storage writes, npm, terminals, ...). Update the client callers to pass the token, keep the passive UI-options watcher silent when unauthenticated, and add a focused unit test for the token checks.
Configuration menu - View commit details
-
Copy full SHA for ce6487c - Browse repository at this point
Copy the full SHA ce6487cView commit details -
fix(repo): make turbo build depend on upstream package builds
The build task had no dependsOn, so with caching cold turbo could build @nuxt/devtools before its workspace dependency @nuxt/devtools-kit was built, intermittently failing with MODULE_NOT_FOUND. Add "^build" so dependencies are built first.
Configuration menu - View commit details
-
Copy full SHA for 69ba059 - Browse repository at this point
Copy the full SHA 69ba059View commit details -
fix(devtools): annotate getServerConfig return type to satisfy typecheck
nuxt.options and the ServerFunctions return type resolve to two different NuxtOptions copies (@nuxt/schema vs nuxt/schema) that diverge on the unocss augmentation, breaking vue-tsc. Cast to the declared return type, matching the equivalent fix already on main.
Configuration menu - View commit details
-
Copy full SHA for 8b84b29 - Browse repository at this point
Copy the full SHA 8b84b29View commit details
Commits on Jul 29, 2026
-
fix(devtools): harden RPC deserialization against callable payloads
The RPC channel runs over the unauthenticated Vite HMR WebSocket and birpc assimilates thenables (await on return values, resolve on responses), while structured-clone-es can deserialize a wire payload into a real callable. That is a code-execution primitive that method-level auth cannot catch, since deserialization happens before any handler runs and responses are never auth-checked. Legitimate payloads never contain functions, so drop any frame that deserializes to a graph containing a callable, on both the server and client channels.
Configuration menu - View commit details
-
Copy full SHA for 086182a - Browse repository at this point
Copy the full SHA 086182aView commit details -
fix(devtools): bump structured-clone-es to ^2.0.1 to close RPC deseri…
…alization gadget structured-clone-es 2.0.1 allowlists the constructors its deserializer will instantiate: a type-7 payload can no longer become `new Function(...)` (it falls back to Error) and unknown/unsafe types are rejected. That removes, at the source, the primitive that let an untrusted HMR-socket frame deserialize into a callable and get executed via birpc thenable assimilation, so the bespoke runtime guard is no longer needed. Because the hardened deserializer now throws on hostile frames, add onGeneralError to the server RPC channel so such frames are dropped instead of crashing the dev server.
Configuration menu - View commit details
-
Copy full SHA for f1c82a6 - Browse repository at this point
Copy the full SHA f1c82a6View commit details -
fix(devtools): override structured-clone-es to ^2.0.1 tree-wide
Pin the hardened deserializer for every copy in the dependency tree, not just @nuxt/devtools' direct one. This also forces the transitive copy used by @vitejs/devtools-rpc (which runs in the same dev-server process) off the vulnerable 2.0.0, collapsing the lockfile to a single 2.0.1.
Configuration menu - View commit details
-
Copy full SHA for e363305 - Browse repository at this point
Copy the full SHA e363305View commit details -
fix(devtools): close remaining unauthenticated RPC surfaces
Extend the RPC hardening beyond the initial three methods, all reachable over the unauthenticated HMR WebSocket: - enableTimeline: require the dev auth token before rewriting nuxt.config and restarting (was an unauthenticated config write + restart DoS), matching restartNuxt. - customTabAction: require the token before invoking a custom tab's launch action handler. - getServerRuntimeConfig: require the token; it exposes runtimeConfig merged with env vars, which can hold secrets. - getServerConfig: strip private runtimeConfig values from this unauthenticated, eagerly-read payload (keeps public/app). - requestForAuth: always derive the origin server-side instead of trusting a client-supplied one, so it can't be turned into a token-exfiltration lure. - RPC channel: reject cross-origin WebSocket connections (same-origin only) to block cross-site WebSocket hijacking, while leaving the HMR socket intact.
Configuration menu - View commit details
-
Copy full SHA for a9c756e - Browse repository at this point
Copy the full SHA a9c756eView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff main...fix/devtools-rpc-auth