# CVE-2026-49864: wetty vulnerable to DOM XSS via file-download filename

- Severity: High 8.6 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.44%, higher than 30% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-01T18:19:39.000Z
- Modified: 2026-09-09T21:02:22.660Z
- Also known as: GHSA-p26j-h7wj-r568
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- butlerx wetty: < 3.0.4
- wetty (npm): before 3.0.4

## Every score

- GitHub_M: CVSS:4.0 8.6 High `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`
- GitHub: CVSS:4.0 High `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`

## References

- <https://github.com/butlerx/wetty/security/advisories/GHSA-p26j-h7wj-r568> (exploit, web)
- <https://github.com/butlerx/wetty> (package)

## Sources

- CVE List: [CVE-2026-49864](https://www.cve.org/CVERecord?id=CVE-2026-49864), CVE Terms of Use, modified 2026-08-18
- GitHub Advisory Database: [GHSA-p26j-h7wj-r568](https://github.com/advisories/GHSA-p26j-h7wj-r568), CC-BY-4.0, modified 2026-07-01
- NVD: [CVE-2026-49864](https://nvd.nist.gov/vuln/detail/CVE-2026-49864), Public domain, modified 2026-09-09

---

Page: https://cve.day/CVE-2026-49864 · Whole record: https://cve.day/CVE-2026-49864.json · Rebuilt by cve.day 2026-11-25T22:59:32.837Z
