CVE-2026-23643: Cakephp Unescaped Form Hidden Name

CakePHP's `FormHelper::hidden()` does not automatically HTML-escape its first argument (the field name). If user-controlled data, such as query string parameter keys or values, is passed as the field name without being escaped, it can result in Cross-Site Scripting (XSS) by breaking out of the input's `name` attribute. Use the `h()` function to safely escape

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0PHP
greprules fetch cve-2026-23643-cakephp-unescaped-form-hidden-name --engine opengrep

Description

CakePHP's `FormHelper::hidden()` does not automatically HTML-escape its first argument (the field name). If user-controlled data, such as query string parameter keys or values, is passed as the field name without being escaped, it can result in Cross-Site Scripting (XSS) by breaking out of the input's `name` attribute. Use the `h()` function to safely escape