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

CVE-2026-3996

Published: 2026-03-21 04:17:36
Last Modified: 2026-04-24 16:27:44

Description

The WP Games Embed plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the [game] shortcode in all versions up to and including 0.1beta. This is due to insufficient input sanitization and output escaping on user-supplied shortcode attributes such as 'width', 'height', 'src', 'title', 'description', 'game_url', 'main', and 'thumb', which are all directly concatenated into HTML output without any escaping. 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.

WP Games Embed <= 0.1beta

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
[game title='"><script>alert(document.cookie)</script><"'] // Alternatively, using an event handler: // [game src='x' onmouseover='alert(1)']

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-3996", "sourceIdentifier": "[email protected]", "published": "2026-03-21T04:17:35.760", "lastModified": "2026-04-24T16:27:44.277", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The WP Games Embed plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the [game] shortcode in all versions up to and including 0.1beta. This is due to insufficient input sanitization and output escaping on user-supplied shortcode attributes such as 'width', 'height', 'src', 'title', 'description', 'game_url', 'main', and 'thumb', which are all directly concatenated into HTML output without any escaping. 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 WP Games Embed para WordPress es vulnerable a cross-site scripting almacenado a través del shortcode [game] en todas las versiones hasta la 0.1beta inclusive. Esto se debe a una sanitización de entrada y un escape de salida insuficientes en los atributos del shortcode proporcionados por el usuario, como 'width', 'height', 'src', 'title', 'description', 'game_url', 'main' y 'thumb', los cuales son todos concatenados directamente en la salida HTML sin ningún escape. Esto hace posible que atacantes autenticados, con acceso de nivel 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/wp-games-embed/tags/0.1/wp-games-embed.php#L14", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/wp-games-embed/tags/0.1/wp-games-embed.php#L32", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/wp-games-embed/tags/0.1/wp-games-embed.php#L35", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/wp-games-embed/tags/0.1/wp-games-embed.php#L41", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/wp-games-embed/trunk/wp-games-embed.php#L14", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/wp-games-embed/trunk/wp-games-embed.php#L32", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/wp-games-embed/trunk/wp-games-embed.php#L35", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/wp-games-embed/trunk/wp-games-embed.php#L41", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/6a8cc968-01a5-45b8-bee8-86c858f86514?source=cve", "source": "[email protected]"}]}}