Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. wetty
  4. ›
  5. CVE-2026-49864

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

July 1, 2026

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.

References

  • github.com/advisories/GHSA-p26j-h7wj-r568
  • github.com/butlerx/wetty/security/advisories/GHSA-p26j-h7wj-r568
  • nvd.nist.gov/vuln/detail/CVE-2026-49864

Code Behaviors & Features

Detect and mitigate CVE-2026-49864 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.0.4

Fixed versions

  • 3.0.4

Solution

Upgrade to version 3.0.4 or above.

Impact 8.3 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

npm/wetty/CVE-2026-49864.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Thu, 02 Jul 2026 12:23:05 +0000.