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 vulnerability identified in the Thai Lottery Widget plugin for WordPress, affecting all versions up to and including 2.5. The vulnerability stems from insufficient input sanitization and output escaping of user-supplied parameters, specifically the 'width' and 'height' attributes within the 'thailottery' shortcode. Authenticated users with Contributor-level access or higher can exploit this flaw by injecting arbitrary JavaScript code into pages that utilize this shortcode. When other users access these pages, the injected scripts execute in their browsers, potentially allowing attackers to steal session cookies, perform actions on behalf of users, or manipulate page content. The vulnerability does not require user interaction beyond visiting the affected page and has a CVSS 3.1 base score of 6.4, indicating medium severity. The attack vector is network-based, with low complexity, but requires privileges (Contributor or above). The scope is changed as the vulnerability affects data accessible to other users, impacting confidentiality and integrity but not availability. No public exploits have been reported yet, but the vulnerability poses a significant risk to WordPress sites using this plugin, especially those with multiple contributors or user roles. The lack of official patches at the time of publication necessitates immediate mitigation steps to prevent exploitation.
Potential Impact
The impact of CVE-2025-13678 is primarily on the confidentiality and integrity of affected WordPress sites using the Thai Lottery Widget plugin. Successful exploitation allows attackers with Contributor-level access to inject persistent malicious scripts that execute in the context of other users' browsers. This can lead to session hijacking, unauthorized actions performed with victim user privileges, defacement, or distribution of malware. Since the vulnerability requires authenticated access, the risk is elevated in environments with multiple contributors or less strict access controls. The scope of affected systems includes any WordPress installation using the vulnerable plugin, which may be widespread in regions where the plugin is popular, especially Thailand and sites targeting Thai audiences. Although availability is not directly impacted, the indirect effects of exploitation could disrupt site operations or user trust. Organizations worldwide using this plugin face reputational damage and potential data breaches if the vulnerability is exploited. The absence of known exploits in the wild currently reduces immediate risk but does not eliminate the threat, especially as attackers often weaponize such vulnerabilities rapidly after disclosure.
Mitigation Recommendations
To mitigate CVE-2025-13678, organizations should first check for and apply any official patches or updates released by the plugin vendor. If no patch is available, immediate steps include disabling the Thai Lottery Widget plugin or removing the vulnerable shortcode usage from all pages. Restrict Contributor-level and higher privileges to trusted users only, minimizing the risk of malicious shortcode attribute injection. Implement a Web Application Firewall (WAF) with custom rules to detect and block suspicious input patterns in shortcode attributes, particularly targeting script tags or JavaScript event handlers. Conduct thorough input validation and output encoding on all user-supplied data in custom plugins or themes to prevent similar vulnerabilities. Monitor logs for unusual activity related to shortcode usage or unexpected script injections. Educate site administrators and contributors about the risks of injecting untrusted content. Finally, consider adopting security plugins that scan for XSS vulnerabilities and enforce content security policies (CSP) to reduce the impact of potential script injections.
Affected Countries
Thailand, United States, United Kingdom, Australia, Canada, Germany, France, Japan, Singapore, Malaysia
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
Machine-generated threat intelligence
Technical Analysis
CVE-2025-13678 is a stored cross-site scripting vulnerability identified in the Thai Lottery Widget plugin for WordPress, affecting all versions up to and including 2.5. The vulnerability stems from insufficient input sanitization and output escaping of user-supplied parameters, specifically the 'width' and 'height' attributes within the 'thailottery' shortcode. Authenticated users with Contributor-level access or higher can exploit this flaw by injecting arbitrary JavaScript code into pages that utilize this shortcode. When other users access these pages, the injected scripts execute in their browsers, potentially allowing attackers to steal session cookies, perform actions on behalf of users, or manipulate page content. The vulnerability does not require user interaction beyond visiting the affected page and has a CVSS 3.1 base score of 6.4, indicating medium severity. The attack vector is network-based, with low complexity, but requires privileges (Contributor or above). The scope is changed as the vulnerability affects data accessible to other users, impacting confidentiality and integrity but not availability. No public exploits have been reported yet, but the vulnerability poses a significant risk to WordPress sites using this plugin, especially those with multiple contributors or user roles. The lack of official patches at the time of publication necessitates immediate mitigation steps to prevent exploitation.
Potential Impact
The impact of CVE-2025-13678 is primarily on the confidentiality and integrity of affected WordPress sites using the Thai Lottery Widget plugin. Successful exploitation allows attackers with Contributor-level access to inject persistent malicious scripts that execute in the context of other users' browsers. This can lead to session hijacking, unauthorized actions performed with victim user privileges, defacement, or distribution of malware. Since the vulnerability requires authenticated access, the risk is elevated in environments with multiple contributors or less strict access controls. The scope of affected systems includes any WordPress installation using the vulnerable plugin, which may be widespread in regions where the plugin is popular, especially Thailand and sites targeting Thai audiences. Although availability is not directly impacted, the indirect effects of exploitation could disrupt site operations or user trust. Organizations worldwide using this plugin face reputational damage and potential data breaches if the vulnerability is exploited. The absence of known exploits in the wild currently reduces immediate risk but does not eliminate the threat, especially as attackers often weaponize such vulnerabilities rapidly after disclosure.
Mitigation Recommendations
To mitigate CVE-2025-13678, organizations should first check for and apply any official patches or updates released by the plugin vendor. If no patch is available, immediate steps include disabling the Thai Lottery Widget plugin or removing the vulnerable shortcode usage from all pages. Restrict Contributor-level and higher privileges to trusted users only, minimizing the risk of malicious shortcode attribute injection. Implement a Web Application Firewall (WAF) with custom rules to detect and block suspicious input patterns in shortcode attributes, particularly targeting script tags or JavaScript event handlers. Conduct thorough input validation and output encoding on all user-supplied data in custom plugins or themes to prevent similar vulnerabilities. Monitor logs for unusual activity related to shortcode usage or unexpected script injections. Educate site administrators and contributors about the risks of injecting untrusted content. Finally, consider adopting security plugins that scan for XSS vulnerabilities and enforce content security policies (CSP) to reduce the impact of potential script injections.
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: 2/27/2026, 10:09:26 AM
Last updated: 3/24/2026, 10:48:48 PM
Views: 144
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.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.