Improper Encoding or Escaping of Output Affecting nuxt package, versions >=3.21.6 <4.6.4


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.12% (2nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-NUXT-22552425
  • published15 Nov 2026
  • disclosed13 Nov 2026
  • creditrat5ak

Introduced: 13 Nov 2026

NewCVE-2026-128076  (opens in a new tab)
CWE-116  (opens in a new tab)

How to fix?

Upgrade nuxt to version 4.6.4 or higher.

Overview

Affected versions of this package are vulnerable to Improper Encoding or Escaping of Output via the getIslandHash function in island-hash.ts, which computes the /__nuxt_island path hash using ohash serialization that does not escape quotes in string values or delimiters in object keys. This allows two different island-prop tuples to produce the same hash and therefore the same path, so a request with attacker-controlled props can collide with a legitimate island path and cause different content to be served at that path. If the substituted prop reaches an unsafe HTML sink such as v-html or innerHTML in the island component, the colliding response can execute script in the application origin; otherwise the impact is content substitution.

Note: For prerendering, substituted content is written into the generated page only if the crawler reaches a colliding URL before rendering the page with the legitimate props.

Workaround

Ensure any intermediary cache keys /__nuxt_island/* on the full query string, not on the path alone. Treat island props as untrusted input and do not pass them to v-html or other HTML sinks without sanitisation. When prerendering, avoid including user-submitted links to /__nuxt_island/ in crawled pages by excluding that prefix with nitro.prerender.ignore.

CVSS Base Scores

version 4.0
version 3.1