Security Vulnerability Report
中文
CVE-2026-4083 CVSS 6.4 MEDIUM

CVE-2026-4083

Published: 2026-03-21 00:16:29
Last Modified: 2026-04-22 21:32:08

Description

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.

CVSS Details

CVSS Score
6.4
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N

Configurations (Affected Products)

No configuration data available.

Scoreboard for HTML5 Games Lite <= 1.2

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- PoC: Stored XSS via scoreboard shortcode --> <!-- Attacker adds this in a post/page content --> [scoreboard onmouseover="alert('XSS')"] <!-- Alternatively using onfocus --> [scoreboard onfocus="alert(document.cookie)"]

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-4083", "sourceIdentifier": "[email protected]", "published": "2026-03-21T00:16:29.220", "lastModified": "2026-04-22T21:32:08.360", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "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."}, {"lang": "es", "value": "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."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N", "baseScore": 6.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.1, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/scoreboard-for-html5-game-lite/tags/1.2/scoreboard-for-html5-game-lite.php#L274", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/scoreboard-for-html5-game-lite/tags/1.2/scoreboard-for-html5-game-lite.php#L317", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/scoreboard-for-html5-game-lite/tags/1.2/scoreboard-for-html5-game-lite.php#L320", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/scoreboard-for-html5-game-lite/trunk/scoreboard-for-html5-game-lite.php#L274", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/scoreboard-for-html5-game-lite/trunk/scoreboard-for-html5-game-lite.php#L317", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/scoreboard-for-html5-game-lite/trunk/scoreboard-for-html5-game-lite.php#L320", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=3483176%40scoreboard-for-html5-game-lite&new=3483176%40scoreboard-for-html5-game-lite&sfp_email=&sfph_mail=", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/550ae348-254e-49f5-8046-38629c774802?source=cve", "source": "[email protected]"}]}}