Vulnerability library
Security checkMay 08, 2026

Electerm runWidget has a path traversal that leads to arbitrary code execution

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

High severitynpmelecterm

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

The runWidget function in src/app/widgets/load-widget.js constructs a file path by directly concatenating user‑supplied widget identifiers without any sanitisation:

Because runWidget is exposed to the renderer process via an asynchronous IPC handler with no input validation, an attacker who achieves JavaScript execution inside the renderer (for example, through a malicious plugin or a cross‑site scripting flaw in the built‑in webview) can abuse a path traversal (../) to load and execute an arbitrary JavaScript file anywhere on the victim’s filesystem.

Recommendation

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

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

References

Could your website be exposed too?

SmartScanner can check your website for Electerm runWidget has a path traversal that leads to arbitrary code execution and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated May 08, 2026