{"id":"CVE-2026-49864","published":"2026-08-13T19:10:41Z","modified":"2026-08-18T01:35:30Z","title":"wetty vulnerable to DOM XSS via file-download filename","vendor":"butlerx","product":"wetty","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.6,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00444,"percentile":0.39451,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/butlerx/wetty/security/advisories/GHSA-p26j-h7wj-r568","tags":["x_refsource_CONFIRM"]}],"priority":{"score":13.9,"factors":[{"name":"EPSS percentile","points":7.89},{"name":"CVSS severity","points":6.02}]},"vendorSlug":"butlerx","affectedVersions":[{"vendor":"butlerx","product":"wetty","versions":["< 3.0.4"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-08-18T01:35:03.663139Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"wetty","vulnerableRanges":["<3.0.4"],"patched":["3.0.4"],"from":["GHSA-p26j-h7wj-r568"],"provenance":"source"}],"summary":{"text":"WeTTY, a browser-based terminal access tool, contains a DOM cross-site scripting flaw in its client-side file-download handling, where a base64-encoded filename from an escape sequence is inserted unescaped into a notification's HTML. An attacker who can get a victim to render crafted terminal output, such as a file, log, MOTD, or HTTP response, with no authentication needed, can run script in the WeTTY origin and inject keystrokes into the victim's SSH session, though user interaction is required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:35:57Z"},"euvd":{"id":"EUVD-2026-58245","exploited":false,"provenance":"source"}}