Skip to main content
← All vulnerabilities
CVE-2026-49864GHSA-P26J-H7WJ-R568

wetty vulnerable to DOM XSS via file-download filename

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.0.4
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • butlerx wetty

    fixed in 3.0.4

  • wettynpm

    fixed in 3.0.4

References 1

GitHub · butlerx/wetty