Nuxt 漏洞与安全更新

20 条

11月17日周二

  • Nuxt: Colliding island props can share one `/__nuxt_island` path (incomplete fix for CVE-2026-46342)

    受影响: npm:nuxt >= 4.4.6, < 4.6.4 → 4.6.4, npm:nuxt >= 3.21.6, < 4.0.0, npm:@nuxt/nitro-server >= 4.4.6, < 4.6.4 → 4.6.4, npm:@nuxt/nitro-server >= 3.21.6, < 4.0.0 The fix for CVE-2026-46342 (GHSA-g8wj-3cr3-6w7v) binds each /__nuxt_island/ _ .json path to its props by hashing the (name, props, context, source) tuple. That hash was computed over ohash's serialization, which does not escape quotes inside strings or delimiters inside keys, so two different prop objects can produce the same hash. A request with crafted props can therefore pass validation for another island's path and render different content at that path. Impact For example, these two prop ob…

  • Nuxt exposes the message and data of unhandled errors thrown during server rendering

    受影响: npm:nuxt >= 4.0.0, < 4.6.4 → 4.6.4, npm:nuxt >= 3.0.0, < 4.0.0 When a page, plugin or route middleware throws an error that is not an HTTP error, Nuxt wraps it with createError before rendering the error page. The wrapped error was treated as one the app raised deliberately, so in production its message and data were sent to the client in the error page payload (__NUXT_DATA__) and in JSON error responses. For a failed $fetch, that is the URL that was requested (including its query string) and the body of the upstream error response. Impact An application i…

  • Nuxt payload URL generation has quadratic cost for repeated slashes in the request path

    受影响: npm:nuxt >= 4.6.0, < 4.6.4 → 4.6.4 Nuxt strips trailing slashes from the request path with a regular expression whose cost grows quadratically with the length of a run of consecutive slashes. A single unauthenticated request with a long run of slashes can occupy the server's event loop for a noticeable time, delaying every other request handled by the same process. Impact When a page is rendered with payload extraction (any route covered by an isr, swr or cache route rule), Nuxt builds the _payload.json URL from the raw request…

  • @nuxt/webpack-builder and @nuxt/rspack-builder dev server serves built source to DNS rebinding pages

    受影响: npm:@nuxt/webpack-builder >= 4.0.0, < 4.6.4 → 4.6.4, npm:@nuxt/webpack-builder >= 3.0.0, < 4.0.0, npm:@nuxt/rspack-builder >= 4.0.0, < 4.6.4 → 4.6.4, npm:@nuxt/rspack-builder >= 3.12.2, < 4.0.0 When using the webpack or rspack builder, the dev server serves built client chunks to any request whose Host header matches its Origin/Referer, or that carries Sec-Fetch-Site: same-origin. After a DNS rebinding attack both headers name the attacker's hostname, so a malicious page opened while nuxt dev is running can read /_nuxt/.js and exfiltrate the app's source. This bypasses the same-origin check added for [GHSA-4gf7-ff8x-hq99](https://github.com/nuxt/nuxt/security/advisories/GHSA-4gf7-ff8x…

11月16日周一

11月14日周六

11月11日周三

  • Nuxt Content: Unauthenticated SQLite Function DoS via Content Query API

    受影响: npm:@nuxt/content >= 3.0.0, < 3.15.2 → 3.15.2 The POST /__nuxt_content/:collection/query endpoint in @nuxt/content accepts an attacker-controlled sql field from the HTTP request body and executes it against a local SQLite database after passing it through an insufficient validator (assertSafeQuery). The validator only blocks a small set of SQL command keywords and does not reject expensive SQLite built-in functions such as randomblob(), zeroblob(), hex(), or length(). An unauthenticated remote attacker can craft a single request that force…

10月31日周六

  • Nuxt dev server exposes generated appSecret through Vite file serving

    受影响: npm:@nuxt/vite-builder >= 4.6.0, < 4.6.3 → 4.6.3 When no appSecret is configured (via NUXT_APP_SECRET, NITRO_APP_SECRET or runtimeConfig.appSecret), nuxt dev generates a development secret and stores it in /app-secret (by default .nuxt/app-secret). The build directory is inside the directories that Nuxt passes to Vite's server.fs.allow, so the file can be fetched from the dev server: bash curl http:// /_nuxt/@fs/ /.nuxt/app-secret Anyone who can read it can compute every secret derived from it with deriveSecret(), including the default passwo…

  • Nuxt: Dot segments in the request path bypass `server/middleware` path checks and server route rules on page routes

    受影响: npm:nuxt >= 4.6.0, < 4.6.3 → 4.6.3, npm:@nuxt/nitro-server >= 4.6.0, < 4.6.3 → 4.6.3 Since 4.6.0, Nuxt resolves . and .. segments in the request path, including percent-encoded forms such as %2e, before rendering a page. Nitro's routing, Nitro's route rules and server/middleware see the path with those segments still in place. A request for /%2e/admin therefore renders the page at /admin, while server-side checks keyed on /admin do not apply. Impact An unauthenticated attacker can bypass server-side controls that match on the request path of a page route. server/middleware that…

  • Nuxt dev server arbitrary file read through client error reports

    受影响: npm:@nuxt/vite-builder >= 4.6.0, < 4.6.3 → 4.6.3 A client that can connect to the dev server's HMR socket can send a nuxt:dev:client-error event whose message ends in an absolute file path. The dev server reads that file while building the error report, and its contents are returned in the error overlay, on the dev error channel, and in the report shown in the terminal. Impact This affects the development server only; production builds contain none of this code. Affected versions are 4.6.0 to 4.6.2. Reading the file requires TCP access to the…

  • Nuxt dev server exposes private runtime config through the Nitro dev bundle

    受影响: npm:@nuxt/vite-builder >= 3.0.0, < 4.6.3 → 4.6.3 With Nitro 2 (the default server engine in Nuxt 3 and Nuxt 4), the Nitro development server bundle written by nuxt dev can be fetched through the Vite dev server. Nitro inlines the resolved runtimeConfig into that bundle, so private runtime config values that were resolved at build time can be read by anyone with HTTP access to the dev server. Impact nuxt dev writes the Nitro development server bundle to /dev/index.mjs (by default .nuxt/dev/index.mjs). The build directory is inside the director…

10月23日周五

7月29日周三

7月8日周三

  • v2.9.2

    2.9.2 / 2026.07.08 feat(desktop): autodetect React Router framework ( #35557 ) feat(desktop): enable --hmr for Vite and Nuxt ( #35851 ) feat(desktop): run HMR by framework dev server ( #35722 ) feat(desktop): window opacity and transparency APIs ( #35646 ) feat(desktop): wire --exclude-unused-npm through to compile ( #35740 ) feat(ext/node): implement v8.setHeapSnapshotNearHeapLimit ( #35694 ) feat(ext/telemetry): honor OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT ( #35068 ) feat(inspector): start inspector server on SIGUSR1 ( #35738 ) feat(node): implement getTestContext() in node:test ( #35678 ) feat:…

9月19日周二

6月18日周五