CVE-2025-21621: Freemarker Insecure Conditional Autoescape

FreeMarker HTML auto-escaping is enabled conditionally based on an application method. Without securely defaulting to true, the application may disable HTML auto-escaping by default and expose the system to Cross-Site Scripting (XSS).

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0Javaβ
greprules fetch cve-2025-21621-freemarker-insecure-conditional-autoescape --engine opengrep

Description

FreeMarker HTML auto-escaping is enabled conditionally based on an application method. Without securely defaulting to true, the application may disable HTML auto-escaping by default and expose the system to Cross-Site Scripting (XSS).