Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nuxt/devtools
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: nuxt/devtools
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: fix/devtools-rpc-auth
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 14 commits
  • 85 files changed
  • 2 contributors

Commits on Apr 30, 2026

  1. Configuration menu
    Copy the full SHA
    8c0d3c7 View commit details
    Browse the repository at this point in the history
  2. chore: update deps

    antfu committed Apr 30, 2026
    Configuration menu
    Copy the full SHA
    50f6eb8 View commit details
    Browse the repository at this point in the history
  3. chore: release v3.2.5

    antfu committed Apr 30, 2026
    Configuration menu
    Copy the full SHA
    05d55a2 View commit details
    Browse the repository at this point in the history

Commits on May 29, 2026

  1. chore: update ignore

    antfu committed May 29, 2026
    Configuration menu
    Copy the full SHA
    b2f7647 View commit details
    Browse the repository at this point in the history

Commits on Jul 17, 2026

  1. fix: nuxt api url

    antfu committed Jul 17, 2026
    Configuration menu
    Copy the full SHA
    1f0b20d View commit details
    Browse the repository at this point in the history
  2. chore: lint

    antfu committed Jul 17, 2026
    Configuration menu
    Copy the full SHA
    961b51d View commit details
    Browse the repository at this point in the history
  3. chore: release v3.2.6

    antfu committed Jul 17, 2026
    Configuration menu
    Copy the full SHA
    e65c8a9 View commit details
    Browse the repository at this point in the history

Commits on Jul 24, 2026

  1. 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.
    antfubot committed Jul 24, 2026
    Configuration menu
    Copy the full SHA
    ce6487c View commit details
    Browse the repository at this point in the history
  2. 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.
    antfubot committed Jul 24, 2026
    Configuration menu
    Copy the full SHA
    69ba059 View commit details
    Browse the repository at this point in the history
  3. 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.
    antfubot committed Jul 24, 2026
    Configuration menu
    Copy the full SHA
    8b84b29 View commit details
    Browse the repository at this point in the history

Commits on Jul 29, 2026

  1. 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.
    antfubot committed Jul 29, 2026
    Configuration menu
    Copy the full SHA
    086182a View commit details
    Browse the repository at this point in the history
  2. 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.
    antfubot committed Jul 29, 2026
    Configuration menu
    Copy the full SHA
    f1c82a6 View commit details
    Browse the repository at this point in the history
  3. 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.
    antfubot committed Jul 29, 2026
    Configuration menu
    Copy the full SHA
    e363305 View commit details
    Browse the repository at this point in the history
  4. 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.
    antfubot committed Jul 29, 2026
    Configuration menu
    Copy the full SHA
    a9c756e View commit details
    Browse the repository at this point in the history
Loading