CVE-2025-13678: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in siamlottery Thai Lottery Widget
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.
AI Analysis
Technical Summary
CVE-2025-13678 is a stored Cross-Site Scripting (XSS) vulnerability categorized under CWE-79, found in the Thai Lottery Widget plugin for WordPress, which is widely used to display lottery results. The vulnerability arises from improper neutralization of user-supplied input during web page generation, specifically in the 'width' and 'height' shortcode attributes of the 'thailottery' shortcode. These attributes are not sufficiently sanitized or escaped before being rendered on the page, allowing an authenticated attacker with Contributor-level privileges or higher to inject arbitrary JavaScript code. Because the injected script is stored in the page content, it executes every time any user accesses the affected page, potentially enabling session hijacking, privilege escalation, or other malicious actions. The vulnerability requires authentication but no further user interaction, and it affects all versions of the plugin up to and including 2.5. The CVSS v3.1 score is 6.4, reflecting a medium severity with network attack vector, low attack complexity, and privileges required. The scope is changed (S:C), indicating that the vulnerability can affect resources beyond the vulnerable component. No patches are currently linked, and no known exploits have been reported in the wild. The vulnerability is particularly concerning for WordPress sites that allow multiple contributors or editors to add content and use this plugin, as it can be leveraged to compromise site visitors or administrators.
Potential Impact
For European organizations, the impact of this vulnerability can be significant if the Thai Lottery Widget plugin is in use on their WordPress sites, especially those that allow Contributor-level users to add or modify content. Exploitation could lead to the injection of malicious scripts that compromise the confidentiality of user sessions, steal sensitive information, or perform unauthorized actions on behalf of users. While availability is not directly affected, the integrity of website content and user trust can be severely damaged. Organizations involved in e-commerce, information dissemination, or community engagement could face reputational harm and potential regulatory scrutiny under GDPR if user data is compromised. The medium CVSS score reflects that while exploitation requires some privileges, the attack can be performed remotely over the network without user interaction, increasing risk. Since no known exploits are in the wild, the threat is currently theoretical but should be addressed proactively. The vulnerability could also be leveraged in targeted attacks against European entities with Thai community ties or interest in lottery-related content.
Mitigation Recommendations
1. Immediately audit WordPress sites for the presence of the Thai Lottery Widget plugin and identify versions up to 2.5. 2. Restrict Contributor-level and higher privileges to trusted users only, minimizing the risk of malicious shortcode attribute injection. 3. Implement Web Application Firewall (WAF) rules to detect and block suspicious shortcode attribute values containing script tags or event handlers. 4. Apply strict input validation and output encoding on shortcode attributes if custom development is possible, ensuring all user inputs are sanitized before rendering. 5. Monitor site content for unexpected script injections or anomalies in pages using the 'thailottery' shortcode. 6. Once the vendor releases a patch, prioritize updating the plugin to the fixed version. 7. Educate content contributors about the risks of injecting untrusted content and enforce content review workflows. 8. Consider disabling or replacing the plugin if it is not essential to reduce attack surface.
Affected Countries
Germany, France, United Kingdom, Netherlands, Belgium, Sweden, Denmark
CVE-2025-13678: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in siamlottery Thai Lottery Widget
Description
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.
AI-Powered Analysis
Technical Analysis
CVE-2025-13678 is a stored Cross-Site Scripting (XSS) vulnerability categorized under CWE-79, found in the Thai Lottery Widget plugin for WordPress, which is widely used to display lottery results. The vulnerability arises from improper neutralization of user-supplied input during web page generation, specifically in the 'width' and 'height' shortcode attributes of the 'thailottery' shortcode. These attributes are not sufficiently sanitized or escaped before being rendered on the page, allowing an authenticated attacker with Contributor-level privileges or higher to inject arbitrary JavaScript code. Because the injected script is stored in the page content, it executes every time any user accesses the affected page, potentially enabling session hijacking, privilege escalation, or other malicious actions. The vulnerability requires authentication but no further user interaction, and it affects all versions of the plugin up to and including 2.5. The CVSS v3.1 score is 6.4, reflecting a medium severity with network attack vector, low attack complexity, and privileges required. The scope is changed (S:C), indicating that the vulnerability can affect resources beyond the vulnerable component. No patches are currently linked, and no known exploits have been reported in the wild. The vulnerability is particularly concerning for WordPress sites that allow multiple contributors or editors to add content and use this plugin, as it can be leveraged to compromise site visitors or administrators.
Potential Impact
For European organizations, the impact of this vulnerability can be significant if the Thai Lottery Widget plugin is in use on their WordPress sites, especially those that allow Contributor-level users to add or modify content. Exploitation could lead to the injection of malicious scripts that compromise the confidentiality of user sessions, steal sensitive information, or perform unauthorized actions on behalf of users. While availability is not directly affected, the integrity of website content and user trust can be severely damaged. Organizations involved in e-commerce, information dissemination, or community engagement could face reputational harm and potential regulatory scrutiny under GDPR if user data is compromised. The medium CVSS score reflects that while exploitation requires some privileges, the attack can be performed remotely over the network without user interaction, increasing risk. Since no known exploits are in the wild, the threat is currently theoretical but should be addressed proactively. The vulnerability could also be leveraged in targeted attacks against European entities with Thai community ties or interest in lottery-related content.
Mitigation Recommendations
1. Immediately audit WordPress sites for the presence of the Thai Lottery Widget plugin and identify versions up to 2.5. 2. Restrict Contributor-level and higher privileges to trusted users only, minimizing the risk of malicious shortcode attribute injection. 3. Implement Web Application Firewall (WAF) rules to detect and block suspicious shortcode attribute values containing script tags or event handlers. 4. Apply strict input validation and output encoding on shortcode attributes if custom development is possible, ensuring all user inputs are sanitized before rendering. 5. Monitor site content for unexpected script injections or anomalies in pages using the 'thailottery' shortcode. 6. Once the vendor releases a patch, prioritize updating the plugin to the fixed version. 7. Educate content contributors about the risks of injecting untrusted content and enforce content review workflows. 8. Consider disabling or replacing the plugin if it is not essential to reduce attack surface.
Affected Countries
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Wordfence
- Date Reserved
- 2025-11-25T18:50:06.347Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6932a9b1f88dbe026c8e9fc0
Added to database: 12/5/2025, 9:45:21 AM
Last enriched: 12/12/2025, 10:49:44 AM
Last updated: 1/19/2026, 8:47:47 PM
Views: 95
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Related Threats
CVE-2026-23852: CWE-94: Improper Control of Generation of Code ('Code Injection') in siyuan-note siyuan
MediumCVE-2026-1174: Resource Consumption in birkir prime
MediumCVE-2026-23837: CWE-863: Incorrect Authorization in franklioxygen MyTube
CriticalCVE-2026-23851: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in siyuan-note siyuan
HighCVE-2026-23850: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in siyuan-note siyuan
HighActions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.