sap-extension-creator
Audited by Socket on Aug 3, 2026
2 alerts found:
Securityx2The dominant security finding is a high-likelihood DOM XSS vulnerability: incoming WebSocket message content is inserted into the DOM using innerHTML after only newline-to-<br> conversion, with no escaping or sanitization. If an attacker can influence the backend/upstream message content, arbitrary HTML/JS can execute in the client. Other behaviors (MCP call handler) do not show direct code execution in this fragment, but rely on weak client-side gating and proper server-side authorization is required. No strong evidence of traditional malware (e.g., reverse shells/cryptomining) is present in this code segment.
This module does not show direct malware behavior such as credential theft, reverse shells, or dynamic code execution. However, it has a significant client-side security weakness: it renders WebSocket-provided message content into the DOM via innerHTML, including HTML generated by marked.parse, without any sanitization/escaping shown. If an attacker can influence WebSocket message content, this creates a credible DOM XSS pathway. Additionally, the client continuously transmits user input on every keystroke and uses weak MCP tool-name substring gating, which are notable security design concerns.