Highlights
ReDoS: 2 prior fixes. Scrutinize any change in this area.
sphinx.jinja2glue: most-fixed (1 issue). Treat as high-risk during review.
1 high-severity fix in this history; regressions here are high-impact.
Recurring patterns
The bug types that recur here, drawn from past fixes, not open vulnerabilities.
Code Execution: The use of Jinja2 templates without strict sandboxing allows malicious or untrusted themes to execute arbitrary Python code. Standard Jinja2 Environments must be restricted to SandboxedEnvironments to mitigate this risk.
Remote Code Execution: Dynamic generation of template functions using controllable template variables in Underscore.js allowed arbitrary script execution (CVE-2021-23358). Safe variable validation must be enforced on any dynamic script-generating sink.
ReDoS: Poorly constructed regular expressions in the intersphinx inventory parser and Google-style docstring parser can be exploited to cause infinite backtracking, resulting in CPU exhaustion and Denial of Service.