Vulnerability library
Security checkJuly 01, 2026

wetty vulnerable to DOM XSS via file-download filename

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpmwetty

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

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.

Recommendation

Update the wetty package to the latest compatible version. Followings are version details:

  • Affected version(s): < 3.0.4
  • Patched version(s): 3.0.4

References

Could your website be exposed too?

SmartScanner can check your website for wetty vulnerable to DOM XSS via file-download filename and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated July 01, 2026