Security context

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

sass/ruby-sass
stable @ 7a50eae
7
Fixes
0
CVEs
HIGH
Peak severity
Highlights
Cross-Site Scripting (XSS): 3 prior fixes. Scrutinize any change in this area.
lib/haml/helpers/xss_mods.rb: 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.

Cross-Site Scripting (XSS): Integrating template engines with framework safety buffers can result in raw string bypasses. Ensuring that standard rails helpers like `concat` are properly wrapped to auto-escape unsafe input is critical.
Reflected XSS: Nested rendering blocks that manipulate global or thread-local concatenation states can leak unescaped output configurations if they do not carefully restore the outer execution context's escaping state upon block exit.
Reflected XSS: XSS protection configurations can be bypassed entirely if initialization timing is misaligned with framework plugins, allowing raw rendering behavior before safety controls are initialized.