CVE-2026-49864 wetty vulnerable to DOM XSS via file-download filename
HighCVSS 8.6
EPSS 0.44%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
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.
Upgrade path
2 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| npm wetty(npm) | < 3.0.4 | 3.0.4 | Fixed |
| butlerx wetty | = < 3.0.4 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| butlerx wetty | = < 3.0.4 | No fix listed |
| npm wetty(npm) | < 3.0.4 | 3.0.4 |
References
- https://github.com/butlerx/wetty/security/advisories/GHSA-p26j-h7wj-r568 exploit vendor-advisory
- github.com
- github.com product