The Earnware Connect plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin’s ‘ew_hasrole’ shortcode in all versions up to, and including, 1.0.73 due to insufficient input sanitization and output escaping on user supplied attributes. This vulnerability allows authenticated attackers with contributor-level access and above to inject arbitrary web scripts into pages that will execute whenever a user accesses an injected page.
Details
| Severity | Base Score | CVE |
|---|---|---|
| MEDIUM | 6.4 | CVE-2025-7651 |
Exploitation
To exploit this vulnerability, an attacker with contributor-level access can craft a malicious shortcode using the ‘ew_hasrole’ function, injecting arbitrary JavaScript into the page. When a user accesses the affected page, the injected script will execute in their browser, potentially leading to session hijacking or other malicious actions.
Affected Products
- Earnware Connect Plugin: A WordPress plugin that allows users to manage roles and permissions, vulnerable in all versions up to 1.0.73.
Mitigation
To mitigate this vulnerability, users should update the Earnware Connect plugin to the latest version where the issue has been resolved. Additionally, implementing proper input sanitization and output escaping practices can help prevent similar vulnerabilities in the future.
