# Tilopay <= 3.1.3 - Unauthenticated DOM-Based Reflected Cross-Site Scripting via 'description' and 'message_error' Parameters

- **ID:** WPSEC-2026-4140
- **Plugin:** Tilopay (`tilopay`), https://wordpress.org/plugins/tilopay/
- **Affected versions:** from 3.0.0 before 3.1.4
- **Fixed in:** 3.1.4 (Update to 3.1.4 or later.)
- **Severity:** Medium 6.1 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-11-27)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/tilopay
- **Fix released:** 2026-11-26
- **Published:** 2026-11-27
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4140/

## Description

The Tilopay plugin for WordPress is vulnerable to DOM-Based Reflected Cross-Site Scripting via the 'description' and 'message_error' URL parameters on the block checkout page in all versions up to, and including, 3.1.3, due to the checkout scripts inserting these values into the page with insertAdjacentHTML without escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts that execute if they can trick a user, such as a site administrator, into following a crafted link.

## References

- https://wpsec.com/vuln/WPSEC-2026-4140/
- https://plugins.svn.wordpress.org/tilopay/tags/3.1.4/
- https://wordpress.org/plugins/tilopay/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-4140/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
