wechat-original-hot
Audited by Socket on Sep 2, 2026
1 alert found:
AnomalyNo clear evidence of intentional malware (e.g., backdoor, exfiltration, cryptomining, reverse shell) in the provided Python fragment. However, the code constructs and persists an HTML file by directly embedding untrusted JSON/CLI-derived strings into HTML/attributes without escaping or input validation, creating a significant stored/reflective XSS risk when the generated HTML is opened. Additionally, the output page loads and executes a third-party PDF/export JavaScript library from a public CDN without integrity protection, increasing runtime supply-chain trust exposure. Fragment truncation/missing function definitions reduce certainty about exact reachability of all injection points, but the unsafe templating pattern is clearly present.