9.6 CRITICAL
- CVSS version (CVSS): 3.1
- Attack Vector (AV): Network (N)
- Attack Complexity (AC): Low (L)
- Privileges Required (PR): None (N)
- User Interaction (UI): Required (R)
- Scope (S): Changed (C)
- Confidentiality (C): High (H)
- Integrity (I): High (H)
- Availability (A): High (H)
- Modified Attack Vector (MAV): Network (N)
- Modified Attack Complexity (MAC): Low (L)
- Modified Privileges Required (MPR): None (N)
- Modified User Interaction (MUI): Required (R)
- Modified Confidentiality (MC): High (H)
- Modified Scope (MS): Changed (C)
- Modified Integrity (MI): High (H)
- Modified Availability (MA): High (H)
Activity log
- Created suggestion
Nuxt.js Unauthenticated WebSocket RPC Call Leading to Remote Code Execution
Nuxt is an open-source web development framework for Vue.js. Prior to 3.3.1, Nuxt DevTools (development mode only) exposes a bidirectional RPC channel over the Vite HMR WebSocket via the nuxt:devtools:rpc plugin. On affected versions the channel has no authentication: any client that can reach the Vite HMR endpoint (ws://<host>:<port>/, subprotocol vite-hmr) can call RPC methods, with no token, handshake, or origin check before the channel is established. The updateOptions(), clearOptions(), and openInEditor() methods do not enforce the ensureDevAuthToken check that the other mutating methods use. openInEditor() reads the persisted behavior.openInEditor value and passes it to the launch-editor package, which spawns it as a child process. That value is settable through the equally unauthenticated updateOptions(). An attacker who can reach the HMR port can therefore chain updateOptions('behavior', { openInEditor: '<command>' }) then openInEditor('<any-existing-file>') to execute an arbitrary program on the developer's machine. This issue is fixed in 3.3.1.
References
-
https://github.com/nuxt/nuxt/security/advisories/GHSA-279x-mwfv-vcqv x_refsource_CONFIRM
-
https://github.com/nuxt/devtools/releases/tag/v3.3.1 x_refsource_MISC
Affected products
- ==< 3.3.1
Matching in nixpkgs
pkgs.firefox-devtools-mcp
Model Context Protocol server for Firefox DevTools automation
-
nixos-unstable -
- nixos-unstable-small 0.9.9
pkgs.gst_all_1.gst-devtools
Integration testing infrastructure for the GStreamer framework
pkgs.python313Packages.devtools
Python's missing debug print command and other development tools
pkgs.python314Packages.devtools
Python's missing debug print command and other development tools
pkgs.ghidra-extensions.sleighdevtools
Sleigh language development tools including external disassembler capabilities
pkgs.python313Packages.colcon-devtools
Extension for colcon to provide information about all extension points and extensions
pkgs.python314Packages.colcon-devtools
Extension for colcon to provide information about all extension points and extensions
pkgs.minimal-bootstrap.heirloom-devtools
Portable yacc and lex derived from OpenSolaris
pkgs.vscode-extensions.firefox-devtools.vscode-firefox-debug
Visual Studio Code extension for debugging web applications and browser extensions in Firefox
Package maintainers
-
@hexadecimalDinosaur Ivy Fan-Chiang <dev@ivyfanchiang.ca>
-
@vringar Stefan Zabka <git@zabka.it>
-
@hesiod Tobias Markus <tobias@markus-regensburg.de>
-
@alejandrosame Alejandro Sánchez Medina <alejandrosanchzmedina@gmail.com>
-
@Gskartwii Aleksi Hannula <ahannula4@gmail.com>
-
@emilytrau Emily Trau <emily+nix@downunderctf.com>
-
@siraben Siraphob Phipathananunth <bensiraphob@gmail.com>
-
@Ericson2314 John Ericson <John.Ericson@Obsidian.Systems>
-
@06kellyjac Jack <hello+nixpkgs@j-k.io>
-
@pyrox0 Pyrox <pyrox@pyrox.dev>
-
@Guelakais GueLaKais <koroyeldiores@gmail.com>
-
@jdahm Johann Dahm <johann.dahm@gmail.com>
-
@felschr Felix Schröter <dev@felschr.com>
-
@philiptaron Philip Taron <philip.taron@gmail.com>