---
id: CVE-2025-13678
title: >-
  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
summary: >-
  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 th…
severity: medium
cvss: 6.4
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N'
cwe:
  - CWE-79
published: '2025-12-05'
updated: '2026-09-25'
sourceUpdated: '2026-09-25T23:10:00.463'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-13678'
references:
  - url: >-
      https://plugins.trac.wordpress.org/browser/thai-lottery-widget/tags/2.5/thailottery.php#L330
    label: security@wordfence.com
  - url: >-
      https://plugins.trac.wordpress.org/browser/thai-lottery-widget/trunk/thailottery.php#L330
    label: security@wordfence.com
  - url: >-
      https://www.wordfence.com/threat-intel/vulnerabilities/id/949eb9d6-0c8f-43f1-8580-998ea78c9549?source=cve
    label: security@wordfence.com
tags:
  - nvd
epss: 0.00279
epssPercentile: 0.18179
ingestedAt: '2026-09-25T23:21:16.891Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
