CVE-2026-4083

The Scoreboard for HTML5 Games Lite plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'scoreboard' shortcode in all versions up to, and including, 1.2. The shortcode function sfhg_shortcode() allows arbitrary HTML attributes to be added to the rendered <iframe> element, with only a small blacklist of four attribute names (same_height_as, onload, onpageshow, onclick) being blocked. While the attribute names are passed through esc_html() and values through esc_attr(), this does not prevent injection of JavaScript event handler attributes like onfocus, onmouseover, onmouseenter, etc., because these attribute names and simple JavaScript payloads contain no characters that would be modified by these escaping functions. The shortcode text is stored in post_content and is only expanded to HTML at render time, after WordPress's kses filtering has already been applied to the raw post content. This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
Configurations

No configuration.

History

22 Apr 2026, 21:32

Type Values Removed Values Added
Summary
  • (es) El plugin Scoreboard for HTML5 Games Lite para WordPress es vulnerable a cross-site scripting almacenado a través del shortcode 'scoreboard' en todas las versiones hasta la 1.2, inclusive. La función de shortcode sfhg_shortcode() permite que se añadan atributos HTML arbitrarios al elemento renderizado, con solo una pequeña lista negra de cuatro nombres de atributos (same_height_as, onload, onpageshow, onclick) bloqueados. Si bien los nombres de los atributos se pasan a través de esc_html() y los valores a través de esc_attr(), esto no evita la inyección de atributos de gestor de eventos JavaScript como onfocus, onmouseover, onmouseenter, etc., porque estos nombres de atributos y cargas útiles JavaScript simples no contienen caracteres que serían modificados por estas funciones de escape. El texto del shortcode se almacena en post_content y solo se expande a HTML en el momento de la renderización, después de que el filtrado kses de WordPress ya se haya aplicado al contenido sin procesar de la publicación. Esto hace posible que atacantes autenticados, con acceso de nivel de Colaborador y superior, inyecten scripts web arbitrarios en páginas que se ejecutarán cada vez que un usuario acceda a una página inyectada.

21 Mar 2026, 00:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-03-21 00:16

Updated : 2026-04-22 21:32


NVD link : CVE-2026-4083

Mitre link : CVE-2026-4083

CVE.ORG link : CVE-2026-4083


JSON object : View

Products Affected

No product.

CWE
CWE-79

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')