Security context

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

thymeleaf/thymeleaf-extras-springsecurity
3.1-master @ 51ca399
5
Fixes
0
CVEs
HIGH
Peak severity
Highlights
Auth Bypass: 3 prior fixes. Scrutinize any change in this area.
thymeleaf-extras-springsecurity: most-fixed (2 issues). Treat as high-risk during review.
2 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.

Auth Bypass: Authorization bypasses occurred when security-related attribute processors (like AuthorizeAttrProcessor, AuthorizeUrlAttrProcessor, and AuthorizeAclAttrProcessor) were only registered for HTML template modes, leaving non-HTML templates (XML, TEXT, JS, CSS) completely unprotected.
Cross-Site Scripting (XSS): Insufficent output escaping of rendered authentication attributes in Thymeleaf's sec:authentication processor allowed malicious security properties to inject and execute arbitrary scripts in the user's browser via structureHandler.setBody.
Auth Bypass: In WebFlux environments, the lack of standard SpEL support for Spring Security expressions can lead to authorization bypasses if arbitrary expressions are evaluated; thus, evaluation must be restricted to a hardcoded minimal safe set.