visualise
Audited by Socket on Aug 20, 2026
1 alert found:
SecurityNo direct evidence of classic malware (e.g., backdoor, crypto-mining, or explicit exfiltration) is present in the shown fragment. However, the code demonstrates a security-critical capability: attacker-influenced fenced payloads are written into an iframe document via `contentDocument.write()`/`close()`, and the iframe CSP weakens protections by allowing inline script/style. This combination creates a strong attacker-controlled HTML/JS execution vector (XSS/code execution in iframe context) and should be treated as a high-risk supply-chain dependency unless strict sanitization and a properly sandboxed iframe are guaranteed by surrounding implementation. The optional MCP wrapper further adds local reference-file disclosure for enumerated inputs and can return arbitrary widget code for rendering.