{"id":"CVE-2026-49864","summary":"wetty vulnerable to DOM XSS via file-download filename","details":"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.","aliases":["GHSA-p26j-h7wj-r568"],"modified":"2026-09-11T03:31:01.966576863Z","published":"2026-08-13T19:10:41.037Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/49xxx/CVE-2026-49864.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-79"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/49xxx/CVE-2026-49864.json"},{"type":"ADVISORY","url":"https://github.com/butlerx/wetty/security/advisories/GHSA-p26j-h7wj-r568"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-49864"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/butlerx/wetty","events":[{"introduced":"0"},{"fixed":"386e43211c5d8784158d943d814669a78a4ce88d"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"fixed":"3.0.4"}],"source":"AFFECTED_FIELD"}}],"versions":["v3.0.3","v3.0.2","v3.0.1","v3.0.0","v2.7.0","v2.6.0","v2.5.0","v2.4.3","v2.4.2","v2.4.0","v2.3.0","v2.2.1","v2.2.0","v2.1.3","v2.1.2","v2.1.1","v2.1.0","v2.0.3","v2.0.2","v2.0.1","v2.0.0","v1.4.1","v1.3.0","v1.1.4","v1.1.3"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-49864.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"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"}]}