Skip to content
OpenAdvisories
High · 8.6 CVE-2026-49864 EUVD-2026-58245GHSA-p26j-h7wj-r568

wetty vulnerable to DOM XSS via file-download filename

Published Aug 13, 2026 · Updated Aug 18, 2026 · Assigned by GitHub_M

Description

wetty provides terminal access in browser over http/https. Prior to version 3.0.4, the wetty client decodes a base64 filename from the file-download escape sequence and interpolates it raw into a Toastify HTML string (`escapeMarkup: false`). Any output the victim renders - a `cat`'d file, a tailed log, an SSH MOTD, a `curl` response - that contains `\x1b[5i...:...\x1b[4i` runs script in the wetty origin and types attacker-chosen keystrokes into the victim's SSH session. Version 3.0.4 fixes the issue.

Affected products

VendorProductAffectedFixed
butlerx wetty < 3.0.4 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm wetty < 3.0.4 3.0.4 GHSA-p26j-h7wj-r568

References