Thai Lottery Widget Stored Cross-Site Scripting Vulnerability

Vulnerability

A stored cross-site scripting vulnerability has been identified in the Thai Lottery Widget plugin for WordPress, affecting all versions through 2.5. The issue arises from inadequate input sanitization and output escaping of user-supplied 'width' and 'height' attributes in the 'thailottery' shortcode. This vulnerability allows authenticated attackers with Contributor-level access or higher to inject arbitrary scripts into pages, which are executed when users access those pages.

Impact

Exploitation of this vulnerability allows for stored cross-site scripting, where injected scripts are executed in the context of the user viewing the page.

Reproduction

To reproduce this vulnerability, an authenticated user with Contributor-level access or higher can use the 'thailottery' shortcode. By injecting a script into the 'width' or 'height' attributes, the script will be executed when the page is viewed.

Added: Dec 5, 2025, 10:20 AM
Updated: Dec 5, 2025, 10:20 AM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
1.7
exploitability
6.3
remediation
0.0
relevance
1.3
threat
4.8
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.