CVE-2026-49864

Source
https://cve.org/CVERecord?id=CVE-2026-49864
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-49864.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-49864
Aliases
Published
2026-08-13T19:10:41Z
Modified
2026-09-11T03:31:01Z
Severity
  • 8.6 (High) CVSS_V4 - 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 CVSS Calculator
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.

Database specific
{
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-79"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/49xxx/CVE-2026-49864.json"
}
References

Affected packages

Git / github.com/butlerx/wetty

Affected ranges

Type
GIT
Repo
https://github.com/butlerx/wetty
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
Show details
{
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "3.0.4"
        }
    ],
    "source": "AFFECTED_FIELD"
}

Affected versions

v1.*
v1.1.3
v1.1.4
v1.3.0
v1.4.1
v2.*
v2.0.0
v2.0.1
v2.0.2
v2.0.3
v2.1.0
v2.1.1
v2.1.2
v2.1.3
v2.2.0
v2.2.1
v2.3.0
v2.4.0
v2.4.2
v2.4.3
v2.5.0
v2.6.0
v2.7.0
v3.*
v3.0.0
v3.0.1
v3.0.2
v3.0.3

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-49864.json"