The vulnerability, CVE-2026-73858, describes a limited server-side Twig template injection in Solspace Freeform where submitted form field values could be evaluated as Twig. The provided commit 5f7555320635f1cd3b4c478aa0b58e8c3144313b directly addresses this issue. The patch modifies the toHtmlTagArray method within the Solspace\Freeform\Library\Attributes\Attributes class. Before the fix, this method would call $twig->render() on attribute values without proper sanitization or checks, allowing user-controlled input containing Twig expressions to be executed. The fix introduces self::EXCLUDED_TWIG_ATTRIBUTES and a conditional check to prevent Twig rendering for attributes like 'value', 'name', and 'id', which are commonly associated with user input. Therefore, the toHtmlTagArray function, in its state prior to this patch, is the vulnerable function responsible for processing and rendering potentially malicious Twig input.