nuxt
Affected
- introduced
3.6.0, fixed3.19.0(semver)
Fixed versions
3.19.0
Fix
- Fixed version
3.19.0npm install [email protected]
Advisory
Also known as: CVE-2025-59414
Nuxt has Client-Side Path Traversal in Nuxt Island Payload Revival
Summary
A client-side path traversal vulnerability in Nuxt's Island payload revival mechanism allowed attackers to manipulate client-side requests to different endpoints within the same application domain when specific prerendering conditions are met.
Technical Details
The vulnerability occurs in the client-side payload revival process (revive-payload.client.ts) where Nuxt Islands are automatically fetched when encountering serialized __nuxt_island objects. The issue affects the following flow:
__nuxt_island objectdevalue.stringify and stored in the prerendered pagedevalue.parse deserializes the payload/__nuxt_island/${key}.json where key could contain path traversal sequencesPrerequisites for Exploitation
This vulnerability requires all of the following conditions:
nitro.prerender)useFetch, useAsyncData, or similar composablesAttack Scenario
// Malicious API response during prerendering
{
"__nuxt_island": {
"key": "../../../../internal/service",
"params": { "action": "probe" }
}
}
This could cause the client to make requests to /__nuxt_island/../../../../internal/service.json if path traversal is not properly handled by the server.
Impact Assessment
Mitigation
Action Required:
Temporary Workarounds (if immediate update is not possible):
Fix Details
The fix implemented validation for Island keys in revive-payload.server.ts:
/^[a-z][a-z\d-]*_[a-z\d]+$/iLow Basis: The source's own band: LOW
3.6.0, fixed 3.19.0 (semver)3.19.0
3.19.0npm install [email protected]4.0.0, fixed 4.1.0 (semver)4.1.0
4.1.0npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0