Intent-Code Divergence
Medium
- Confidence
- 98% confidence
- Finding
- The script's interface and docstring imply it can accept HTML content via stdin, but when no input path is provided it reads raw stdin bytes and passes them to Path(), treating the supplied HTML as a filesystem path. In practice this can cause incorrect file access attempts, crashes, or unintended reads if attacker-controlled stdin happens to form a valid path, making the tool unsafe and unreliable in pipeline usage.
