# Paid Membership Plugin, Ecommerce, User Registration Form, Login Form, User Profile & Restrict Content <= 4.18.1 - Authenticated (Author+) Stored Cross-Site Scripting via 'wp-user-avatar' Parameter

- **ID:** WPSEC-2026-4371
- **Plugin:** ProfilePress – Paid Membership, Online Courses (LMS), Ecommerce, User Registration & Login Form, User Profile & Restrict Content (`wp-user-avatar`), https://wordpress.org/plugins/wp-user-avatar/
- **Affected versions:** all versions before 4.18.2
- **Fixed in:** 4.18.2 (Update to 4.18.2 or later.)
- **Severity:** Medium 5.4 (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin High, affected versions High (as of 2026-12-03)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/wp-user-avatar
- **Fix released:** 2026-12-01
- **Published:** 2026-12-03
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4371/

## Description

The Paid Membership, Online Courses (LMS), Ecommerce, User Registration & Login Form, User Profile & Restrict Content plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'wp-user-avatar' profile parameter in all versions up to, and including, 4.18.1. This is due to insufficient input sanitization (the value is only passed through strip_tags() and is not required to be an attachment ID) and missing output escaping when the stored value is printed into a hidden input on the user profile screen. This makes it possible for authenticated attackers, with author-level access and above, to inject attributes into that input. Their scripts run when an administrator views the attacker's profile and interacts with the page.

## References

- https://wpsec.com/vuln/WPSEC-2026-4371/
- https://plugins.svn.wordpress.org/wp-user-avatar/tags/4.18.2/
- https://wordpress.org/plugins/wp-user-avatar/

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

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.
