CVE-2022-2763
Medium · 4.8CVSS
4.8
EPSS
0.8%
Published
Oct 3, 2022
CISA due date
—
Cloudanix analysis
A settings page in a popular WordPress plugin lets administrators accidentally or intentionally add hidden code that runs for everyone who visits the site, potentially exposing visitor information or changing what the site shows.
- Exploitation
- Remote Authenticated
- Attacker needs
- High Privilege
- Complexity
- Low
- Impact
- Data Tampering
- Component
- Application
- Class
- XSS
- Remediation
- Upgrade
- Effort
- Low
- Patch risk
- Low
What it actually does
Stored XSS flaw allowing unsanitized and unescaped Icons settings to persist malicious scripts that execute in browsers of site visitors and other administrators.
Why it matters to the business
High-privilege users can inject persistent scripts that compromise user sessions, steal data, or alter site appearance across multisite or hardened WordPress installations, increasing operational risk and potential regulatory exposure.
How an attack unfolds
An authenticated administrator navigates to the plugin Icons settings, inserts script payloads into unsanitized fields, saves the configuration, and the stored scripts execute for any user who later views affected pages or admin screens.
How to fix it
Upgrade the WP Socializer plugin to version 7.3 or newer; review and sanitize existing Icons settings; restrict admin accounts and enable content security policy headers as defense-in-depth.
How to confirm the fix worked
Confirm plugin version is at least 7.3; attempt to save a test script tag in Icons settings and verify it is escaped or rejected; scan plugin settings tables for residual script tags.
Typical attack path
- Obtain high-privilege WordPress account (admin)
- Access WP Socializer Icons configuration page
- Insert malicious JavaScript into one or more icon fields without sanitization
- Save settings so payload is stored server-side
- Wait for victim users or administrators to load pages that render the icons
- Script executes in victim browser under site origin
How to detect it
Search WordPress options tables or plugin configuration exports for script, img, or svg tags containing event handlers or javascript: URIs; review web server and WordPress debug logs around the time of settings changes for unusual POST requests to the plugin options endpoint.
- wp_socializer_icons
- <script
- onerror=
- javascript:
- data:text/html
What your security team should do
- Immediately update WP Socializer to 7.3+ on all sites
- Audit admin accounts and remove unnecessary high-privilege users
- Enable WordPress multisite hardening and disallow unfiltered_html where possible
- Add CSP headers that restrict script sources
- Monitor for anomalous script tags in plugin option values
The record
The WP Socializer WordPress plugin before 7.3 does not sanitise and escape some of its Icons settings, which could allow high privilege users such as admin to perform Stored Cross-Site Scripting attacks even when the unfiltered_html capability is disallowed (for example in multisite setup)
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Ubuntu:16.04:LTS | wordpress | 0 | No fix |
| Ubuntu:18.04:LTS | wordpress | 0 | No fix |
| Ubuntu:20.04:LTS | wordpress | 0 | No fix |
| Ubuntu:22.04:LTS | wordpress | 0 | No fix |
| Ubuntu:24.04:LTS | wordpress | 0 | No fix |
| Ubuntu:24.10 | wordpress | 0 | No fix |
| Ubuntu:25.04 | wordpress | 0 | No fix |
| Ubuntu:25.10 | wordpress | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | wordpress | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | wordpress | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | wordpress | 0 | No fix |
Related vulnerabilities
- CVE-2022-4973 WordPress Core, in versions up to 6.0.2, is vulnerable to Authenticated Stored Cross-Site… Also affects wordpress
- CVE-2024-32111 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')… Also affects wordpress
- CVE-2024-31111 Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site… Also affects wordpress
- CVE-2024-6307 WordPress Core is vulnerable to Stored Cross-Site Scripting via the HTML API in various… Also affects wordpress
- CVE-2024-4439 WordPress Core is vulnerable to Stored Cross-Site Scripting via user display names in the… Also affects wordpress
- CVE-2023-5692 WordPress Core is vulnerable to Sensitive Information Exposure in versions up to, and… Also affects wordpress
- CVE-2024-31211 WordPress is an open publishing platform for the Web. Also affects wordpress
- CVE-2024-31210 WordPress is an open publishing platform for the Web. Also affects wordpress