CVE-2026-48371: Magento Email Ssti

User input is retrieved and sanitized using `escapeHtml` before being passed to `nl2br`. In Magento email templates and other rendering contexts, `escapeHtml` does not strip curly braces `{` and `}`, making the input vulnerable to Server-Side Template Injection (SSTI) if evaluated by the template engine. Validate the input against template directives (e.g.,

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0PHP
greprules fetch cve-2026-48371-magento-email-ssti --engine opengrep

Description

User input is retrieved and sanitized using `escapeHtml` before being passed to `nl2br`. In Magento email templates and other rendering contexts, `escapeHtml` does not strip curly braces `{` and `}`, making the input vulnerable to Server-Side Template Injection (SSTI) if evaluated by the template engine. Validate the input against template directives (e.g.,