subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
), ] result = subprocess.run( cmd, capture_output=True, text=True, timeout=120, cwd=output_dir )- Confidence
- 79% confidence
- Finding
- The code executes an external Node-based converter on attacker-controllable Markdown and CSS paths. Even though arguments are passed safely as a list, invoking a complex external renderer on untrusted content can expose the system to downstream vulnerabilities in `md-to-pdf`/its browser engine, local file access during rendering, or unsafe processing of embedded HTML/resources.
