Insufficient sanitization and validation of a shortcode attribute allows users with contributor-level access and above to inject arbitrary HTML and JavaScript. This occurs when the attribute is used as an HTML tag name during content rendering, leading to stored Cross-Site Scripting (XSS), where the injected code executes in the session of higher-privileged users, such as administrators, who view the affected content.