What the vulnerability does
01Description
The Thai Lottery Widget plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the `thailottery` shortcode in all versions up to, and including, 2.5. This is due to insufficient input sanitization and output escaping on the user supplied `width` and `height` shortcode attributes. 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.
Explanation of Vulnerability in Simple Terms
02Summary
The Thai Lottery Widget contains a stored cross-site scripting (XSS) vulnerability in versions up to 2.5. An authenticated user with low privileges can inject malicious scripts that execute in the browsers of other site visitors, potentially stealing session tokens or performing actions on their behalf. The vulnerability affects all users viewing the widget, regardless of their privilege level.
What an attacker can do
03Attacker Capabilities
Inject malicious scripts that run in other users' browsers when they view the widget.
Potential impact on your site
04Site Impact
Visitors to pages displaying the widget may have their sessions hijacked or be tricked into performing unwanted actions.
Conditions required to exploit
05Prerequisites
Attacker must have a low-privilege authenticated account on the site.
Key dates
06Disclosure timeline
December 5, 2025
CVE published
April 8, 2026
Record updated