CVE-2026-71319: CWE-94: Improper Control of Generation of Code ('Code Injection') in nuxt devtools
A critical code injection vulnerability (CWE-94) exists in Nuxt DevTools versions prior to 3.3.1. The devtools expose an unauthenticated bidirectional RPC channel over the Vite HMR WebSocket, allowing any client with network access to the HMR endpoint to invoke certain RPC methods without authentication. Specifically, the updateOptions() and openInEditor() methods lack proper authentication checks, enabling an attacker to set arbitrary commands and execute them on the developer's machine. This vulnerability is fixed in version 3.3.1.
AI Analysis
Technical Summary
Nuxt DevTools (development mode only) prior to version 3.3.1 exposes a bidirectional RPC channel over the Vite HMR WebSocket without authentication. The updateOptions(), clearOptions(), and openInEditor() RPC methods do not enforce the ensureDevAuthToken check. An attacker with network access to the Vite HMR endpoint can call updateOptions() to set the behavior.openInEditor value to an arbitrary command, then invoke openInEditor() to execute that command as a child process on the developer's machine. This constitutes an improper control of code generation (CWE-94) and improper authentication (CWE-306) vulnerability leading to remote code execution. The issue is resolved in Nuxt DevTools 3.3.1.
Potential Impact
An unauthenticated attacker who can reach the Vite HMR WebSocket endpoint can execute arbitrary code on the developer's machine running Nuxt DevTools in development mode. This can lead to full compromise of the developer environment, including confidentiality, integrity, and availability impacts. The vulnerability is critical with a CVSS score of 9.6.
Mitigation Recommendations
Upgrade Nuxt DevTools to version 3.3.1 or later, where this vulnerability is fixed. Prior to upgrading, restrict network access to the Vite HMR WebSocket endpoint to trusted clients only, as the channel lacks authentication. Patch status is confirmed fixed in 3.3.1.
CVE-2026-71319: CWE-94: Improper Control of Generation of Code ('Code Injection') in nuxt devtools
Description
A critical code injection vulnerability (CWE-94) exists in Nuxt DevTools versions prior to 3.3.1. The devtools expose an unauthenticated bidirectional RPC channel over the Vite HMR WebSocket, allowing any client with network access to the HMR endpoint to invoke certain RPC methods without authentication. Specifically, the updateOptions() and openInEditor() methods lack proper authentication checks, enabling an attacker to set arbitrary commands and execute them on the developer's machine. This vulnerability is fixed in version 3.3.1.
CVSS v3.1
Score 9.6critical
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Nuxt DevTools (development mode only) prior to version 3.3.1 exposes a bidirectional RPC channel over the Vite HMR WebSocket without authentication. The updateOptions(), clearOptions(), and openInEditor() RPC methods do not enforce the ensureDevAuthToken check. An attacker with network access to the Vite HMR endpoint can call updateOptions() to set the behavior.openInEditor value to an arbitrary command, then invoke openInEditor() to execute that command as a child process on the developer's machine. This constitutes an improper control of code generation (CWE-94) and improper authentication (CWE-306) vulnerability leading to remote code execution. The issue is resolved in Nuxt DevTools 3.3.1.
Potential Impact
An unauthenticated attacker who can reach the Vite HMR WebSocket endpoint can execute arbitrary code on the developer's machine running Nuxt DevTools in development mode. This can lead to full compromise of the developer environment, including confidentiality, integrity, and availability impacts. The vulnerability is critical with a CVSS score of 9.6.
Mitigation Recommendations
Upgrade Nuxt DevTools to version 3.3.1 or later, where this vulnerability is fixed. Prior to upgrading, restrict network access to the Vite HMR WebSocket endpoint to trusted clients only, as the channel lacks authentication. Patch status is confirmed fixed in 3.3.1.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-08-05T18:14:42.065Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a73ae26bf8831d539800be5
Added to database: 08/05/2026, 21:41:58 UTC
Last enriched: 08/13/2026, 16:55:30 UTC
Last updated: 08/16/2026, 06:52:21 UTC
Views: 70
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.