CVE-2024-37156: Symfony Sprintf Html Xss

Unsanitized request input is formatted into an HTML string using sprintf(). This can lead to Cross-Site Scripting (XSS) if the string is subsequently rendered or returned in an HTTP Response without further encoding. Use htmlspecialchars() on user input before placing it into native HTML string templates.

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0PHPβ
greprules fetch cve-2024-37156-symfony-sprintf-html-xss --engine opengrep

Description

Unsanitized request input is formatted into an HTML string using sprintf(). This can lead to Cross-Site Scripting (XSS) if the string is subsequently rendered or returned in an HTTP Response without further encoding. Use htmlspecialchars() on user input before placing it into native HTML string templates.