CVE-2026-71316: High severity npm/nuxt vulnerability

Published Aug 5, 2026
·
Updated

Impact

When a page is covered by routeRules cache / swr / isr, Nuxt enables runtime payload extraction and serves /<page>/payload.json. On affected versions the renderer stored the SSR payload in the shared cache:nuxt:payload storage under a path-only key (no cookie, authorization, or cache.varies dimension) and, on a later payload request, returned the cached entry before route middleware / page guards ran again.

As a result, once any authenticated user warms a protected, cached page, a subsequent GET /<page>/payload.json from an unauthenticated client or a different authenticated user receives the first user's payload: the full SSR data for that route, including anything loaded via useFetch / useAsyncData (for example /api/me: profile, tenant, billing, token-like values). The HTML response stays correctly varied and protected; only the extracted payload leaks. Both cross-user (A warms, B receives A) and unauthenticated disclosure are exploitable. cache.varies does not mitigate it, because the payload cache ignores varies.

Introduced when runtime payload extraction landed for cached routes (#34410); the regression is specific to the 4.x line, where the runtime cache:nuxt:payload storage was added and the import.meta.prerender gate on the payload-cache read/writes was dropped. The 3.x line shipped the same feature with the gate intact and is not affected.

Patches

Fixed in nuxt@4.5.1. Runtime payload-cache reads and writes are again confined to prerendering (import.meta.prerender); at runtime, /<page>/payload.json follows the normal render path so route middleware, routeRules.appMiddleware, and page guards run for the current request. main / v5 and the 3.x line already had this property, so 3.x is not affected.

Workarounds

- Set experimental.payloadExtraction: false (reporter-validated): the standalone /payload.json endpoint returns 404 and the page still serves a 200 with an inline payload. - Do not apply cache / swr / isr to authenticated pages that render user-specific SSR data. - As defense-in-depth, require authentication for //payload.json at a proxy / CDN. - After upgrading, purge any CDN / platform cache that may already hold protected payloads.

Affected Software

1 affected componentFixes available
npm/nuxt>=4.4.0<=4.5.0
4.5.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/nuxt to a version that resolves this vulnerability.

    Fixed in 4.5.1
  2. Upgrade

    Upgrade nuxt to a version that resolves this vulnerability.

    Fixed in 4.5.1
  3. Configuration

    Set `experimental.payloadExtraction: false` (reporter-validated): the standalone `/_payload.json` endpoint returns 404 and the page still serves a 200 with an inline payload.

    Nuxt runtime experimental.payloadExtraction = false
  4. Configuration

    Do not apply `cache` / `swr` / `isr` to authenticated pages that render user-specific SSR data.

    Nuxt route rules caching routeRules cache / swr / isr (runtime payload extraction behavior) = disabled for authenticated pages with user-specific SSR
  5. Compensating control

    As defense-in-depth, require authentication for `/**/_payload.json` at a proxy / CDN.

  6. Operational

    After upgrading, purge any CDN / platform cache that may already hold protected payloads.

Event History

Aug 5, 2026
Advisory Published
via GitHub·09:14 PM
Data Sourced
via GitHub·09:14 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203