sa-doc

Warn

Audited by Socket on Aug 30, 2026

1 alert found:

Anomaly
AnomalyLOW
scripts/render_doc.py

No clear indicators of direct Python-based malware (e.g., backdoor, exfiltration, or process tampering) are visible in this fragment. However, the module materially increases security risk by generating an HTML page that executes JavaScript in a browser context: it loads Marked and Mermaid from public CDNs without integrity/pinning controls, renders untrusted Markdown through marked.parse(raw) without explicit sanitization, and (most critically) can embed and execute attacker-controlled inline JavaScript via --marked-js/--mermaid-js. If an attacker can influence the Markdown content or the optional JS override files, or if the CDN dependencies are compromised, the headless browser used for PDF generation will execute that code during rendering.

Confidence: 55%Severity: 62%
Audit Metadata
Analyzed At
Aug 30, 2026, 02:27 AM
Package URL
pkg:socket/skills-sh/thodsaphonsonthiphin%2Fworkflow-daily-work%2Fsa-doc%2F@d3b199d2b8b14592ba3b570b5db0baeeead6412bbd3d4d3a229810570e622dc4
Security Audit — socket — sa-doc