AntSword Remote Code Execution Vulnerability via Incomplete Sanitization in jQuery Terminal

Vulnerability

A remote code execution vulnerability has been identified in AntSword versions prior to 2.1.16. The issue arises from incomplete sanitization in the 'noxss()' function, which fails to properly filter out characters used in jQuery Terminal format codes. This oversight allows a malicious server to inject clickable links with 'javascript:' protocols into the terminal, which, when clicked, execute arbitrary code on the client side. The vulnerability exploits the 'nodeIntegration: true' setting in Electron, enabling execution of Node.js commands.

Impact

Exploitation of this vulnerability allows for arbitrary code execution on the client machine, triggered by clicking a crafted link in the AntSword terminal.

Reproduction

To reproduce this vulnerability, set up a malicious PHP server that injects jQuery Terminal format codes into the response. Connect to this server using AntSword, open the virtual terminal, and execute a command. The output will include a link that, when clicked, executes a specified program (like 'calc.exe') on the client.

Remediation

Users can update to AntSword version 2.1.16 or later, where this vulnerability has been fixed.

Added: May 12, 2026, 6:59 PM
Updated: May 12, 2026, 6:59 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
7.5
exploitability
5.6
remediation
7.7
relevance
8.1
threat
6.4
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.