Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

AUTOMATIC1111/stable-diffusion-webui
master @ 82a973c
7
Fixes
0
CVEs
HIGH
Peak severity
14.3%
Coverage
Highlights
Path Traversal: 5 prior fixes. Scrutinize any change in this area.
modules/images.py: most-fixed (2 issues). Treat as high-risk during review.
5 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Path Traversal: Directly joins user-supplied hypernetwork name into a file path for writing, allowing arbitrary file write outside intended directory.
Path Traversal: Caption text used in output filenames without sanitization can traverse directories or create overly long paths.
Path Traversal: Regex sanitization only applied when --hide_ui_dir_config is set; otherwise path traversal sequences may pass through to file operations.