# Like Button Rating ♥ LikeBtn <= 2.6.64 - Unauthenticated Stored Cross-Site Scripting via Client-IP Header

- **ID:** WPSEC-2026-2130
- **Plugin:** Like Button Rating ♥ LikeBtn (`likebtn-like-button`), https://wordpress.org/plugins/likebtn-like-button/
- **Affected versions:** all versions before 2.6.65
- **Fixed in:** 2.6.65 (Update to 2.6.65 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-10-30)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/likebtn-like-button
- **Fix released:** 2026-10-29
- **Published:** 2026-10-30
- **URL:** https://wpsec.com/vuln/WPSEC-2026-2130/

## Description

The Like Button Rating ♥ LikeBtn plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the Client-IP and X-Forwarded-For HTTP headers in all versions up to, and including, 2.6.64. This is due to the visitor IP being taken from client-controlled headers without validation, stored with each vote, and output in the admin votes table inside a javascript: URL where esc_attr does not prevent breaking out of the JavaScript string. This makes it possible for unauthenticated attackers to inject arbitrary web scripts that execute when an administrator clicks the IP link in the votes list. Exploitation requires the stored IP to be shown unhashed, i.e. GDPR compliance mode is not enabled.

Also published later by wordfence as CVE-2026-116552.

## References

- https://wpsec.com/vuln/WPSEC-2026-2130/
- https://plugins.svn.wordpress.org/likebtn-like-button/tags/2.6.65/
- https://wordpress.org/plugins/likebtn-like-button/

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

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.
