Intel

AIKIDO-2025-10084

elm-watch is vulnerable to Cross-Site WebSocket Hijacking

Cross-Site WebSocket Hijacking Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Feb 10, 2025

21

Low Risk

This Affects:

JSelm-watch
1.0.0 - 1.1.3
Fixed in 1.1.4
1.2.0 - 1.2.0
Fixed in 1.2.2
Are you affected? Scan for Free

TL;DR

In affected versions, a malicious website could connect to your local elm-watch WebSocket and perform various actions, including reading compiled Elm JavaScript and compilation errors, accessing your terminal's background and foreground colors, changing the compilation mode (debug, standard, optimize), repositioning elm-watch's browser UI, toggling the error overlay, and opening files in your editor. The last point is particularly critical because if you misconfigured your shell command for opening the editor, an attacker could execute malicious code on your computer.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

elm-watch is vulnerable to Cross-Site WebSocket Hijacking in versions 1.2.0 - 1.2.0 and 1.0.0 - 1.1.3.

How to fix this

Upgrade the elm-watch library to the patch version.