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

Medium 5.4 CWE-79Fixed in 4.18.2
ID
WPSEC-2026-4371
Plugin
ProfilePress – Paid Membership, Online Courses (LMS), Ecommerce, User Registration & Login Form, User Profile & Restrict Content (wp-user-avatar)
Affected
all versions before 4.18.2
Remediation
Update to 4.18.2 or later.
CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Weakness
CWE-79
Usage
Plugin High · Affected versions High among sites WPSec scans, 2026-12-03
Attack surface
Paid Membership Plugin, Ecommerce, User Registration Form, Login Form, User Profile & Restrict Content on WPSec AttackSurface
Fix released
Published

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

Published by WPSec. Provided as is, without warranty. Corrections: contact us.

This advisory as JSON, OSV or Markdown · All advisories: JSON, OSV, RSS

License: CC BY 4.0