Security Alert Summary
The WP Games Embed plugin for WordPress contains a stored cross-site scripting (XSS) vulnerability in its [game] shortcode. Insufficient sanitization and escaping of several shortcode attributes can allow authenticated users with Contributor-level access or higher to inject scripts that execute when an injected page is viewed.
CVE Details
- CVE ID: CVE-2026-3996
- Affected component: WP Games Embed plugin for WordPress
- Affected versions: All versions up to and including 0.1beta
- Published: March 21, 2026 at 04:17:35 AM UTC
- Last modified: March 21, 2026 at 04:17:35 AM UTC
- CVSS v3.1: Base score 6.4, MEDIUM —
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N - Authentication / privileges / user interaction: Privileges Required: LOW (authenticated user with Contributor-level access or higher). User Interaction: NONE.
- Primary impact: Confidentiality: Low; Integrity: Low; Availability: None
- CWE: CWE-79 (Improper Neutralization of Input During Web Page Generation)
Technical Details
The vulnerability is a stored cross-site scripting (XSS) issue in the plugin’s [game] shortcode. User-supplied shortcode attributes such as ‘width’, ‘height’, ‘src’, ‘title’, ‘description’, ‘game_url’, ‘main’, and ‘thumb’ are concatenated directly into HTML output without proper input sanitization or output escaping. Because these attributes are persisted and rendered in pages, an authenticated user with Contributor-level access or higher can insert arbitrary script content that will execute when other users view the affected page. The issue exists due to missing sanitization/escaping on those shortcode attributes in the plugin’s output path.
How This Could Impact Your Website
Consider a site with multiple users: a site owner, internal editors, and external contributors. A contributor could create or edit content using the vulnerable [game] shortcode to embed a script payload. When an editor or other site visitor views the page, that script can run in their browser context. Practical consequences include exposure of user session data visible to the script, disclosure of information displayed on the page, and increased risk of targeted phishing or social engineering against staff whose browsers executed the payload.
This vulnerability does not necessarily give an attacker full server access, but it can be used to harvest session tokens, user-visible email addresses, or perform actions in the context of an authenticated viewer depending on what the injected script does.
“If you’re unsure whether your site is affected or how to assess your current user roles and plugins, it may be worth having a professional review your setup.”
Recommended Actions
- Update the affected plugin as soon as a patched version is available.
- Review and reduce unnecessary user roles, especially Contributor and higher privileges.
- Enforce strong passwords and two-factor authentication for editors and administrators.
- Remove unused or unmaintained plugins.
- Monitor site activity and logs for unusual behavior or unexpected content changes.
If you’d like help reviewing your plugins, user roles, or overall WordPress security posture, our team at Freshy is happy to help.
References
- https://plugins.trac.wordpress.org/browser/wp-games-embed/tags/0.1/wp-games-embed.php#L14
- https://plugins.trac.wordpress.org/browser/wp-games-embed/tags/0.1/wp-games-embed.php#L32
- https://plugins.trac.wordpress.org/browser/wp-games-embed/tags/0.1/wp-games-embed.php#L35
- https://plugins.trac.wordpress.org/browser/wp-games-embed/tags/0.1/wp-games-embed.php#L41
- https://plugins.trac.wordpress.org/browser/wp-games-embed/trunk/wp-games-embed.php#L14
- https://plugins.trac.wordpress.org/browser/wp-games-embed/trunk/wp-games-embed.php#L32
- https://plugins.trac.wordpress.org/browser/wp-games-embed/trunk/wp-games-embed.php#L35
- https://plugins.trac.wordpress.org/browser/wp-games-embed/trunk/wp-games-embed.php#L41
- https://www.wordfence.com/threat-intel/vulnerabilities/id/6a8cc968-01a5-45b8-bee8-86c858f86514?source=cve