# UsersWP - Social Login <= 1.5.10 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'type' Shortcode Attribute

- **ID:** WPSEC-2026-1937
- **Plugin:** UsersWP – Social Login (`userswp-social-login`), https://wordpress.org/plugins/userswp-social-login/
- **Affected versions:** from 1.3.17 before 1.5.11
- **Fixed in:** 1.5.11 (Update to 1.5.11 or later.)
- **Severity:** Medium 6.4 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/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-29)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/userswp-social-login
- **Fix released:** 2026-10-28
- **Published:** 2026-10-29
- **URL:** https://wpsec.com/vuln/WPSEC-2026-1937/

## Description

The UsersWP - Social Login plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'type' attribute of the [uwp_social] shortcode in all versions up to, and including, 1.5.10, due to insufficient input sanitization and output escaping. In the Bootstrap social login template, the value is only passed through sanitize_text_field(), which leaves double quotes intact. It is then concatenated into the Google sign-in button URL and printed unescaped inside an href attribute. 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. The script runs for logged-out visitors when Google login is enabled.

## References

- https://wpsec.com/vuln/WPSEC-2026-1937/
- https://plugins.svn.wordpress.org/userswp-social-login/tags/1.5.11/
- https://wordpress.org/plugins/userswp-social-login/

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

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.
