CVE-2026-40497: Missing Style In Html Denylist

An HTML tag denylist array contains 'script' and 'iframe' but omits 'style'. This allows attackers to inject malicious CSS, which can be leveraged for CSRF token exfiltration and other CSS injection attacks. Ensure 'style' is included in the array of stripped tags.

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0PHP
greprules fetch cve-2026-40497-missing-style-in-html-denylist --engine opengrep

Description

An HTML tag denylist array contains 'script' and 'iframe' but omits 'style'. This allows attackers to inject malicious CSS, which can be leveraged for CSRF token exfiltration and other CSS injection attacks. Ensure 'style' is included in the array of stripped tags.